Strange output from check_snmp
Ing Peter Jevoš
it.systems at seznam.cz
Sat Aug 26 21:20:57 CEST 2006
Hi
When I run check_snmp with verbose parameter I get:
monit:/tmp/install/gwfl-nagios-plugins-2.1 # /usr/local/nagios/libexec/check_snmp -v -H 10.1.1.1 -P 1 -C string -o .1.3.6.1.4.1.9.2.1.58.0
/usr/bin/snmpget -t 1 -r 5 -m '' -v 1 -c string 10.1.1.1:161 .1.3.6.1.4.1.9.2.1.58.0
iso.3.6.1.4.1.9.2.1.58.0 = INTEGER: 5
SNMP OK - 5 | iso.3.6.1.4.1.9.2.1.58.0=▒▒▒;;;;
monit:/tmp/install/gwfl-nagios-plugins-2.1 # PuTTY
-bash: PuTTY: command not found
monit:/tmp/install/gwfl-nagios-plugins-2.1 #
It worked without problem before but I reinstalled system with Suse 10.1 and there is
net-snmp-5.3.0.1-21
net-snmp-devel-5.3.0.1-21
Of course, I compiled nagios-plugins with this new snmp package
I tried to install also other plugin from nagiosexachange.org like check_snmp-1.4 and gwfl-nagios-plugins-2.1 but make failed because of snmp problems
src/check_snmp.c:170: warning: passing argument 2 of ‘check_snmp_intervals’ from incompatible pointer type
src/check_snmp.c:173: warning: passing argument 2 of ‘check_snmp_strings’ from incompatible pointer type
src/check_snmp.c:176: warning: passing argument 2 of ‘check_snmp_regexes’ from incompatible pointer type
src/check_snmp.c:179: warning: passing argument 2 of ‘check_snmp_simple’ from incompatible pointer type
src/check_snmp.c: At top level:
src/check_snmp.c:186: warning: ‘struct variable_list’ declared inside parameter list
src/check_snmp.c:187: error: conflicting types for ‘check_snmp_var_type’
./inc/check_snmp.h:107: error: previous declaration of ‘check_snmp_var_type’ was here
src/check_snmp.c: In function ‘check_snmp_var_type’:
src/check_snmp.c:188: error: dereferencing pointer to incomplete type
src/check_snmp.c:189: error: ‘SNMP_NOSUCHOBJECT’ undeclared (first use in this function)
src/check_snmp.c:190: error: ‘SNMP_NOSUCHINSTANCE’ undeclared (first use in this function)
src/check_snmp.c: In function ‘check_snmp_get_value’:
src/check_snmp.c:203: error: ‘ASN_APPLICATION’ undeclared (first use in this function)
src/check_snmp.c: In function ‘check_snmp_var_type’:
src/check_snmp.c:195: warning: control reaches end of non-void function
make: *** [src/check_snmp.o] Error 1
Thanks a lot
Pet
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list