Comment #32 on issue 1029 by jean.deruelle: SNMP Support
http://code.google.com/p/mobicents/issues/detail?id=1029

#Some reading on snmptrapd
http://www.net-snmp.org/wiki/index.php/TUT:Using_and_loading_MIBS
http://www.net-snmp.org/wiki/index.php/TUT:snmptrap_SNMPv3
http://www.net-snmp.org/wiki/index.php/TUT:Configuring_snmptrapd_to_receive_SNMPv3_notifications

#Edit the configuration file of snmptrapd to allow it to receive TRAP and INFORM from given user
sudo gedit /etc/snmp/snmptrapd.conf&

# User to receive TRAP
createUser -e 0x80001370017F000101 TEST MD5 maplesyrup DES maplesyrup
# User to receive INFORM
createUser myuser MD5 password DES password
# Those make snmptrapd log the TRAPs and INFORM to the console
authUser log,execute,net TEST
authUser log,execute,net myuser

#run the snmptrapd and output to the console
sudo snmptrapd -f -Lo

# you can add this option for debugging user negotiation
-Dusm


It is possible to make snmptrap display the name of the OID defined in the MIB of JBoss :

#Some reading
http://www.wtcs.org/snmp4tpc/snmp.htm

#Check the dir where the mib will be loaded from
net-snmp-config --default-mibdirs

# edit the snmp.conf
sudo gedit /etc/snmp/snmp.conf&
#include all MIB
=> mibs ALL
#copy the mib to the user dir where the mib will be loaded from
cp ~/servers/jboss-5.1.0.GA/server/default/deploy/snmp-adaptor.sar/mss-attributes.mib /home/jean/.snmp/mibs/

Reply via email to