Nagios Appender 1.5.1
Raymond Setchfield
raymond.setchfield at seewhy.com
Thu Mar 25 11:06:04 CET 2010
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_information 1 ; Retain non-status
information across program restarts
notification_period workhours ; Send host
notifications only during working hours
#notification_period 24x7 ; Send host
notifications at any time
notification_period none ; Send host
notifications never
active_checks_enabled 0 ; Active service
checks are enabled
check_period 24x7 ; 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_options d,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{
name virtual-passive-service ; The name
of this service template
use generic-service ; Inherit
default values from the generic-service definition
check_period none ; 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_interval 1 ; 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_options w,u,c,r ; Send
notifications about warning, unknown, critical, and recovery events
notification_interval 1 ; Re-notify
about service problems every hour
#notification_period workhours ; 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_information 1 ; 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
register 0 ; DONT
REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
}
Thanks
Raymond
From: jonathan.wheeler at stfc.ac.uk [mailto:jonathan.wheeler at stfc.ac.uk]
Sent: 25 March 2010 09:54
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios Appender 1.5.1
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.setchfield at 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_interval 3
check_period 24x7
contact_groups server_admin
}
Thanks for your help
Raymond
From: Robert Wolfe [mailto:rwolfe at i-evolve.com]
Sent: 24 March 2010 18:00
To: nagios-users at 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.setchfield at seewhy.com]
Sent: Wednesday, March 24, 2010 1:02 PM
To: nagios-users at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100325/c119c47c/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Download Intel® 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
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list