Editing Monitoring openvz resources using nagios and snmp
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 362: | Line 362: | ||
my $limit=$beancounters{$vmachine_id}{$resource}[3]; | my $limit=$beancounters{$vmachine_id}{$resource}[3]; | ||
if ( $failcnt_old < $failcnt ){ | if ( $failcnt_old < $failcnt ){ | ||
− | print "CRITICAL: | + | print "CRITICAL: Incrased failcnt $vmachine_id: ".url($resource,$linked)." from $failcnt_old to $failcnt (held->$held , maxheld->$maxheld , barrier->$barrier , limit->$limit ) " ; |
$ret=2; | $ret=2; | ||
} | } | ||
Line 378: | Line 378: | ||
} | } | ||
} | } | ||
− | if ($ret == 0 ) { print "OK | + | if ($ret == 0 ) { print "OK. \n" ; } |
# print Dumper(%beancounters_old) ; | # print Dumper(%beancounters_old) ; | ||
# print "\n"; | # print "\n"; | ||
Line 395: | Line 395: | ||
Also don't forget to consider this on your <code>nrpe.cfg</code>, so that you call the script with sudo: | Also don't forget to consider this on your <code>nrpe.cfg</code>, so that you call the script with sudo: | ||
command[check_ubc]=sudo /usr/local/nagios/libexec/check_ubc | command[check_ubc]=sudo /usr/local/nagios/libexec/check_ubc | ||
− | |||
− |