check_snmp quoting issue

Toto Capuccino shoktai at gmail.com
Thu Feb 16 16:46:25 CET 2006


did you try

/check_snmp -t 3 -P 3 -H 192.168.16.11 -w 1 -c 5 -L authPriv -U XXXXXXXX -a
> MD5 -A XXXXXXXX -X XXXXXXXX -o nsExtendResult.'"extt2"'
>




2006/2/16, Kyle Tucker <kylet at panix.com>:

Hi,
>         I'm trying to use the new extend directive
> in Net-SNMP and the symbolic OIDs literally contain
> a quote. I can't get check_snmp to be satisfied with
> the quotes I need to pass. I need to be able to pass
> nsExtendResult."extt2" to snmpd. Any suggestions?
>
> Thanks.
>
> /usr/local/nagios/libexec/check_snmp -t 3 -P 3 -H 192.168.16.11 -w 1 -c 5
> -L authPriv -U XXXXXXXX -a MD5 -A XXXXXXXX -X XXXXXXXX -o
> nsExtendResult."extt2"
> Could not open pipe: /usr/local/bin/snmpget -t 3 -r 5 -m ALL -v 3 -l
> authPriv -a MD5 -u XXXXXXXX -A XXXXXXXX -x DES -X XXXXXXXX
> 192.168.16.11:161  nsExtendResult."extt2"
>
> /usr/local/nagios/libexec/check_snmp -t 3 -P 3 -H 192.168.16.11 -w 1 -c 5
> -L authPriv -U XXXXXXXX -a MD5 -A XXXXXXXX -X XXXXXXXX -o
> nsExtendResult.\"extt2\"
> Could not open pipe: /usr/local/bin/snmpget -t 3 -r 5 -m ALL -v 3 -l
> authPriv -a MD5 -u XXXXXXXX -A XXXXXXXX -x DES -X XXXXXXXX
> 192.168.16.11:161  nsExtendResult.\"extt2\"
>
>
> --
> - Kyle
> ---------------------------------------------
> kylet at panix.com   http://www.panix.com/~kylet
> ---------------------------------------------
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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
>



--
Le bon sens est la chose du monde la mieux partagée.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060216/ae4e44d0/attachment.html>


More information about the Users mailing list