Hello everyone,

I'm currently trying to install a MIB for my enterprise (got IANA number),but 
it seems I got some problem.

So I try to use this : 
http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_MIB_Module

So i have :

./configure --with-mib-modules="nstAgentModuleObject"

Make

Make install



Added community in snmpd.conf.


Restart /etc/init.d/snmpd restart (Ubuntu server).

When i do : snmptranslate -m +NET-SNMP-TUTORIAL-MIB -IR -On nstAgentModuleObject
Answer is : .1.3.6.1.4.1.8072.2.4.1.1.1

snmptranslate -Td -M+. -mNET-SNMP-TUTORIAL-MIB -IR nstAgentModuleObject
I got :
NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject
nstAgentModuleObject OBJECT-TYPE
  -- FROM       NET-SNMP-TUTORIAL-MIB
  SYNTAX        Integer32
  MAX-ACCESS    read-write
  STATUS        current
  DESCRIPTION   "This is an object that simply supports a writable integer
         when compiled into the agent.  See
         http://www.net-snmp.org/tutorial-5/toolkit/XXX for further
         implementation details."
  DEFVAL        { 1 }
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) netSnmp(8072) 
netSnmpExamples(2) netSnmpTutorialMIB(4) nstMIBObjects(1) nstAgentModules(1) 1 }

snmptranslate -M+. -mNET-SNMP-TUTORIAL-MIB -Tp -IR nstAgentModuleObject
+-- -RW- Integer32 nstAgentModuleObject(1)


But once i try : snmpget -v2c -c Dialog localhost 
NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0
=>NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 = No Such Object available on 
this agent at this OID


Here is my snmpd.conf located in /etc/snmp/

agentAddress udp:161,udp6:[::1]:161
view all included .1
rocommunity Dialog  default
rouser   authOnlyUser
sysLocation    Sitting on the Dock of the Bay
sysContact     Me <m...@example.org>
                                                 # Application + End-to-End 
layers
sysServices    72
proc  mountd
                               # No more than 4 'ntalkd' processes - 0 is OK
proc  ntalkd    4
                               # At least one 'sendmail' process, but no more 
than 10
proc  sendmail 10 1
disk       /     10000
disk       /var  5%
includeAllDisks  10%
trapsink     localhost public


iquerySecName   internalUser
rouser          internalUser
                                   # generate traps on UCD error conditions
defaultMonitors          yes
                                   # generate traps on linkUp/Down
linkUpDownNotifications  yes

extend    test1   /bin/echo  Hello, world!
extend-sh test2   echo Hello, world! ; echo Hi there ; exit 35

master          agentx



And my snmp.conf locate  in /etc/snmp/

mibdirs /usr/local/share/snmp/mibs/


Thx for your help.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to