Talk:Monitoring openvz resources using nagios and snmp
From OpenVZ Linux Containers Wiki
[edit] Thanks
Very cool, thanks for the nagios plugin! —The preceding unsigned comment was added by Mh720 (talk • contribs) 02:07, 14 November 2006.
[edit] Nagios w/o snmp
Is there a nagios script to do the same monitoring without snmp? Seems like an unnecessary additional service to me. —The preceding unsigned comment was added by Degradas (talk • contribs) 01:01, 27 September 2007.
- Remove the relevant snmp entries, and use the script with nagios-nrpe or with the nagios ssh plugin ... —The preceding unsigned comment was added by Curx (talk • contribs) 21:50, 27 September 2007.
[edit] check_ubc Without SNMP
Hi, after searching a long time for the error I would suggest to change this script. A help would be a result "critical" if the file /proc/user_beancounters" is not readable (or empty) with a hint to sudo. In my case Nagios was always saying the all was ok, and it wasn't... (Without any hint or problem that check_ubc simple wasn't able to read the file) This could simply be done be changing the following line:
DATA=`cat /proc/user_beancounters`
by:
ubc_file='/proc/user_beancounters'; DATA=''; if [ -r $ubc_file ]; then DATA=`cat $ubc_file` fi if [ -z "$DATA" ]; then echo "CRITICAL - $ubc_file is not readable or empty. Maybe it is only readable for root and this script should be called by sudo."; exit 3; fi
--Kako 07:01, 7 April 2009 (UTC)