Page 5 of 5

Re: MIBS problem

Posted: Wed Jul 03, 2013 6:20 am
by MPIvan
I put the output of snmptranslate if you think about that but here its again
root@nagios:/usr/local/nagios/libexec# snmptranslate .1.3.6.1.2.1.1.3.0
SNMPv2-MIB::sysUpTime.0
root@nagios:/usr/local/nagios/libexec# snmptranslate .1.3.6.1.2.1.1.3
SNMPv2-MIB::sysUpTime
root@nagios:/usr/local/nagios/libexec#

Re: MIBS problem

Posted: Wed Jul 03, 2013 11:53 am
by sreinhardt
OK so translate understands the oids now, can you successfully restart snmpt?

Re: MIBS problem

Posted: Thu Jul 04, 2013 2:46 am
by MPIvan
Well i try but iv got failed .... here is the output ....
root@nagios:/# /etc/init.d/smartd restart
Stopping S.M.A.R.T. daemon: smartd.
Starting S.M.A.R.T. daemon: smartd (failed)
root@nagios:/# /etc/init.d/smartd stop
Stopping S.M.A.R.T. daemon: smartd.
root@nagios:/# /etc/init.d/smartd start
Starting S.M.A.R.T. daemon: smartd (failed)
root@nagios:/#

Re: MIBS problem

Posted: Mon Jul 08, 2013 11:23 am
by abrist
Try restarting snmpd, not SMART :)

Code: Select all

service snmpd restart

Re: MIBS problem

Posted: Tue Jul 09, 2013 8:50 am
by MPIvan
oooooo :D sorry ....

here it is the output

root@nagios:/# service snmpd restart
* Restarting network management services:
root@nagios:/# snmptranslate .1.3.6.1.2.1.1.3
SNMPv2-MIB::sysUpTime
root@nagios:/#

Re: MIBS problem

Posted: Tue Jul 09, 2013 11:07 am
by abrist
Its all good. Do your checks now work?

Re: MIBS problem

Posted: Wed Jul 10, 2013 8:13 am
by MPIvan
So here is what iv understand so far, the path for mibs is in "/usr/share/mibs/netsnmp/" and for example now im trying to use the "check_ups_pow.pl pluging and iv goth this error
root@nagios:/usr/local/nagios/libexec# /usr/bin/perl ./check_ups_pow.pl -H 192.168.100.200 -C Test123
Status is a WARNING level - SNMP OID does not exist|
root@nagios:/usr/local/nagios/libexec#
The plugin is for UPS and the UPS is EATON and i guess i have to download the mibs and put them in "/usr/share/mibs/netsnmp/", and should be ok ??

Re: MIBS problem

Posted: Wed Jul 10, 2013 9:52 am
by abrist
Don't forget to add the new mib to /etc/snmp/snmp.conf as you did with the SNMPv2-MIB mib:

Code: Select all

mibs +<mib name>

Re: MIBS problem

Posted: Thu Jul 11, 2013 5:43 am
by MPIvan
Thank you all for helping me about this ...