Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Monitoring openvz resources using nagios and snmp

514 bytes added, 06:45, 7 April 2009
check_ubc Without SNMP: append a hint to needed sudo entries
exit $RET
</source>
The script needs to read the <code>/proc/user_beancounters</code> file. This is normally only readable for root. Because of this it is necessary that you append a line like the following to <code>/etc/sudors</code> (user name an path should be adapted to the right ones on your system):
nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_ubc
 
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
15
edits