snmp dont work with nagios "Cannot find module"
Re: snmp dont work with nagios "Cannot find module"
How to do this yum list in ubuntu serv?
Re: snmp dont work with nagios "Cannot find module"
Code: Select all
apt --installed list | grep snmp
Re: snmp dont work with nagios "Cannot find module"
Shows this
- Attachments
-
- snmp1.png (11.29 KiB) Viewed 4906 times
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: snmp dont work with nagios "Cannot find module"
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?
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"
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
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: snmp dont work with nagios "Cannot find module"
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"
Because theres no /snmp/mibs/ in /usr/local/share, and i created the dirs to use the command, dont work
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: snmp dont work with nagios "Cannot find module"
Are you aware of how `ln -s` works?
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.Jessuzz94 wrote:Because theres no /snmp/mibs/ in /usr/local/share
Re: snmp dont work with nagios "Cannot find module"
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
!
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: snmp dont work with nagios "Cannot find module"
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!
Let us know if you have any other issues we can help with!