Talk:Monitoring openvz resources using nagios and snmp

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search

Thanks[edit]

Very cool, thanks for the nagios plugin! —The preceding unsigned comment was added by Mh720 (talkcontribs) 02:07, 14 November 2006.

Nagios w/o snmp[edit]

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 (talkcontribs) 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 (talkcontribs) 21:50, 27 September 2007.

check_ubc Without SNMP[edit]

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)