Editing Monitoring openvz resources using nagios and snmp
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 5: | Line 5: | ||
</pre> | </pre> | ||
− | edit '''/etc/default/snmpd''' : remove ''-u snmp'' and replace ''127.0.0.1'' with your ip | + | edit '''/etc/default/snmpd''' : remove ''-u snmp'' and replace ''127.0.0.1'' with your ip, Full'''/etc/default/snmpd''' example: |
<pre> | <pre> | ||
export MIBDIRS=/usr/share/snmp/mibs | export MIBDIRS=/usr/share/snmp/mibs | ||
Line 26: | Line 26: | ||
<pre> | <pre> | ||
/etc/init.d/snmpd stop | /etc/init.d/snmpd stop | ||
− | echo rouser my_username priv | + | echo rouser my_username priv > /etc/snmp/snmpd.conf |
echo "extend .1.3.6.1.4.1.2021.51 beancounters /bin/cat /proc/user_beancounters" >> /etc/snmp/snmpd.conf | echo "extend .1.3.6.1.4.1.2021.51 beancounters /bin/cat /proc/user_beancounters" >> /etc/snmp/snmpd.conf | ||
echo "extend .1.3.6.1.4.1.2021.52 vzquota /bin/cat /proc/vz/vzquota" >> /etc/snmp/snmpd.conf | echo "extend .1.3.6.1.4.1.2021.52 vzquota /bin/cat /proc/vz/vzquota" >> /etc/snmp/snmpd.conf | ||
Line 37: | Line 37: | ||
Testing snmp: | Testing snmp: | ||
<pre> | <pre> | ||
− | snmpwalk -v 3 -u | + | snmpwalk -v 3 -u my_usrname -l authPriv -a MD5 -A my_password -x DES -X my_password 207.46.250.119 |
</pre> | </pre> | ||