16
edits
Changes
→snmpd configuration
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'
</pre>
Create user(my_username) and add new mib:
<pre>
/etc/init.d/snmpd stop
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 createUser my_username MD5 my_password DES >> /var/lib/snmp/snmpd.conf
/etc/init.d/snmpd start
</pre>
Testing snmp:
<pre>
snmpwalk -v 3 -u my_usrname -l authPriv -a MD5 -A my_password -x DES -X my_password 207.46.250.119
</pre>
== nagios configuration ==
= nagios plugin =