"UNKNOWN" problem, with a return code of 0 in solaris 9.

Patrick Walentiny Patrick.Walentiny at stellent.com
Thu Dec 11 23:14:38 CET 2003


That is all configured properly, and it is logging in just fine.  I am
running it as the nagios user, the key is setup as the nagios user.  I
even get proper output from the other side telling me my disks are OK,
but the return code is 3 and not 0.




-----Original Message-----
From: mattp at office-mail.cira.ca [mailto:mattp at office-mail.cira.ca] On
Behalf Of Matt Pounsett
Sent: Thursday, December 11, 2003 4:11 PM
To: Patrick Walentiny
Cc: Marc Powell; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] "UNKNOWN" problem, with a return code of 0
in solaris 9.

On Thu, 11 Dec 2003, Patrick Walentiny wrote:

> I'm sorry I didn't include the output, it is in fact executing.  Let
me
> paste the output for you.
> 
> 
> /***********************************/
> $ /usr/lib/nagios/plugins/check_by_ssh -v -H 12.40.185.175 -C
> '/opt/nagios/libexec/check_disk -c 10% -w 20%'
> /usr/bin/ssh 12.40.185.175 '/opt/nagios/libexec/check_disk -c 10% -w
> 20%'
> DISK OK - free space: / 10944 MB (91%); /usr 6814 MB (84%); /var 7875
MB
> (98%); /var/run 7438 MB (100%); /tmp 7438 MB (99%); /u01 426987 MB
> (87%);| /=10943MB;9606;10807;0;12008 /usr=6814MB;6452;7258;0;8065
> /var=7875MB;6452;7258;0;8065 /var/run=7437MB;5949;6693;0;7437
> /tmp=7437MB;6028;6781;0;7535 /u01=426986MB;390857;439714;0;488572
> 
> /************************************/
> 
> It's funny, no matter what the circumstance the remote plugin always
> claims it is okay.  The return code (either from the remote plugin, or
> the local check_by_ssh plugin is returning a 3, but ONLY if nagios
> itself runs it.

You say you've run this from the command line, but have you run it as
the
Nagios user?  check_by_ssh requires that you have a passwordless ssh key
to
allow login to the remote host... configuration of that key is
user-dependant.

It's possible you're getting an UNKNOWN result from check_by_ssh because
it is
unable to login to the remote host.




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
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