NRPE dependencies

Ugo Bellavance ugob at camo-route.com
Fri Sep 29 17:27:01 CEST 2006


John P. Rouillard wrote:
> In message <ef9cmi$kmu$1 at sea.gmane.org>,
> Ugo Bellavance writes:
>> Hendrik Baecker wrote:
>>> Hi,
>>>

<snip>

> 
> Apply the patch mentioned in:
> 
>  http://thread.gmane.org/gmane.network.nagios.user/19511/focus=19511
> 
> and see if:
> 
> 
> define servicedependency {
> 
>         use                             defaults
>         dependent_servicegroup_name     NRPE_dep
> 
>         service_description             NRPE
>         host_name                       SELF
> 
> }
> 
> Don't know it it will work, but it seems like it should from the 
> description.
> 
> 
> Alternatively do what I do. Create a servicedependency.cfg file that
> is created by a script that parses the objects.cache file. so to
> update:
> 
>   clear/empty servicedependency.cfg
> 
>   reload nagios
> 
>   wait until objects.cache is updated
> 
>   parse objects.cache for all the host/service pairs in the NRPE_dep
>         servicegroup
> 
>   generate:
>     define servicedependency{
>       dependent_host_name example
>       dependent_service_description (all services from NRPE_dep
>                                        for host example)
>       host_name example
>       service_description NRPE
>      ...
>     }
>   and put them into servicedependency.cfg 
> 
>   reload nagios to load the now non-empty servicedependency.cfg file.
> 
> 
> Definitely a pain.
  ::: Messages without supporting info will risk being sent to /dev/null
> 

I'll think I'll try to find a router or firewall in front of it on which 
I could do a test that could be a dependency.

Is there plan to correct this?

Ugo


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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