Categories: Linux, Misc

after installing some cool nagios snmp plugins from nagios-snmp, i ran into a little netsnmp issues

$ ./check_snmp_process 
./check_snmp_process: error while loading shared libraries: cannot open shared object file: No such file or directory

lovely error….

so lets check what the dep’s are:

$ ldd check_snmp_process =>  (0xffffe000) => not found => /lib/tls/i686/cmov/ (0xb7f95000) => /lib/tls/i686/cmov/ (0xb7e53000)
        /lib/ (0xb7fcf000)

ok, lets make sure that it is installed

1) try installing/re-installing Net::SNMP :
$ sudo perl -MCPAN -e shell
cpan> install Net::SNMP

and make sure that net-snmp is installed or configured correctly.
see net-snmp for help.

2) now lets hunt it down:

$ sudo find / -name*

3) now lets just link:

$ sudo ln -s /usr/local/lib/ /usr/lib/

4) test:

$ ./check_snmp_process 
Set hostname or IP !
Usage: check_snmp_process [-v -V] -H <host> -C <snmp_community> [-2] | (-l login -x passwd [-X pass -L <authp>,<privp>)  [-p <port>] [-t <timeout>] -n <name> [-w <min_proc>[,<max_proc>] -c <min_proc>[,max_proc] ] [-m<warn Mb>,<crit Mb> -a -u<warn %>,<crit%> -d<delta>] [-f -A -F] [-r]

Leave a Reply

Your email address will not be published. Required fields are marked *