Hi everyone, firstly I'd like to apologize for my English

I'm writing this mail to request help with the net-snmp tool v5.7.1 on
Debian 6 Squeeze.
I'm following the tips and instructions of the tutorials and FAQ's of the
web site, but I go on without  resolve my problem.
I'm trying to install a new MIB (APACHE2-MIB) in my host and I think that
it recognizes. I copied the MIB into the default mibdirs, however it
doesn't get any data.
I did the next steps.

Configure the files snmp and snmpd and copy them to confpath:

root@PandoraServer:~# net-snmp-config --snmpconfpath
/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/root/.snmp:/var/net-snmp

root@PandoraServer:~# net-snmp-config --default-mibdirs
/root/.snmp/mibs:/usr/local/share/snmp/mibs

### FILE: snmp.conf ###

mibs +ALL
mibdirs
+/usr/share/snmp/mib2c-data:+/var/lib/mibs/ietf:+/usr/share/mibs:+/var/lib/mibs/iana:+/usr/local/share/snmp/mibs/:+/root/.snmp/mibs:+

### FILE: snmpd.conf ###

rwcommunity apache2 192.168.1.10

I tested the configuration with the new APACHE2-MIB and it looks like that
works. I'm working with root privileges.

root@PandoraServer:~# snmptranslate -m APACHE2-MIB -IR -On serverStatus
.1.3.6.1.4.1.19786.1.1.2.5

root@PandoraServer:~# snmptranslate -Td .1.3.6.1.4.1.19786.1.1.2.5
APACHE2-MIB::serverStatus
serverStatus OBJECT-TYPE
  -- FROM       APACHE2-MIB
  SYNTAX        Integer32 {down(0), up(1), notResponding(2), starting(3),
stopping(4)}
  MAX-ACCESS    read-write
  STATUS        current
  DESCRIPTION   "Status
            0 - Down
            1 - Up
            2 - Starting
            3 - Shutting down
            4 - not responding"
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) 19786 1
apache2-mib(1) apache2MIBStatus(2) 5 }

When I eject snmpget or snmpset it doesn't work

root@PandoraServer:~# snmpget -c apache2 -v 2c 192.168.1.10 serverStatus.0
APACHE2-MIB::serverStatus.0 = No Such Object available on this agent at
this OID

root@PandoraServer:~# snmpset -c apache2 -v 2c 192.168.1.10 serverStatus.0
i 1
Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: APACHE2-MIB::serverStatus.0

Should I change any thing?

I'm desesperate so I thank you in advance for any reply to help me!
I hope your advice
bye
------------------------------------------------------------------------------
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