255 Exit status from Solaris 9 servers

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

255 Exit status from Solaris 9 servers

Postby GBarlow » Mon Feb 28, 2011 12:02 pm

Hi Nagios Forum,

I'm monitoring 70 odd Solaris 9 servers and 13 of them return 255 error codes when Nagios performs check_by_ssh checks. The check works fine if I perform it on the remote machine and if I run the command directly from the Nagios machine. But put it in Nagios and it gives me the 255 error code 9 times out of 10.

The command I'm running is:

/usr/local/groundwork/nagios/libexec/check_by_ssh -H <Remote IP> -t 120 -l "nagios" -q -C "./libexec/check_disk -w 10% -c 5% -p /opt"

Output from the Nagios machine is

DISK OK - free space: /opt 5294 MB (88%);| /opt=755MB;5443;5745;0;6048
$ echo $?
0

However in Nagios I get the following output:

/usr/local/groundwork/nagios/libexec/check_by_ssh -H <Remote IP> -t 120 -l "nagios" -q -C "./libexec/check_disk -w 10% -c 5% -p /opt"
DISK OK - free space: /opt 5321 MB (88%);| /opt=727MB;5443;5745;0;6048

Command returned exit status 255

The Command is defined as:

define command {
command_name check_by_ssh_disk
command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -t 120 -l "$USER17$" -q -C "$USER22$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$"
}

All of our hosts are defined as:

define host {
host_name <hostname>
alias <hostname>
address <Remote IP>
use generic-host
}


As I've said, this same check works fine on most of my Solaris 9 machines. If any of you have any information that could help me in rectifying this issue I would be very grateful

Kind regards
GBarlow
 
Posts: 2
Joined: Mon Feb 28, 2011 11:07 am

Re: 255 Exit status from Solaris 9 servers

Postby tonyyarusso » Tue Mar 01, 2011 11:42 am

If you're using GroundWork, you should be seeking support from GroundWork channels.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
tonyyarusso
 
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA

Re: 255 Exit status from Solaris 9 servers

Postby sun-support » Thu Mar 03, 2011 9:12 am

hello.can you give me a document that nagios install to solaris 10 !
mail:wangshuangyi@yahoo.cn
thank you !
sun-support
 
Posts: 3
Joined: Thu Mar 03, 2011 8:55 am

Re: 255 Exit status from Solaris 9 servers

Postby GBarlow » Tue Mar 08, 2011 11:39 am

Hi,

Groundwork is just used as a front end. All the monitoring is done through Nagios. Is there anything that anyone can think of to rectify this error?

Cheers

GBarlow
GBarlow
 
Posts: 2
Joined: Mon Feb 28, 2011 11:07 am


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 20 guests

cron