MIBS problem

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: MIBS problem

Post 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#
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: MIBS problem

Post by sreinhardt »

OK so translate understands the oids now, can you successfully restart snmpt?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: MIBS problem

Post 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:/#
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: MIBS problem

Post by abrist »

Try restarting snmpd, not SMART :)

Code: Select all

service snmpd restart
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: MIBS problem

Post 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:/#
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: MIBS problem

Post by abrist »

Its all good. Do your checks now work?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: MIBS problem

Post 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 ??
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: MIBS problem

Post 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>
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: MIBS problem

Post by MPIvan »

Thank you all for helping me about this ...
Locked