Dear All,

I am new to SNMP world. I would to configure and send trap for Apache, Asterisk, MySQL to my NMS server. What I have to do. Will I have to write script in Perl please send any example for this.

Please also let me know why I m getting following error.

snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (IP-MIB): At line 0 in (none)
IP-MIB::ipAdEntIfIndex: Unknown Object Identifier

snmpd.conf:

com2sec notConfigUser default public

group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser

view all included .1
view system included .iso.org.dod.internet.mgmt.mib-2.system

access notConfigGroup "" any noauth exact all none none

syslocation Pakistan, PK
syscontact NOC noc@xxxx.com

view all included .1 80

trapsink localhost public
authtrapenable 1

master agentx
agentXSocket /var/agentx/master
agentXPerms 0660 0775 nobody root

sysObjectID .1.3.6.1.4.1.22736.1
Dear All,

I am new to SNMP world. I would to configure and send trap for Apache, Asterisk, MySQL to my NMS server. What I have to do. Will I have to write script in Perl please send any example for this.

Please also let me know why I m getting following error.

snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (IP-MIB): At line 0 in (none)
IP-MIB::ipAdEntIfIndex: Unknown Object Identifier

snmpd.conf:

com2sec notConfigUser default public

group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser

view all included .1
view system included .iso.org.dod.internet.mgmt.mib-2.system

access notConfigGroup "" any noauth exact all none none

syslocation Pakistan, PK
syscontact NOC noc@xxxx.com

view all included .1 80

trapsink localhost public
authtrapenable 1

master agentx
agentXSocket /var/agentx/master
agentXPerms 0660 0775 nobody root

sysObjectID .1.3.6.1.4.1.22736.1

Simply that the "IP-MIB" module is not present on the system. Try running the same command without specifying a MIB. You should at least get the OIDs spit back at you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.