[Nagiosplug-devel] error in check_snmp (function spopen)
Andreas Ericsson
ae at op5.se
Thu May 29 17:51:36 CEST 2008
Uwe Knop wrote:
> Hallo,
>
>
> i use externel commands with 'extend' function with net-snmp.
>
> Here is an sample service check:
>
> check_snmp!public!'NET-SNMP-EXTEND-MIB::nsExtendOutputFull.\"testname\"'
>
> Access with numeric OID's as far as i know, not possible.
>
> My patch is a little bit quick and dirty.
>
It is indeed. It's also wrong, but so is the original code. It should
instead check for "\"" only as the first character of an argument, or
inside an argument not starting with ', since that's the only place
where it matters. On that note, I can't recall exactly why I decided
(if it indeed was me) not to support double-quotes in commands.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
More information about the Devel
mailing list