Difference between revisions of "Talk:Monitoring openvz resources using nagios and snmp"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
m (check_ubc Without SNMP: forgot the signature, sorry)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Very cool, thanks for the nagios plugin!
+
== Thanks ==
 +
Very cool, thanks for the nagios plugin! {{unsigned|Mh720|02:07, 14 November 2006}}
  
-mike
+
== Nagios w/o snmp ==
 +
Is there a nagios script to do the same monitoring without snmp? Seems like an unnecessary additional service to me. {{unsigned|Degradas|01:01, 27 September 2007}}
  
 +
: Remove the relevant snmp entries, and use the script with nagios-nrpe or with the nagios ssh plugin ... {{unsigned|Curx|21:50, 27 September 2007}}
  
Is there a nagios script to do the same monitoring without snmp? Seems like an unnecessary additional service to me.
+
== [[Monitoring_openvz_resources_using_nagios_and_snmp#check_ubc_Without_SNMP|check_ubc Without SNMP]] ==
  
--
+
Hi, after searching a long time for the error I would suggest to change this script.
degradas
+
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`
Remove the relevant snmp entries, and use the script with nagios-nrpe or with the nagios ssh plugin ...
+
by:
 
+
<source lang="bash">
--
+
ubc_file='/proc/user_beancounters';
Thorsten "curx" Schifferdecker
+
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
 +
</source>
 +
--[[User:Kako|Kako]] 07:01, 7 April 2009 (UTC)

Latest revision as of 07:01, 7 April 2009

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)