[Nagios-users] Nagios Appender - NagiosIncludeExcludeFilters.properties

2010-05-11 Thread Raymond Setchfield
Hi Folks

 

I am having some difficulty with the Filters.properties file which is used
with the nagios appender for the log4j. Now the appender is working fine
which is great as it speaking to nagios etc. 

 

However I am looking to use the filter file which is causing me a little bit
of a grief. Now when turning this on and applying some filters to appears to
be blocking everything. All the documentation which I can find the matter is
pretty hazy. I am looking for someone who has used this filter and how to
apply it to JBoss and block all those annoying errors.  If anybody could
shed some light on the matter that would be fantastic! 

 

Kindest Regards

 

Raymond

 

--

___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Nagios Appender

2010-03-29 Thread Raymond Setchfield
Hi folks

 

Finally trying to get to the bottom of the nagios appender plugin which
allows jboss connections using the nsca. After get through all the stress
and strain of a lot of issues we are finally starting to see logs come
through for nagios. 

 

However this is the information which I am receiving;

 

Mar 29 07:16:09 centos-64bit nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;NOT_SET;HelloWorldApplication;0;server: :
remoteUser=null

Mar 29 07:16:09 centos-64bit nagios: Warning:  Passive check result was
received for service 'HelloWorldApplication' on host 'NOT_SET', but the host
could not be found!

