check_snmp quoting issue

Kyle Tucker kylet at panix.com
Thu Feb 16 20:58:32 CET 2006


Okay,
	We found the issue in popen.c that was just
bailing if it found any double quote in the command
string. Commenting out this bit of code allowed the
quoted OIDs to work.

/* This is not a shell, so we don't handle "???" */
        if (strstr (cmdstring, "\""))
                return 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