check_snmp quoting issue
Kyle Tucker
kylet at panix.com
Thu Feb 16 16:56:26 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"'
Yes, I tried all kinds of combinations. I should add this exits with
exit code 3.
/usr/local/nagios/libexec/check_snmp -t 3 -P 3 -H 192.168.16.11 \
-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"
If I call snmpget directly, the quoting is passed on correctly, thus
my suspicion it's check_snmp getting confused.
/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\"
NET-SNMP-EXTEND-MIB::nsExtendResult."extt2" = INTEGER: 2
> 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=3Dlnk&kid=3D103432&bid=3D230486&dat=
> =3D121642
> > _______________________________________________
> > 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=E9e.
>
> ------=_Part_6625_25257703.1140104785346
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
> Content-Disposition: inline
>
> did you try <br><br><blockquote class=3D"gmail_quote" style=3D"border-left:=
> 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex=
> ;">/check_snmp -t 3 -P 3 -H <a href=3D"http://192.168.16.11">192.168.16.11<=
> /a>
> -w
> 1 -c 5 -L authPriv -U XXXXXXXX -a MD5 -A XXXXXXXX -X XXXXXXXX -o
> nsExtendResult.<span style=3D"color: rgb(255, 0, 0);">'</span>"extt2&q=
> uot;<span style=3D"color: rgb(255, 0, 0);">' <br></span></blockquote><div><=
> br><br> </div><br><blockquote class=3D"gmail_quote" style=3D"border-le=
> ft: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: =
> 1ex;">
> 2006/2/16, Kyle Tucker <<a href=3D"mailto:kylet at panix.com">kylet at panix.c=
> om</a>>:</blockquote><div><span class=3D"gmail_quote"></span><blockquote=
> class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); =
> margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> Hi,<br> I'm trying to use th=
> e new extend directive<br>in Net-SNMP and the symbolic OIDs literally conta=
> in<br>a quote. I can't get check_snmp to be satisfied with<br>the quotes I =
> need to pass. I need to be able to pass
> <br>nsExtendResult."extt2" to snmpd. Any suggestions?<br><br>Than=
> ks.<br><br>/usr/local/nagios/libexec/check_snmp -t 3 -P 3 -H <a href=3D"htt=
> p://192.168.16.11">192.168.16.11</a> -w 1 -c 5 -L authPriv -U XXXXXXXX -a M=
> D5 -A XXXXXXXX -X XXXXXXXX -o nsExtendResult."extt2"
> <br>Could not open pipe: /usr/local/bin/snmpget -t 3 -r 5 -m ALL -v 3 -l au=
> thPriv -a MD5 -u XXXXXXXX -A XXXXXXXX -x DES -X XXXXXXXX <a href=
> =3D"http://192.168.16.11:161">192.168.16.11:161</a> nsExtendResu=
> lt."extt2"
> <br><br>/usr/local/nagios/libexec/check_snmp -t 3 -P 3 -H <a href=3D"http:/=
> /192.168.16.11">192.168.16.11</a> -w 1 -c 5 -L authPriv -U XXXXXXXX -a MD5 =
> -A XXXXXXXX -X XXXXXXXX -o nsExtendResult.\"extt2\"<br>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
> <a href=3D"http://192.168.16.11:161">192.168.16.11:161</a> nsExt=
> endResult.\"extt2\"<br><br><br>--<br>- Kyle<br>------------------=
> ---------------------------<br><a href=3D"mailto:kylet at panix.com">kylet at pan=
> ix.com</a>
> <a href=3D"http://www.panix.com/~kylet">http://www.panix.com/~=
> kylet</a><br>---------------------------------------------<br><br><br>-----=
> --------------------------------------------------<br>This SF.net email is =
> sponsored by: Splunk Inc. Do you grep through log files
> <br>for problems? Stop! Download the new AJAX search =
> engine that makes<br>searching your log files as easy as surfing the &=
> nbsp;web. DOWNLOAD SPLUNK!<br><a href=3D"http://sel.as-us.falkag=
> .net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D121642">
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486=
> &dat=3D121642</a><br>_______________________________________________<br=
> >Nagios-users mailing list<br><a href=3D"mailto:Nagios-users at lists.sourcefo=
> rge.net">
> Nagios-users at lists.sourceforge.net</a><br><a href=3D"https://lists.sourcefo=
> rge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/li=
> stinfo/nagios-users</a><br>::: Please include Nagios version, plugin versio=
> n (-v) and OS when reporting any issue.
> <br>::: Messages without supporting info will risk being sent to /dev/null<=
> br></blockquote></div><br><br clear=3D"all"><br>-- <br>Le bon sens est la c=
> hose du monde la mieux partag=E9e.
>
> ------=_Part_6625_25257703.1140104785346--
>
>
> -------------------------------------------------------
> 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
>
--
- 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
More information about the Users
mailing list