Page 2 of 2
Re: snmp dont work with nagios "Cannot find module"
Posted: Mon Jul 06, 2015 12:07 pm
by Jessuzz94
How to do this yum list in ubuntu serv?
Re: snmp dont work with nagios "Cannot find module"
Posted: Mon Jul 06, 2015 12:10 pm
by jolson
Re: snmp dont work with nagios "Cannot find module"
Posted: Mon Jul 06, 2015 12:37 pm
by Jessuzz94
Shows this
Re: snmp dont work with nagios "Cannot find module"
Posted: Mon Jul 06, 2015 2:32 pm
by jdalrymple
This looks OK, albeit a bit confusing to the eyes of a CentOS guy it looks like that's the right stuff.
Can you show us the command line that is failing? Are you using the nagios plugin check_snmp, or perhaps some other 3rd party plugin that leverages snmpget? Maybe we need to fiddle with some paths.
Command line?
Output?
Re: snmp dont work with nagios "Cannot find module"
Posted: Mon Jul 06, 2015 3:00 pm
by Jessuzz94
I put the command to test the uptime of the switch and doesnt find the mibs, the path that the command shows is /usr/local/share/snmp/mibs, and theres nothing, mibs are in /usr/share/snmp/mibs
Re: snmp dont work with nagios "Cannot find module"
Posted: Mon Jul 06, 2015 3:28 pm
by jdalrymple
Any reason you can't just do an 'ln -s /usr/share/snmp mibs /usr/local/share/snmp/mibs'?
Re: snmp dont work with nagios "Cannot find module"
Posted: Mon Jul 06, 2015 3:39 pm
by Jessuzz94
Because theres no /snmp/mibs/ in /usr/local/share, and i created the dirs to use the command, dont work
Re: snmp dont work with nagios "Cannot find module"
Posted: Mon Jul 06, 2015 3:43 pm
by jdalrymple
Are you aware of how `ln -s` works?
Jessuzz94 wrote:Because theres no /snmp/mibs/ in /usr/local/share
You wouldn't want snmp/mibs/, just a dir named snmp. You can then softlink mibs using the command I posted above. If you do this snmp will look back towards /usr/share/snmp/mibs for all of the MIBs.
Re: snmp dont work with nagios "Cannot find module"
Posted: Mon Jul 06, 2015 4:47 pm
by Jessuzz94
ln work now, i found in a website that i need to delete some libsnmp packages, and i remove all snmp packages and reinstall snmp and snmpd, looks like if i install snmp from the official page downloading the .tar.gz and compiling, the snmpd fails in the future, so, one big advice is that the first thing that is need is to install snmp and snmp from command. well. that works for me. The ln commnand was required to run fine my snmp with nagios, so very thanks men! i appreciate it

!
Re: snmp dont work with nagios "Cannot find module"
Posted: Mon Jul 06, 2015 4:52 pm
by jdalrymple
Glad you got it sorted - I'm going to go ahead and lock the topic.
Let us know if you have any other issues we can help with!