Nagios Service Dependencies
Dei Bertine
deibertine at yahoo.com
Thu May 7 18:00:48 CEST 2009
Hi Jim,
Thanks for clarifying to me et al, I will definitely give this a shot.
I'm sure this will benefit the others who thought of building this config in their Nagios, especially for a newbie like I... :-)
Cheers,
DB
________________________________
From: Jim Avery <jim at jimavery.me.uk>
To: Dei Bertine <deibertine at yahoo.com>
Cc: nagios-users at lists.sourceforge.net
Sent: Wednesday, May 6, 2009 11:47:01 PM
Subject: Re: [Nagios-users] Nagios Service Dependencies
2009/5/7 Dei Bertine <deibertine at yahoo.com>:
> Basic question guys:
>
> Which file do you normally place your service dependencies in?
>
> It stated here: http://nagios.sourceforge.net/docs/2_0/dependencies.html
> to place in objects cfg file which I thought placing it in my nagios.cfg????
>
> But when I did, it complained about this error after running -v:
> Error in configuration file 'nagios.cfg' - Line 2859 (NULL value)
>
>
> Here's a sample of my definition:
> define servicedependency{
> host_name ciscoasa-router
> service_description PING
> dependent_host_name ciscosw-router
> dependent_service_description PING
> execution_failure_criteria o
> notification_failure_criteria w,u
> }
>
> Please advise.
>
> Thank you!
> DB
I would put service dependencies in a file called something like
'servicedependencies.cfg'.
in nagios.cfg, you need a pointer to this new file, for example:
cfg_file=/usr/local/nagios/etc/objects/servicedependencies.cfg
The nagios.cfg file should only contain the main configuration file
options which you'll find documented in
http://nagios.sourceforge.net/docs/3_0/configmain.html
But ... I'm not convinced you should need service dependencies for
'ping' from one host to another. Nagios handles this sort of thing
automatically if you configure the host parent relationships. See:
http://nagios.sourceforge.net/docs/3_0/networkreachability.html
hth,
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090507/77aa1914/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
-------------- 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