Editing Talk:Monitoring openvz resources using nagios and snmp

Jump to: navigation, search

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 6: Line 6:
  
 
: 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}}
 
: 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}}
 
== [[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.
 
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:
 
<source lang="bash">
 
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
 
</source>
 
--[[User:Kako|Kako]] 07:01, 7 April 2009 (UTC)
 

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page: