[Nagiosplug-devel] Nagios' remote checks
Mikhail Danilov
mdanilov at pkb.ru
Fri Oct 7 00:57:37 CEST 2005
Hello,
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.
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:
# declare an error if we also get a non-zero return code from load
# unless already set to critical
#if ( $? ) {
# print "stderr = $? : $! \n" if $verbose;
# $state = $state == $ERRORS{"CRITICAL"} ? $ERRORS{"CRITICAL"} : $ERRORS{"UNKNOWN"} ;
# print "error: $!\n" if $verbose;
#}
And all became to work properly
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:
Current Status:
OK
Status Information:OK: load () is below threshold (12/15) Performance Data:load=
Script can't count up the simple average of load values. I suspect that problem somewhere there:
my $avg = $2 if /load average: (\S{4}), (\S{4}), (\S{4})/i;
And there was the same problem with status which i solved the same way as in previous case.
Please could you advise me what should i do in order to change these scripts correctly?
Nagios' version is 2.0b4
plugins versions are:
bash-3.00$ ./check_load_remote -V
check_load_remote (nagios-plugins 1.4.1) 1.0
bash-3.00$ ./check_disk_remote -V
check_disk_remote (nagios-plugins 1.4.1) 1.0
OS with Nagios - FC3
bash-3.00$ uname -a
Linux fly.pcb 2.6.12-1.1376_FC3 #1 Fri Aug 26 23:27:26 EDT 2005 i686 i686 i386 GNU/Linux
OS under test - Solaris 8 and 9
If you need more information i would be glad to grant it
Thank you for you attention.
With best regards,
Mikhail Danilov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20051007/a5bec468/attachment.html>
More information about the Devel
mailing list