Mar 29 07:16:09 centos-64bit nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;NOT_SET;HelloWorldApplication;0;server: :
header=accept=*/*

Mar 29 07:16:09 centos-64bit nagios: Warning:  Passive check result was
received for service 'HelloWorldApplication' on host 'NOT_SET', but the host
could not be found!

Mar 29 07:16:09 centos-64bit nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;NOT_SET;HelloWorldApplication;0;server: :
header=if-modified-since=Mon, 04 Aug 2008 23:02:56 GMT

Mar 29 07:16:09 centos-64bit nagios: Warning:  Passive check result was
received for service 'HelloWorldApplication' on host 'NOT_SET', but the host
could not be found!

Mar 29 07:16:09 centos-64bit nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;NOT_SET;HelloWorldApplication;0;server: :
header=host=ec2-79-125-38-135.eu-west-1.compute.amazonaws.com:8080

Mar 29 07:16:09 centos-64bit nagios: Warning:  Passive check result was
received for service 'HelloWorldApplication' on host 'NOT_SET', but the host
could not be found!

Mar 29 07:16:09 centos-64bit nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;NOT_SET;HelloWorldApplication;0;server: :
pathInfo=null

Mar 29 07:16:09 centos-64bit nagios: Warning:  Passive check result was
received for service 'HelloWorldApplication' on host 'NOT_SET', but the host
could not be found!

Mar 29 07:16:09 centos-64bit nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;NOT_SET;HelloWorldApplication;0;server: :
queryString=null

Mar 29 07:16:09 centos-64bit nagios: Warning:  Passive check result was
received for service 'HelloWorldApplication' on host 'NOT_SET', but the host
could not be found!

Mar 29 07:18:36 centos-64bit xinetd[10931]: START: nsca pid=14735
from=10.228.239.15

Mar 29 07:18:36 centos-64bit nsca[14735]: Handling the connection...

Mar 29 07:18:37 centos-64bit nsca[14735]: SERVICE CHECK - Host Name:
'centos-64bit', Service Description: 'HelloWorldApplication', Return Code:
'0', Output: 'server: centos-64bit: Application Errors Cleared '

Mar 29 07:18:37 centos-64bit nsca[14735]: End of connection...

Mar 29 07:18:37 centos-64bit xinetd[10931]: EXIT: nsca status=0 pid=14735
duration=1(sec)

Mar 29 07:18:37 centos-64bit nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;centos-64bit;HelloWorldApplication;0;server:
centos-64bit: Application Errors Cleared

Mar 29 07:18:37 centos-64bit nagios: Warning:  Passive check result was
received for service 'HelloWorldApplication' on host 'centos-64bit', but the
host could not be found!

Mar 29 07:22:08 centos-64bit syslog-ng[946]: STATS: dropped 0

Mar 29 07:31:49 centos-64bit nagios: Auto-save of retention data completed
successfully.

 

My question is the host not set issue. Is jboss complaining or nagios?
Should I be looking at jboss or nagios for the miss-configuration issue? 

 

Many thanks

 

Raymond

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios Appender

2010-03-29 Thread Marc Powell

On Mar 29, 2010, at 7:17 AM, Raymond Setchfield wrote:


 Mar 29 07:18:37 centos-64bit nsca[14735]: SERVICE CHECK - Host Name: 
 'centos-64bit', Service Description: 'HelloWorldApplication', Return Code: 
 '0', Output: 'server: centos-64bit: Application Errors Cleared '

 Mar 29 07:18:37 centos-64bit nagios: EXTERNAL COMMAND: 
 PROCESS_SERVICE_CHECK_RESULT;centos-64bit;HelloWorldApplication;0;server: 
 centos-64bit: Application Errors Cleared
 Mar 29 07:18:37 centos-64bit nagios: Warning:  Passive check result was 
 received for service 'HelloWorldApplication' on host 'centos-64bit', but the 
 host could not be found!

 My question is the host not set issue. Is jboss complaining or nagios? Should 
 I be looking at jboss or nagios for the miss-configuration issue?

It's nagios complaining. For every passive result host/service combination 
you're going to be using, you must have a matching host and service definition 
within nagios. You need a host{} definition for host_name 'centos-64-bit' and a 
service{} definition for service_description 'HelloWorldApplicatin' for 
host_name 'centos-64bit' for this check result to be handled.
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios Appender 1.5.1

2010-03-25 Thread Raymond Setchfield
Hi Giorgio 

 

I placed a place between the define and { but still the same error message.

 

Thanks

 

Raymond

 

From: Giorgio Zarrelli [mailto:zarre...@linux.it] 
Sent: 24 March 2010 18:22
To: Nagios Users List
Subject: Re: [Nagios-users] Nagios Appender 1.5.1

 

Put a space between define and {

Ciao,

 

Giorgio


Il giorno 24/mar/2010, alle ore 19.00, Robert Wolfe rwo...@i-evolve.com ha 
scritto:

Perhaps if you could post the entire service definition.

 

From: Raymond Setchfield [mailto:raymond.setchfi...@seewhy.com] 
Sent: Wednesday, March 24, 2010 1:02 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios Appender 1.5.1

 

Hi Folks

 

I am trying to follow the documentation on the Nagios Application Monitoring 
and I am having a few issues which if someone could help me resolve. I have 
copied the files VirtualHost.cfg and HelloWorld.cfg into my objects folder and 
pointed nagios.cfg to look at them. I have altered the files to suit my 
requirements etc. 

 

Whilst doing the pre-flight checks it is flagging up an error; 

 

Error: Service description, host name, or check command is NULL

Error: Could not register service (config file 
'/usr/local/nagios/etc/objects/HelloWorld.cfg', starting on line 16)

   Error processing object config files!

 

When checking line 16 of the HelloWorld it is this;

 

define service{

 

This appears to me that there is nothing wrong with it at all, but for some 
reason Nagios doesn’t like it. Can someone please help me on why this isn’t 
working? Or possibly point me in the direction of some documentation on how to 
install this Appender properly? 

 

Many Thanks

 

Raymond 

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios Appender 1.5.1

2010-03-25 Thread Raymond Setchfield
Hi Robert  Martin

 

Here is the full config file from the HelloWorld.cfg

 

 

define service{

use virtual-passive-service

host_name   production

service_description HelloWorldApplication

active_checks_enabled   0

passive_checks_enabled  1

normal_check_interval   5

retry_check_interval3

check_period24x7

contact_groups  server_admin

}

 

Thanks for your help

 

Raymond

 

From: Robert Wolfe [mailto:rwo...@i-evolve.com] 
Sent: 24 March 2010 18:00
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios Appender 1.5.1

 

Perhaps if you could post the entire service definition.

 

From: Raymond Setchfield [mailto:raymond.setchfi...@seewhy.com] 
Sent: Wednesday, March 24, 2010 1:02 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios Appender 1.5.1

 

Hi Folks

 

I am trying to follow the documentation on the Nagios Application Monitoring
and I am having a few issues which if someone could help me resolve. I have
copied the files VirtualHost.cfg and HelloWorld.cfg into my objects folder
and pointed nagios.cfg to look at them. I have altered the files to suit my
requirements etc. 

 

Whilst doing the pre-flight checks it is flagging up an error; 

 

Error: Service description, host name, or check command is NULL

Error: Could not register service (config file
'/usr/local/nagios/etc/objects/HelloWorld.cfg', starting on line 16)

   Error processing object config files!

 

When checking line 16 of the HelloWorld it is this;

 

define service{

 

This appears to me that there is nothing wrong with it at all, but for some
reason Nagios doesn't like it. Can someone please help me on why this isn't
working? Or possibly point me in the direction of some documentation on how
to install this Appender properly? 

 

Many Thanks

 

Raymond 

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios Appender 1.5.1

2010-03-25 Thread jonathan.wheeler
Well, there is no check_command defined in the configuration you have
posted, but that also depends on the template virtual-passive-service.

 

Jonathan Wheeler 
e-Science Centre 
Rutherford Appleton Laboratory

 

From: Raymond Setchfield [mailto:raymond.setchfi...@seewhy.com] 
Sent: 25 March 2010 09:26
To: 'Nagios Users List'
Subject: Re: [Nagios-users] Nagios Appender 1.5.1

 

Hi Robert  Martin

 

Here is the full config file from the HelloWorld.cfg

 

 

define service{

use virtual-passive-service

host_name   production

service_description HelloWorldApplication

active_checks_enabled   0

passive_checks_enabled  1

normal_check_interval   5

retry_check_interval3

check_period24x7

contact_groups  server_admin

}

 

Thanks for your help

 

Raymond

 

From: Robert Wolfe [mailto:rwo...@i-evolve.com] 
Sent: 24 March 2010 18:00
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios Appender 1.5.1

 

Perhaps if you could post the entire service definition.

 

From: Raymond Setchfield [mailto:raymond.setchfi...@seewhy.com] 
Sent: Wednesday, March 24, 2010 1:02 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios Appender 1.5.1

 

Hi Folks

 

I am trying to follow the documentation on the Nagios Application
Monitoring and I am having a few issues which if someone could help me
resolve. I have copied the files VirtualHost.cfg and HelloWorld.cfg into
my objects folder and pointed nagios.cfg to look at them. I have altered
the files to suit my requirements etc. 

 

Whilst doing the pre-flight checks it is flagging up an error; 

 

Error: Service description, host name, or check command is NULL

Error: Could not register service (config file
'/usr/local/nagios/etc/objects/HelloWorld.cfg', starting on line 16)

   Error processing object config files!

 

When checking line 16 of the HelloWorld it is this;

 

define service{

 

This appears to me that there is nothing wrong with it at all, but for
some reason Nagios doesn't like it. Can someone please help me on why
this isn't working? Or possibly point me in the direction of some
documentation on how to install this Appender properly? 

 

Many Thanks

 

Raymond 


-- 
Scanned by iCritical.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios Appender 1.5.1

2010-03-25 Thread Raymond Setchfield
Hi Jonathan

 

This part has also been added into nagios called VirtualHost.cfg

 

define host{

host_name   production

alias   production

address 127.0.0.1   ; we really don't
care what the host ip is, because we're monitoring a 'virtual' server

notifications_enabled   0   ; Host notifications
are not enabled

event_handler_enabled   0   ; Host event handler
is not enabled

flap_detection_enabled  1   ; Flap detection is
enabled

failure_prediction_enabled  1   ; Failure prediction
is enabled

process_perf_data   1   ; Process
performance data

retain_status_information   1   ; Retain status
information across program restarts

retain_nonstatus_information1   ; Retain non-status
information across program restarts

notification_period workhours   ; Send host
notifications only during working hours

#notification_period24x7; Send host
notifications at any time

notification_period none; Send host
notifications never

active_checks_enabled   0   ; Active service
checks are enabled

check_period24x7; By default, Linux
hosts are checked round the clock

check_command   check_dummy ; This is a no-op
plugin ... we aren't planning on using it

max_check_attempts  1   ; Check each Linux
host 10 times (max)

notification_interval   120 ; Resend
notification every 2 hours

notification_optionsd,u,r   ; Send notifications
about warning, unknown, critical, and recovery events

contact_groups  server_admin; Notifications get
sent to the admins by default

}

 

define hostgroup{

hostgroup_name  terminal

alias   West Coast Production

members production

}

 

define service{

namevirtual-passive-service ; The name
of this service template

use generic-service ; Inherit
default values from the generic-service definition

check_periodnone; The
service can be checked at any time of the day

is_volatile 0   ; The
service is not volatile

max_check_attempts  1   ; Re-check
the service up to 4 times in order to determine its final (hard) state

normal_check_interval   1   ; Check the
service every 5 minutes under normal conditions

retry_check_interval1   ; Re-check
the service every minute until a hard state can be determined

contact_groups  server_admin;
Notifications get sent out to everyone in the 'admins' group

notifications_enabled   1   ; Service
notifications are enabled

notification_optionsw,u,c,r ; Send
notifications about warning, unknown, critical, and recovery events

notification_interval   1   ; Re-notify
about service problems every hour

#notification_periodworkhours   ; Send host
notifications only during working hours

notification_period 24x7;
Notifications can be sent out at any time

retain_status_information   1   ; Retain
status information across program restarts

retain_nonstatus_information1   ; Retain
non-status information across program restarts

check_freshness 0   ; Default is
to NOT check service 'freshness'

freshness_threshold 1   ;

event_handler_enabled   0   ; Service
event handler is enabled

flap_detection_enabled  1   ; Flap
detection is enabled

failure_prediction_enabled  1   ; Failure
prediction is enabled

process_perf_data   1   ; Process
performance data

register0   ; DONT
REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!

}

 

Thanks

 

Raymond

From: jonathan.whee...@stfc.ac.uk [mailto:jonathan.whee...@stfc.ac.uk] 
Sent: 25 March 2010 09:54
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios Appender 1.5.1

 

Well, there is no check_command defined

Re: [Nagios-users] Nagios Appender 1.5.1

2010-03-25 Thread jonathan.wheeler
The check_command for define host is the command used to check that
the host is alive; this is not a default for service checks which
require (usually) their own individual check_command.

 

Jonathan Wheeler 
e-Science Centre 
Rutherford Appleton Laboratory

 

From: Raymond Setchfield [mailto:raymond.setchfi...@seewhy.com] 
Sent: 25 March 2010 10:06
To: 'Nagios Users List'
Subject: Re: [Nagios-users] Nagios Appender 1.5.1

 

Hi Jonathan

 

This part has also been added into nagios called VirtualHost.cfg

 

define host{

host_name   production

alias   production

address 127.0.0.1   ; we really
don't care what the host ip is, because we're monitoring a 'virtual'
server

notifications_enabled   0   ; Host
notifications are not enabled

event_handler_enabled   0   ; Host event
handler is not enabled

flap_detection_enabled  1   ; Flap detection
is enabled

failure_prediction_enabled  1   ; Failure
prediction is enabled

process_perf_data   1   ; Process
performance data

retain_status_information   1   ; Retain status
information across program restarts

retain_nonstatus_information1   ; Retain
non-status information across program restarts

notification_period workhours   ; Send host
notifications only during working hours

#notification_period24x7; Send host
notifications at any time

notification_period none; Send host
notifications never

active_checks_enabled   0   ; Active service
checks are enabled

check_period24x7; By default,
Linux hosts are checked round the clock

check_command   check_dummy ; This is a
no-op plugin ... we aren't planning on using it

max_check_attempts  1   ; Check each
Linux host 10 times (max)

notification_interval   120 ; Resend
notification every 2 hours

notification_optionsd,u,r   ; Send
notifications about warning, unknown, critical, and recovery events

contact_groups  server_admin; Notifications
get sent to the admins by default

}

 

define hostgroup{

hostgroup_name  terminal

alias   West Coast Production

members production

}

 

define service{

namevirtual-passive-service ; The
name of this service template

use generic-service ;
Inherit default values from the generic-service definition

check_periodnone; The
service can be checked at any time of the day

is_volatile 0   ; The
service is not volatile

max_check_attempts  1   ;
Re-check the service up to 4 times in order to determine its final
(hard) state

normal_check_interval   1   ; Check
the service every 5 minutes under normal conditions

retry_check_interval1   ;
Re-check the service every minute until a hard state can be determined

contact_groups  server_admin;
Notifications get sent out to everyone in the 'admins' group

notifications_enabled   1   ;
Service notifications are enabled

notification_optionsw,u,c,r ; Send
notifications about warning, unknown, critical, and recovery events

notification_interval   1   ;
Re-notify about service problems every hour

#notification_periodworkhours   ; Send
host notifications only during working hours

notification_period 24x7;
Notifications can be sent out at any time

retain_status_information   1   ; Retain
status information across program restarts

retain_nonstatus_information1   ; Retain
non-status information across program restarts

check_freshness 0   ;
Default is to NOT check service 'freshness'

freshness_threshold 1   ;

event_handler_enabled   0   ;
Service event handler is enabled

flap_detection_enabled  1   ; Flap
detection is enabled

failure_prediction_enabled  1   ;
Failure prediction is enabled

process_perf_data   1

Re: [Nagios-users] Nagios Appender 1.5.1

2010-03-25 Thread Raymond Setchfield
Just to let you guys know, that I have resolved the nagios configuration
issue. It appears that the entire configuration file was inherently wrong. I
resolved this by adding in new hosts config, along with the usual service
and hostgroups

 

Thanks for all your help though guys

 

R.

 

From: Raymond Setchfield [mailto:raymond.setchfi...@seewhy.com] 
Sent: 25 March 2010 10:48
To: 'Nagios Users List'
Subject: Re: [Nagios-users] Nagios Appender 1.5.1

 

Considering this command is looking for  check_dummy should I remove this
then as it isn't required? From what I have read of the documentation of
this Nagios Appender. There is no plugin required for it as it is all done
via jboss and through NSCA. I could be wrong on this matter as I find the
documentation isn't very clear 

 

Thanks

 

Raymond

 

From: jonathan.whee...@stfc.ac.uk [mailto:jonathan.whee...@stfc.ac.uk] 
Sent: 25 March 2010 10:28
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios Appender 1.5.1

 

The check_command for define host is the command used to check that the
host is alive; this is not a default for service checks which require
(usually) their own individual check_command.

 

Jonathan Wheeler 
e-Science Centre 
Rutherford Appleton Laboratory

 

From: Raymond Setchfield [mailto:raymond.setchfi...@seewhy.com] 
Sent: 25 March 2010 10:06
To: 'Nagios Users List'
Subject: Re: [Nagios-users] Nagios Appender 1.5.1

 

Hi Jonathan

 

This part has also been added into nagios called VirtualHost.cfg

 

define host{

host_name   production

alias   production

address 127.0.0.1   ; we really don't
care what the host ip is, because we're monitoring a 'virtual' server

notifications_enabled   0   ; Host notifications
are not enabled

event_handler_enabled   0   ; Host event handler
is not enabled

flap_detection_enabled  1   ; Flap detection is
enabled

failure_prediction_enabled  1   ; Failure prediction
is enabled

process_perf_data   1   ; Process
performance data

retain_status_information   1   ; Retain status
information across program restarts

retain_nonstatus_information1   ; Retain non-status
information across program restarts

notification_period workhours   ; Send host
notifications only during working hours

#notification_period24x7; Send host
notifications at any time

notification_period none; Send host
notifications never

active_checks_enabled   0   ; Active service
checks are enabled

check_period24x7; By default, Linux
hosts are checked round the clock

check_command   check_dummy ; This is a no-op
plugin ... we aren't planning on using it

max_check_attempts  1   ; Check each Linux
host 10 times (max)

notification_interval   120 ; Resend
notification every 2 hours

notification_optionsd,u,r   ; Send notifications
about warning, unknown, critical, and recovery events

contact_groups  server_admin; Notifications get
sent to the admins by default

}

 

define hostgroup{

hostgroup_name  terminal

alias   West Coast Production

members production

}

 

define service{

namevirtual-passive-service ; The name
of this service template

use generic-service ; Inherit
default values from the generic-service definition

check_periodnone; The
service can be checked at any time of the day

is_volatile 0   ; The
service is not volatile

max_check_attempts  1   ; Re-check
the service up to 4 times in order to determine its final (hard) state

normal_check_interval   1   ; Check the
service every 5 minutes under normal conditions

retry_check_interval1   ; Re-check
the service every minute until a hard state can be determined

contact_groups  server_admin;
Notifications get sent out to everyone in the 'admins' group

notifications_enabled   1   ; Service
notifications are enabled

notification_optionsw,u,c,r ; Send
notifications about warning, unknown, critical, and recovery events

notification_interval   1   ; Re-notify
about service problems

Re: [Nagios-users] Nagios Appender 1.5.1

2010-03-25 Thread Robert Wolfe
Try putting a space between device and {

 

From: Raymond Setchfield [mailto:raymond.setchfi...@seewhy.com] 
Sent: Thursday, March 25, 2010 5:26 AM
To: 'Nagios Users List'
Subject: Re: [Nagios-users] Nagios Appender 1.5.1

 

Hi Robert  Martin

 

Here is the full config file from the HelloWorld.cfg

 

 

define service{

use virtual-passive-service

host_name   production

service_description HelloWorldApplication

active_checks_enabled   0

passive_checks_enabled  1

normal_check_interval   5

retry_check_interval3

check_period24x7

contact_groups  server_admin

}

 

Thanks for your help

 

Raymond

 

From: Robert Wolfe [mailto:rwo...@i-evolve.com] 
Sent: 24 March 2010 18:00
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios Appender 1.5.1

 

Perhaps if you could post the entire service definition.

 

From: Raymond Setchfield [mailto:raymond.setchfi...@seewhy.com] 
Sent: Wednesday, March 24, 2010 1:02 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios Appender 1.5.1

 

Hi Folks

 

I am trying to follow the documentation on the Nagios Application Monitoring
and I am having a few issues which if someone could help me resolve. I have
copied the files VirtualHost.cfg and HelloWorld.cfg into my objects folder
and pointed nagios.cfg to look at them. I have altered the files to suit my
requirements etc. 

 

Whilst doing the pre-flight checks it is flagging up an error; 

 

Error: Service description, host name, or check command is NULL

Error: Could not register service (config file
'/usr/local/nagios/etc/objects/HelloWorld.cfg', starting on line 16)

   Error processing object config files!

 

When checking line 16 of the HelloWorld it is this;

 

define service{

 

This appears to me that there is nothing wrong with it at all, but for some
reason Nagios doesn't like it. Can someone please help me on why this isn't
working? Or possibly point me in the direction of some documentation on how
to install this Appender properly? 

 

Many Thanks

 

Raymond 

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Nagios Appender 1.5.1

2010-03-24 Thread Raymond Setchfield
Hi Folks

 

I am trying to follow the documentation on the Nagios Application Monitoring
and I am having a few issues which if someone could help me resolve. I have
copied the files VirtualHost.cfg and HelloWorld.cfg into my objects folder
and pointed nagios.cfg to look at them. I have altered the files to suit my
requirements etc. 

 

Whilst doing the pre-flight checks it is flagging up an error; 

 

Error: Service description, host name, or check command is NULL

Error: Could not register service (config file
'/usr/local/nagios/etc/objects/HelloWorld.cfg', starting on line 16)

   Error processing object config files!

 

When checking line 16 of the HelloWorld it is this;

 

define service{

 

This appears to me that there is nothing wrong with it at all, but for some
reason Nagios doesn't like it. Can someone please help me on why this isn't
working? Or possibly point me in the direction of some documentation on how
to install this Appender properly? 

 

Many Thanks

 

Raymond 

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios Appender 1.5.1

2010-03-24 Thread Martin Melin
On Wed, Mar 24, 2010 at 6:01 PM, Raymond Setchfield 
raymond.setchfi...@seewhy.com wrote:

  Hi Folks



 I am trying to follow the documentation on the Nagios Application
 Monitoring and I am having a few issues which if someone could help me
 resolve. I have copied the files VirtualHost.cfg and HelloWorld.cfg into my
 objects folder and pointed nagios.cfg to look at them. I have altered the
 files to suit my requirements etc.



 Whilst doing the pre-flight checks it is flagging up an error;



 Error: Service description, host name, or check command is NULL

 Error: Could not register service (config file
 '/usr/local/nagios/etc/objects/HelloWorld.cfg', starting on line 16)

Error processing object config files!



 When checking line 16 of the HelloWorld it is this;



 define service{


What the error message means is that it has a problem with the definition
that starts on line 16, not necessarily what's on line 16 - confusing, I
know :-)

Show us the full define service {} block and we can probably tell you what's
wrong.




 This appears to me that there is nothing wrong with it at all, but for some
 reason Nagios doesn’t like it. Can someone please help me on why this isn’t
 working? Or possibly point me in the direction of some documentation on how
 to install this Appender properly?



 Many Thanks



 Raymond



-- 
Martin Melin

May your delusions be benign and your compulsions have utility

op5 AB
http://www.op5.com

http://www.op5.org/
http://www.op5.com/op5/products/network-monitor/nagios/
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios Appender 1.5.1

2010-03-24 Thread Robert Wolfe
Perhaps if you could post the entire service definition.

From: Raymond Setchfield [mailto:raymond.setchfi...@seewhy.com]
Sent: Wednesday, March 24, 2010 1:02 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios Appender 1.5.1

Hi Folks

I am trying to follow the documentation on the Nagios Application Monitoring 
and I am having a few issues which if someone could help me resolve. I have 
copied the files VirtualHost.cfg and HelloWorld.cfg into my objects folder and 
pointed nagios.cfg to look at them. I have altered the files to suit my 
requirements etc.

Whilst doing the pre-flight checks it is flagging up an error;

Error: Service description, host name, or check command is NULL
Error: Could not register service (config file 
'/usr/local/nagios/etc/objects/HelloWorld.cfg', starting on line 16)
   Error processing object config files!

When checking line 16 of the HelloWorld it is this;

define service{

This appears to me that there is nothing wrong with it at all, but for some 
reason Nagios doesn't like it. Can someone please help me on why this isn't 
working? Or possibly point me in the direction of some documentation on how to 
install this Appender properly?

Many Thanks

Raymond
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios Appender 1.5.1

2010-03-24 Thread Giorgio Zarrelli

Put a space between define and {

Ciao,

Giorgio

Il giorno 24/mar/2010, alle ore 19.00, Robert Wolfe rwo...@i- 
evolve.com ha scritto:



Perhaps if you could post the entire service definition.



From: Raymond Setchfield [mailto:raymond.setchfi...@seewhy.com]
Sent: Wednesday, March 24, 2010 1:02 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios Appender 1.5.1



Hi Folks



I am trying to follow the documentation on the Nagios Application  
Monitoring and I am having a few issues which if someone could help  
me resolve. I have copied the files VirtualHost.cfg and  
HelloWorld.cfg into my objects folder and pointed nagios.cfg to look  
at them. I have altered the files to suit my requirements etc.




Whilst doing the pre-flight checks it is flagging up an error;



Error: Service description, host name, or check command is NULL

Error: Could not register service (config file '/usr/local/nagios/ 
etc/objects/HelloWorld.cfg', starting on line 16)


   Error processing object config files!



When checking line 16 of the HelloWorld it is this;



define service{



This appears to me that there is nothing wrong with it at all, but  
for some reason Nagios doesn’t like it. Can someone please help me o 
n why this isn’t working? Or possibly point me in the direction of s 
ome documentation on how to install this Appender properly?




Many Thanks



Raymond

--- 
--- 
--- 
-

Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when  
reporting any issue.

::: Messages without supporting info will risk being sent to /dev/null
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null