Re: [Nagios-devel] Service dependencies

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Service dependencies

Post by Guest »

Dirk De Coninck wrote:
> All,
>
> I am using Nagios 2.2 to monitor about 70 windows servers. Besides the
> usual ping to check the uptime of the host I am using the Nagios NRPE_NT
> host agent to check the drive space utilization and the status of some
> of the critical services (Mcafee, iSCSI, Snapdrive, MS Cluster service...).
>
> When the NRPE agent fails, I get off course several notifications for
> all the checks that rely on the agent. I wanted to add dependencies and
> make those services dependent on the NRPE status, but I have the
> following problem:
> All the windows servers are part of a hostgroup. When I defined the
> service definition for the drive space monitoring and the services, I
> used the hostgroup instead of a definition for every host separate.
> For every service dependency definitions, one has to define the
> dependent_host_name/, the /dependent_service_description/, the
> /host_name/ and /the service_description. If I have to do this then it
> will require me to create about 300 dependency definitions!
>
> Is it possible to somehow make the following dependency definition work:
>
> define servicedependency{
> hostgroup_name windows-servers
> service_description NRPE_NT
> dependent_service_description Drive_C
> }
>
>
> Could we have the dependency check assume that when the
> dependent_host_name is missing we want it to refer to the same host? Or
> could it be possible to define $HOSTADDRESS$
> as the
> dependent_host_name?
>
> How about the possibility to define a service dependency in the actual
> service definition instead of having to do this in a separate config
> file (same for host dependency definitions)?
>
> Thanks for any help you can offer with this.
>
> Kind regards,
> Dirk.

The docs show some useful tricks for service dependency definitions...

http://nagios.sourceforge.net/docs/2_0/ ... dependency

Try this...

define servicedependency{
hostgroup_name windows-servers
service_description NRPE_NT
dependent_hostgroup_name windows-servers
dependent_service_description Drive_C
}



Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked