Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Monitoring openvz resources using nagios and snmp

50 bytes added, 12:26, 21 December 2015
add category monitoring
my $limit=$beancounters{$vmachine_id}{$resource}[3];
if ( $failcnt_old < $failcnt ){
print "CRITICAL: Incrased Increased failcnt $vmachine_id: ".url($resource,$linked)." from $failcnt_old to $failcnt (held->$held , maxheld->$maxheld , barrier->$barrier , limit->$limit ) " ;
$ret=2;
}
}
}
if ($ret == 0 ) { print "OK. : All bean counters fine \n" ; }
# print Dumper(%beancounters_old) ;
# print "\n";
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
 
[[Category: Monitoring]]