<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=koi8-r">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>First of all i want to say you thanks for your 
great idea to write such usefull plugins. But i faced with some problems when i 
began to use them. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1. check_disk_remote  there was some strange 
problem with definition of current status by Nagios. On two servers Nagios 
showed current status UNKNOWN though Status information was OK and echo 
$? was 0.  On other servers all were ok. I removed next 
strings from plugin check_disk_remote:</FONT></DIV>
<DIV><FONT face=Arial size=2># declare an error if we also get a non-zero return 
code from load<BR># unless already set to critical<BR>#if ( $? ) 
{<BR>#       print "stderr = $? : $! \n" if 
$verbose;<BR>#       $state = $state == 
$ERRORS{"CRITICAL"} ? $ERRORS{"CRITICAL"} : $ERRORS{"UNKNOWN"}  
;<BR>#       print "error: $!\n" if 
$verbose;<BR>#}<BR>And all became to work properly</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>2. check_load_remote. This script works fine except 
when the load on any server is four figures (f.e. 12.0,13.4,14.0)  At that 
time nagios shows like this:</FONT></DIV>
<DIV><FONT face=Arial size=2><!--StartFragment --><FONT size=3><FONT 
face="Times New Roman"> <TR><TD class=dataVar>Current Status:</TD><TD 
class=dataVal></FONT></FONT>
<DIV 
class=serviceOK>  OK    </DIV></TD></TR><TR><TD 
class=dataVar>Status Information:</TD><TD class=dataVal>OK: load () is below 
threshold (12/15)</TD></TR> <TR><TD class=dataVar>Performance Data:</TD><TD 
class=dataVal>load=</TD></TR> </DIV>
<DIV>Script can't count up the simple average of load values. I suspect that 
problem somewhere there:</DIV>
<DIV> </DIV>
<DIV>my $avg = $2 if /load average: (\S{4}), (\S{4}), (\S{4})/i;</DIV>
<DIV> </DIV>
<DIV>And there was the same problem with status which i solved the same way as 
in previous case.</DIV>
<DIV> </DIV>
<DIV>Please could you advise me what should i do in order to change these 
scripts correctly?</DIV>
<DIV> </DIV>
<DIV>Nagios' version is 2.0b4</DIV>
<DIV>plugins versions are:</DIV>
<DIV> </DIV>
<DIV> bash-3.00$ ./check_load_remote -V<BR>check_load_remote 
(nagios-plugins 1.4.1) 1.0<BR></DIV>
<DIV>bash-3.00$ ./check_disk_remote -V<BR>check_disk_remote (nagios-plugins 
1.4.1) 1.0</DIV>
<DIV> </DIV>
<DIV>OS with Nagios - FC3<BR>bash-3.00$ uname -a<BR>Linux fly.pcb 
2.6.12-1.1376_FC3 #1 Fri Aug 26 23:27:26 EDT 2005 i686 i686 i386 
GNU/Linux<BR></DIV>
<DIV>OS under test - Solaris 8 and 9</DIV>
<DIV> </DIV>
<DIV>If you need more information i would be glad to grant it</DIV>
<DIV> </DIV>
<DIV><BR>Thank you for you attention.</DIV>
<DIV> </DIV>
<DIV>With best regards,</DIV>
<DIV> </DIV>
<DIV>Mikhail Danilov</DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>