Return code 255 and flapping services on Solaris 9

Peter Michael Calum pemca at tdc.dk
Fri Apr 18 17:08:46 CEST 2008


Hi
 
I'm running nagios plugins on a group of solaris 9 machines. I use the
check_by_ssh command to check disk, load ect
on the remote machines. I'm running the same check _ by _ ssh command
against a hostgroup of 15 machines, but one of them fails very often
and returns (Return code of 255 is out of bounds) on one or more
services, so services on that machine is constantly flapping. 
 
The machine which fails runs a DNS storage server application, and seems
to work fine, no errors in messages file, no counts on interfaces,
ssh and all commands runs fine and so on..
 
If i run the check_disk locally on the machine it works fine, and if i
run it manually from the nagios machine with check_by_ssh it also works
fine, but if nagios runs it it don't work ?? - and all other machines in
the same group works fine - strange
 
this is run  manually from nagios machine :
/usr/local/nagios/libexec/check_by_ssh -H khk23dso3.ip.tdk.dk  -l nagios
-i /home/nagios/.ssh/id_rsa -C 'plugin/check_disk -w 25% -c 15% -l -X
devfs'
 
DISK OK - free space: / 12192 MB (92% inode=99%); /usr 12668 MB (86%
inode=95%); /var 4393 MB (69% inode=95%); /var/run 10628 MB (99%
inode=99%); /tmp 10628 MB (99% inode=99%); /opt 14585 MB (99%
inode=99%); /export/home 8499 MB (87% inode=99%);|
/=970MB;9972;11301;0;13296 /usr=1957MB;11080;12557;0;14774
/var=1890MB;4759;5394;0;6346 /var/run=0MB;7971;9033;0;10628
/tmp=0MB;7971;9033;0;10628 /opt=41MB;11080;12557;0;14774
/export/home=1252MB;7387;8372;0;9850
   
I tried to print out the resultcode (echo $?) but i se only 0 as
resultcode. 
 
can anyone help  or give an idea on this problem
 
rgds,
Peter Calum  
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080418/34dbfc6f/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-------------- next part --------------
_______________________________________________
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