15
edits
Changes
m
→check_vzquota Without SNMP
</source>
The script calls <code>/usr/sbin/vzlist</code> by sudo. When doing this it normally needs a password, which check_nrpe will not know. 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/localsbin/nagios/libexec/check_vzquota Also don't forget to consider this on your <code>nrpe.cfg</code>vzlist, so that you call the script with sudo: command[check_ubc]=sudo /usr/local/nagios/libexecsbin/check_vzquotavzquota
=== check_ubc Without SNMP ===