Hi Juki,<br><br><div class="gmail_quote">On Wed, Jul 15, 2009 at 2:14 PM, Juki <span dir="ltr"><<a href="mailto:juki.emma@gmail.com">juki.emma@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font face="tahoma,sans-serif">Hi Guy,</font><br><br><font face="tahoma,sans-serif">My findings in-line...</font><br><br><br><div class="gmail_quote"><div class="im">2009/7/15 Guy Waugh <span dir="ltr"><<a href="mailto:guidosh@gmail.com" target="_blank">guidosh@gmail.com</a>></span><br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div>They should only be defined in one place. From those errors, it sounds like NRPE on the monitored host doesn't have those commands defined, which suggests that it's not reading your nrpe.cfg config file. I would check out NRPE on the monitored host... do any checks on that host work at all? </div>
</div></blockquote><div><br><br><font face="tahoma,sans-serif">Yes, indeed the checks do work. These have been run on the monitored host. See below;<br><br><i style="color: rgb(255, 0, 0);">bash$ /usr/local/nagios/libexec/check_disk -w 30% -c 20% -p /var/opt/BGw/Server1<br>
DISK OK - free space: /var/opt/BGw/Server1 35606 MB (68% inode=97%);| /var/opt/BGw/Server1=16589MB;37990;43417;0;54272<br><br>bash$ /usr/local/nagios/libexec/check_disk -w 30% -c 20% -p /var/opt/BGw/Server1<br>DISK OK - free space: /var/opt/BGw/Server1 35614 MB (68% inode=97%);| /var/opt/BGw/Server1=16581MB;37990;43417;0;54272</i></font></div>
</div></blockquote><div><br>OK, so they look like checks run from the monitored host itself, right?<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div><font face="tahoma,sans-serif"><i style="color: rgb(255, 0, 0);"></i><br>
<br></font> <br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div>Is the nrpe.cfg file in /usr/local/nagios/etc? Is either the NRPE daemon running or xinetd is handling the NRPE connections? Is the host listening on port 5666? Are the permissions on the nrpe.cfg file correct? What happens when you run an NRPE service check for that host manually, from the nagios server?</div>
</div></blockquote></div><div><br><font face="tahoma,sans-serif">Yes, the nrpe.cfg file is in /usr/local/nagios/etc with permissions;<br><br><i style="color: rgb(255, 0, 0);">bash$ ls -l /usr/local/nagios/etc/<br>total 32<br>
-rw-r--r-- 1 nagios nagios 7871 Jul 15 14:21 nrpe.cfg</i><br>
<br>The NRPE daemon is running on the pid...<br><br><i style="color: rgb(255, 0, 0);">bash$ ps -ef | grep nrpe<br> root 25866 14582 0 16:01:25 pts/4 0:00 grep nrpe<br> nagios 1640 1 0 Jan 09 ? 49:38 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d<br>
nagios 9702 1 0 Jul 09 ? 1:27 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d</i></font></div></div></blockquote><div><br>Eek! How come there are two??? There should only be one nrpe daemon running. You can see that the first one has been running since January. Kill them both, with extreme prejudice, restart it and verify that there's only one copy of the nrpe daemon running. This will probably solve your problem.<br>
<br>Regards,<br>Guy.<br> <br><snip><br></div></div><br>