Hi.<br><br>I'm using NRPE to monitor services on the remote servers.<br>I wish to make the checks made by NRPE dependent with the NRPE service itself.<br>I create a service to check the availability of the NRPE daemon on the remote host:
<br><br>define service{<br> use remote-service<br> host_name bakserver.blupixel.local<br> service_description NRPE<br> check_command check_tcp!5666
<br> }<br><br>Now I wish to specify the dependency for all the checks made by NRPE, so if the NRPE daemon isn't available on the remote host, these checks will not executed at all (and the related notifications are not sent).
<br>I read on the Nagios documentation that this could be done with the following configuration:<br><br>define service{<br> use remote-service<br> host_name bakserver.blupixel.local
<br> service_description NRPE<br> check_command check_tcp!5666<br> dependent_service_description nrpeservice1,nrpeservice2,nrpeservice3,nrpeservice4<br> execution_failure_criteria w,c
<br> }<br><br>With this configuration, if the NRPE service is on warning or critical, the services "nrpeservice1, nrpeservice2, nrpeservice3, nrpeservice4" are not checked and their problems are not notificated.
<br>This is ok, but I wish to make a "vice versa" configuration.<br>I wish to specify the dependence between the "NRPE" service and the "nrpeserviceX" in the "nrpeserviceX" stanzas, not in the "NRPE" service one.
<br>This because it will more fast to add new services, without modify the "NRPE" stanza.<br><br>How can I do this?<br><br>Thank you very much!<br>Bye.<br>