<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Re: [Nagios-users] NRPE: Command 'check_swap' not defined</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText13010 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Have you restarted the nrpe
deamon on the client system after adding the new commands?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Naren</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> nagios-users-bounces@lists.sourceforge.net
on behalf of yu-ting_liu@agilent.com<BR><B>Sent:</B> Thu 5/3/2007 7:54
AM<BR><B>To:</B> dermoth@aei.ca<BR><B>Cc:</B>
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> Re: [Nagios-users] NRPE:
Command 'check_swap' not defined<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Hi, Thomas,<BR><BR>Yes, the client hostname is definitely
correct. If I shutdown nrpe daemon on client, the output of check_nrpe on
monitor host is:<BR><BR> #
/usr/local/nagios/libexec/check_nrpe -H dadsrv -c
check_load<BR> Connection refused by
host<BR><BR>And my defined check_load command can run successfully on my client
as below:<BR><BR> $
/usr/local/nagios/libexec/check_load -w 15,10,5 -c
30,25,20<BR> load average: 0.00, 0.00,
0.00<BR><BR>Thanks & Regards,<BR><BR>Yu Ting<BR><BR>-----Original
Message-----<BR>From: Thomas Guyot-Sionnest [<A
href="mailto:dermoth@aei.ca">mailto:dermoth@aei.ca</A>]<BR>Sent: Wednesday, May
02, 2007 5:39 PM<BR>To: yu-ting_liu@agilent.com<BR>Cc:
nagios-users@lists.sourceforge.net<BR>Subject: Re: [Nagios-users] NRPE: Command
'check_swap' not defined<BR><BR>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?<BR><BR>Thomas<BR><BR>On 02/05/07 05:23 AM, yu-ting_liu@agilent.com
wrote:<BR>> Hi,<BR>><BR>> No, I even can't run check_nrpe command
successfully in command line. Below is the running command and
output:<BR>><BR>> -sh-3.00$ ./check_nrpe -H
remote_client_name -c check_load<BR>> NRPE:
Command 'check_load' not defined<BR>><BR>> 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.<BR>><BR>> nagios
14891 1 0 16:18:47
? 0:00
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d<BR>><BR>>
Regards,<BR>><BR>> Yu Ting<BR>><BR>> -----Original
Message-----<BR>> From: tom.welsh@bt.com [<A
href="mailto:tom.welsh@bt.com">mailto:tom.welsh@bt.com</A>]<BR>> Sent:
Wednesday, May 02, 2007 5:01 PM<BR>> To: yu-ting_liu@agilent.com<BR>> Cc:
nagios-users@lists.sourceforge.net<BR>> Subject: RE: [Nagios-users] NRPE:
Command 'check_swap' not defined<BR>><BR>> Hi<BR>><BR>> When you run
the command manually does it work?<BR>><BR>> Here is what I get when I run
my command<BR>><BR>> nagios@usel:/usr/local/nagios/libexec>
./check_nrpe -H test_server_1<BR>> -c check_load OK - load average: 1.09,
1.04,<BR>> 1.01|load1=1.090;15.000;30.000;0;
load5=1.040;10.000;25.000;0;<BR>>
load15=1.010;5.000;20.000;0;<BR>><BR>> Can you run the command and post
the output if you are still getting problems?<BR>><BR>> 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.<BR>><BR>> Here is the
output from /var/log/messages with debug turned on in<BR>>
nrpe.cfg<BR>><BR>> May 2 09:59:34 h12oiap nrpe[4469]: Host is asking
for command 'check_load' to be run...<BR>> May 2 09:59:34 h12oiap
nrpe[4469]: Running command:<BR>> /usr/local/nagios/libexec/check_load -w
15,10,5 -c 30,25,20 May 2<BR>> 09:59:34 h12oiap nrpe[4469]: Command
completed with return code 0 and<BR>> output: OK - load average: 0.17,
0.15,<BR>> 0.10|load1=0.170;15.000;30.000;0;
load5=0.150;10.000;25.000;0;<BR>> load15=0.100;5.000;20.000;0; May 2
09:59:34 h12oiap nrpe[4469]:<BR>> Return Code: 0, Output: OK - load<BR>>
average: 0.17, 0.15, 0.10|load1=0.170;15.000;30.000;0;<BR>>
load5=0.150;10.000;25.000;0; load15=0.100;5.000;20.000;0;<BR>><BR>> What
do you get when you run yours?<BR>><BR>> Regards<BR>><BR>>
Tom<BR>><BR>> -----Original Message-----<BR>> From:
yu-ting_liu@agilent.com [<A
href="mailto:yu-ting_liu@agilent.com">mailto:yu-ting_liu@agilent.com</A>]<BR>>
Sent: 02 May 2007 09:50<BR>> To: Welsh,T,Tom,XSL4A C<BR>> Cc:
nagios-users@lists.sourceforge.net<BR>> Subject: RE: [Nagios-users] NRPE:
Command 'check_swap' not defined<BR>><BR>> Hi, all,<BR>><BR>> I just
manually run command for testing purpose on my monitor server:<BR>><BR>>
/usr/local/nagios/check_nrpe -H remote_host_name
-c check_load<BR>><BR>> I've not configured it in Nagios configuration
files yet.<BR>><BR>> Regards,<BR>><BR>> Yu Ting<BR>><BR>>
-----Original Message-----<BR>> From: tom.welsh@bt.com [<A
href="mailto:tom.welsh@bt.com">mailto:tom.welsh@bt.com</A>]<BR>> Sent:
Wednesday, May 02, 2007 4:36 PM<BR>> To: yu-ting_liu@agilent.com;
nagios-users@lists.sourceforge.net<BR>> Subject: RE: [Nagios-users] NRPE:
Command 'check_swap' not defined<BR>><BR>> Is the check load command
specified on the nagios monitoring box<BR>><BR>> Here is how my config is
defined.<BR>><BR>> Remote nrpe box.
/usr/local/etc/nrpe.cfg<BR>><BR>>
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c<BR>>
30,25,20<BR>><BR>>>From nagios monitoring box.
/usr/local/nagios/etc/checkcommands.cfg<BR>><BR>> # ' check load on remote
systems using nrpe define
command{<BR>>
command_name
check_nrpe_load<BR>>
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c
$ARG1$<BR>> }<BR>><BR>>
This works fine for me.<BR>><BR>> Regards<BR>><BR>>
Tom<BR>><BR>><BR>><BR>> -----Original Message-----<BR>> From:
nagios-users-bounces@lists.sourceforge.net<BR>> [<A
href="mailto:nagios-users-bounces@lists.sourceforge.net">mailto:nagios-users-bounces@lists.sourceforge.net</A>]
On Behalf Of<BR>> yu-ting_liu@agilent.com<BR>> Sent: 02 May 2007
09:26<BR>> To: nagios-users@lists.sourceforge.net<BR>> Subject:
[Nagios-users] NRPE: Command 'check_swap' not defined<BR>><BR>>
Hi,<BR>><BR>> I've run into following NRPE issue.<BR>><BR>>
NRPE: Command 'check_load' not
defined<BR>><BR>> I've checked my remote client nrpe.cfg and the command
definition is properly configured there.<BR>><BR>>
command[check_load]=/usr/local/nagios/libexec/check_load -w<BR>> 15,10,5 -c
30,25,20<BR>> ...<BR>><BR>> Does anybody
know what reason else can cause such issue? Thanks in advance.<BR>><BR>>
Regards,<BR>><BR>> Yu Ting<BR>><BR>><BR>>
----------------------------------------------------------------------<BR>>
--<BR>> -<BR>> 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.<BR>> Just data. Click to get it now.<BR>> <A
href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</A><BR>>
_______________________________________________<BR>> Nagios-users mailing
list<BR>> Nagios-users@lists.sourceforge.net<BR>> <A
href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>>
::: Please include Nagios version, plugin version (-v) and OS when reporting any
issue.<BR>> ::: Messages without supporting info will risk being sent to
/dev/null<BR>><BR>>
----------------------------------------------------------------------<BR>>
--- This SF.net email is sponsored by DB2 Express Download DB2 Express<BR>> C
- the FREE version of DB2 express and take control of your XML. No<BR>>
limits. Just data. Click to get it now.<BR>> <A
href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</A><BR>>
_______________________________________________<BR>> Nagios-users mailing
list<BR>> Nagios-users@lists.sourceforge.net<BR>> <A
href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>>
::: Please include Nagios version, plugin version (-v) and OS when reporting any
issue.<BR>> ::: Messages without supporting info will risk being sent to
/dev/null<BR>><BR><BR><BR>-------------------------------------------------------------------------<BR>This
SF.net email is sponsored by DB2 Express<BR>Download DB2 Express C - the FREE
version of DB2 express and take<BR>control of your XML. No limits. Just data.
Click to get it now.<BR><A
href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</A><BR>_______________________________________________<BR>Nagios-users
mailing list<BR>Nagios-users@lists.sourceforge.net<BR><A
href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>:::
Please include Nagios version, plugin version (-v) and OS when reporting any
issue.<BR>::: Messages without supporting info will risk being sent to
/dev/null<BR></FONT></P></DIV>
</BODY>
</HTML>