NRPE: Command 'check_swap' not defined
yu-ting_liu at agilent.com
yu-ting_liu at agilent.com
Thu May 3 04:24:10 CEST 2007
Hi, Thomas,
Yes, the client hostname is definitely correct. If I shutdown nrpe daemon on client, the output of check_nrpe on monitor host is:
# /usr/local/nagios/libexec/check_nrpe -H dadsrv -c check_load
Connection refused by host
And my defined check_load command can run successfully on my client as below:
$ /usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
load average: 0.00, 0.00, 0.00
Thanks & Regards,
Yu Ting
-----Original Message-----
From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca]
Sent: Wednesday, May 02, 2007 5:39 PM
To: yu-ting_liu at agilent.com
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] NRPE: Command 'check_swap' not defined
Are you sure you're hitting the right client? What happens if you shut down the remote nrpe client and try running check_nrpe again?
Thomas
On 02/05/07 05:23 AM, yu-ting_liu at agilent.com wrote:
> Hi,
>
> No, I even can't run check_nrpe command successfully in command line. Below is the running command and output:
>
> -sh-3.00$ ./check_nrpe -H remote_client_name -c check_load
> NRPE: Command 'check_load' not defined
>
> I've turned on the debug in my remote client nrpe.cfg file but no message outputs to my system log file at all - /var/adm/syslog/syslog.log. That's also puzzle me. I'm using nrpe.cfg sample file to config and nrpe daemon is running as below on the client.
>
> nagios 14891 1 0 16:18:47 ? 0:00 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
>
> Regards,
>
> Yu Ting
>
> -----Original Message-----
> From: tom.welsh at bt.com [mailto:tom.welsh at bt.com]
> Sent: Wednesday, May 02, 2007 5:01 PM
> To: yu-ting_liu at agilent.com
> Cc: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] NRPE: Command 'check_swap' not defined
>
> Hi
>
> When you run the command manually does it work?
>
> Here is what I get when I run my command
>
> nagios at usel:/usr/local/nagios/libexec> ./check_nrpe -H test_server_1
> -c check_load OK - load average: 1.09, 1.04,
> 1.01|load1=1.090;15.000;30.000;0; load5=1.040;10.000;25.000;0;
> load15=1.010;5.000;20.000;0;
>
> Can you run the command and post the output if you are still getting problems?
>
> Have you turned on debugging on the nrpe.cfg file and looked at the output when you have ran the command. This is very helpful diagnostic tool.
>
> Here is the output from /var/log/messages with debug turned on in
> nrpe.cfg
>
> May 2 09:59:34 h12oiap nrpe[4469]: Host is asking for command 'check_load' to be run...
> May 2 09:59:34 h12oiap nrpe[4469]: Running command:
> /usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 May 2
> 09:59:34 h12oiap nrpe[4469]: Command completed with return code 0 and
> output: OK - load average: 0.17, 0.15,
> 0.10|load1=0.170;15.000;30.000;0; load5=0.150;10.000;25.000;0;
> load15=0.100;5.000;20.000;0; May 2 09:59:34 h12oiap nrpe[4469]:
> Return Code: 0, Output: OK - load
> average: 0.17, 0.15, 0.10|load1=0.170;15.000;30.000;0;
> load5=0.150;10.000;25.000;0; load15=0.100;5.000;20.000;0;
>
> What do you get when you run yours?
>
> Regards
>
> Tom
>
> -----Original Message-----
> From: yu-ting_liu at agilent.com [mailto:yu-ting_liu at agilent.com]
> Sent: 02 May 2007 09:50
> To: Welsh,T,Tom,XSL4A C
> Cc: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] NRPE: Command 'check_swap' not defined
>
> Hi, all,
>
> I just manually run command for testing purpose on my monitor server:
>
> /usr/local/nagios/check_nrpe -H remote_host_name -c check_load
>
> I've not configured it in Nagios configuration files yet.
>
> Regards,
>
> Yu Ting
>
> -----Original Message-----
> From: tom.welsh at bt.com [mailto:tom.welsh at bt.com]
> Sent: Wednesday, May 02, 2007 4:36 PM
> To: yu-ting_liu at agilent.com; nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] NRPE: Command 'check_swap' not defined
>
> Is the check load command specified on the nagios monitoring box
>
> Here is how my config is defined.
>
> Remote nrpe box. /usr/local/etc/nrpe.cfg
>
> command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c
> 30,25,20
>
>>From nagios monitoring box. /usr/local/nagios/etc/checkcommands.cfg
>
> # ' check load on remote systems using nrpe define command{
> command_name check_nrpe_load
> command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
> }
>
> This works fine for me.
>
> Regards
>
> Tom
>
>
>
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net
> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of
> yu-ting_liu at agilent.com
> Sent: 02 May 2007 09:26
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] NRPE: Command 'check_swap' not defined
>
> Hi,
>
> I've run into following NRPE issue.
>
> NRPE: Command 'check_load' not defined
>
> I've checked my remote client nrpe.cfg and the command definition is properly configured there.
>
> command[check_load]=/usr/local/nagios/libexec/check_load -w
> 15,10,5 -c 30,25,20
> ...
>
> Does anybody know what reason else can cause such issue? Thanks in advance.
>
> Regards,
>
> Yu Ting
>
>
> ----------------------------------------------------------------------
> --
> -
> This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits.
> Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>
> ----------------------------------------------------------------------
> --- This SF.net email is sponsored by DB2 Express Download DB2 Express
> C - the FREE version of DB2 express and take control of your XML. No
> limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list