Uptime snmpget error
Posted: Fri Jan 31, 2014 10:41 am
I finally got the new Nagios server online. I'm migrating from a Nagios Core 3.3.1 installation to a Core 4.02 with the new plugins on CentOS 6.5. I transferred the .cfg files, and 19 commands to /usr/local/nagios/libexec, from the old server to the new one. I made changes to the nagios.cfg and most of the commands are working. Uptime is not working. When I run the command with putty I get an error. I didn't have snmpget in /usr/bin so I moved it from the old server to the new. Do I need to install a package?
# /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] 10.254.1.1:161 sysUpTimeInstance
/usr/bin/snmpget: error while loading shared libraries: libnetsnmp.so.25: cannot open shared object file: No such file or directory
Update: I looked on both servers. The new server has libnet.so.20 not 25. Is there a file I can edit or a new version of a file to install?
# /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] 10.254.1.1:161 sysUpTimeInstance
/usr/bin/snmpget: error while loading shared libraries: libnetsnmp.so.25: cannot open shared object file: No such file or directory
Update: I looked on both servers. The new server has libnet.so.20 not 25. Is there a file I can edit or a new version of a file to install?