Hi Juki,

On Wed, Jul 15, 2009 at 2:14 PM, Juki <juki.e...@gmail.com> wrote:

> Hi Guy,
>
> My findings in-line...
>
>
> 2009/7/15 Guy Waugh <guid...@gmail.com>
>
>> 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?
>>
>
>
> Yes, indeed the checks do work. These have been run on the monitored host.
> See below;
>
> *bash$ /usr/local/nagios/libexec/check_disk -w 30% -c 20% -p
> /var/opt/BGw/Server1
> DISK OK - free space: /var/opt/BGw/Server1 35606 MB (68% inode=97%);|
> /var/opt/BGw/Server1=16589MB;37990;43417;0;54272
>
> bash$ /usr/local/nagios/libexec/check_disk -w 30% -c 20% -p
> /var/opt/BGw/Server1
> DISK OK - free space: /var/opt/BGw/Server1 35614 MB (68% inode=97%);|
> /var/opt/BGw/Server1=16581MB;37990;43417;0;54272*
>

OK, so they look like checks run from the monitored host itself, right?


> **
>
>
>
>> 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?
>>
>
> Yes, the nrpe.cfg file is in /usr/local/nagios/etc with permissions;
>
> *bash$ ls -l /usr/local/nagios/etc/
> total 32
> -rw-r--r--   1 nagios   nagios      7871 Jul 15 14:21 nrpe.cfg*
>
> The NRPE daemon is running on the pid...
>
> *bash$ ps -ef | grep nrpe
>   root 25866 14582   0 16:01:25 pts/4       0:00 grep nrpe
>   nagios  1640     1   0   Jan 09 ?          49:38
> /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
>   nagios  9702     1   0   Jul 09 ?           1:27
> /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d*
>

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.

Regards,
Guy.

<snip>
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to