<p dir="ltr">I may be missing it but where do you point it to the other server.  I thought you need to add the nagios server you wish to check as an arg.<br>
</p>
<div class="gmail_quote">On Dec 18, 2014 6:50 PM, "Ditmar Tavares" <<a href="mailto:DTavares@clearwater.ca">DTavares@clearwater.ca</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-CA" link="blue" vlink="purple">
<div>
<p class="MsoNormal">I’m new to Linux and also to Nagios monitoring, so it may be something that I’m missing.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I setup a second Nagios server so I can monitor my primary Nagios server, basically if the primary Nagios stop monitoring I would like to know via the secondary Nagios.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Issue is that I setup the check_nagios plugin and its giving me the status of the Nagios process of the primary server, but when I shutoff the Nagios process on the primary server (for testing), I am NOT getting any notification from the
 secondary server that something is wrong with the primary, and its also keeps telling me the process on the primary servers is OK.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Could you please assist ? thank you in advance.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">See my host service definition below.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">define service {<u></u><u></u></p>
<p class="MsoNormal">        use                             generic-service<u></u><u></u></p>
<p class="MsoNormal">        host_name                       ClearMon02<u></u><u></u></p>
<p class="MsoNormal">        service_description             Nagios<u></u><u></u></p>
<p class="MsoNormal">        check_command                   check_nagios<u></u><u></u></p>
<p class="MsoNormal">        notifications_enabled           1<u></u><u></u></p>
<p class="MsoNormal">          }<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">My command definition is below<u></u><u></u></p>
<p class="MsoNormal">define command{<u></u><u></u></p>
<p class="MsoNormal">        command_name    check_nagios<u></u><u></u></p>
<p class="MsoNormal">        command_line    $USER1$/check_nagios -F /usr/local/nagios/var/status.dat -e 1 -t  15 -C /usr/local/nagios/bin/nagios<u></u><u></u></p>
<p class="MsoNormal">        }<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<br clear="both">
______________________________________________________________________<br>
This email has been scanned by the Symantec Email Security.cloud service.<br>
</div>

</blockquote></div>