Re: check_snmp bug on some strings
DonKiShoot <[email protected]>
| Newsgroups | gmane.network.nagios.plugins.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi list, I found my problem and will reply to myself and maybe to other users with the same problem. If you received hexadecimal values in reply, you probably need to add parameter '-m' and specify the mib file for the OID you check. Sorry to have disturbing. Regards, ----------------------------------------------------------------------------------------------------- Hi list, check_snmp bug on some strings while snmpget has no problem Client version : net-snmp-5.3.2.2-20.el5 Server version : net-snmp-5.3.2.2-20.el5 To describe a minimum, i'm trying to retreive two oids. The first oid correspond to a number who represent the exit code from a command. The second oid correspond to the result string of the same command. For more information see 'extend' parameter from snmpd.conf Now the bug ... Example OK : /usr/lib64/nagios/plugins/check_snmp -H 192.168.1.1 -P 2c -C public -o .1.3.6.1.4.1.8072.1.3.2.3.1.4.10.84.97.98.108.101.83.112.97.99.101,.1.3.6.1.4.1.8072.1.3.2.4.1.2.10.84.97.98.108.101.83.112.97.99.101.1 -w 1 -c 2 SNMP CRITICAL - *3* "Usage: check_oracle --tns <Oracle Sid or Hostname/IP address> check_oracle --db <ORACLE_SID> check_oracle --login <ORACLE_SID> check_oracle --cache <ORACLE_SID> <USER> <PASS> <CRITICAL> <WARNING> check_oracle --tablespace <ORACLE_SID> <USER> <PASS> <TABLESPACE> <CRITICAL> <WARNING> check_oracle --oranames <Hostname> check_oracle --help check_oracle --version" | iso.3.6.1.4.1.8072.1.3.2.3.1.4.10.84.97.98.108.101.83.112.97.99.101=3 Example KO : /usr/lib64/nagios/plugins/check_snmp -H 192.168.1.1 -P 2c -C public -o .1.3.6.1.4.1.8072.1.3.2.3.1.4.10.84.97.98.108.101.83.112.97.99.101,.1.3.6.1.4.1.8072.1.3.2.4.1.2.10.84.97.98.108.101.83.112.97.99.101.1 -w 1 -c 2 SNMP WARNING - *2* 43 52 49 54 49 43 41 4C 20 2D 20 4F 52 41 2D 31| iso.3.6.1.4.1.8072.1.3.2.3.1.4.10.84.97.98.108.101.83.112.97.99.101=2 iso.3.6.1.4.1.8072.1.3.2.4.1.2.10.84.97.98.108.101.83.112.97.99.101.1=43 check_snmp return hexa characters "43 52 49 54 49 43 41 4C 20 2D 20 4F 52 41 2D 31 ..." instead of a string like on the first check With snmpget the string is ok : snmpget -v2c -c altaread 10.2.50.111 iso.3.6.1.4.1.8072.1.3.2.4.1.2.10.84.97.98.108.101.83.112.97.99.101.1 NET-SNMP-EXTEND-MIB::nsExtendOutLine."TableSpace".1 = STRING: CRITICAL - ORA-12154: TNS : l'identificateur de connexion indiqué n'a pas pu être résolu What can i do to receive the string instead of Hexa characters ??? PS: Sorry for my poor english Regards, ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________________ Nagios Plugin Development Mailing List [email protected] Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null