Kyle,

Thanks for the report. Applied in CVS.

For future reference, please raise a tracker item in SF so it doesn't get lost in mailing lists. Thanks.

Ton

On 6 Mar 2006, at 18:58, Kyle Tucker wrote:

After playing with gdb all day, I found the culprit. The array of chars
named "type" was getting initialized with the crud on Solaris 10. On 8
it was zeroed out at runtime. Using bzero on it before it's used fixed 
it up.

*** check_snmp.c.orig   Mon Mar  6 08:05:26 2006
--- check_snmp.c        Mon Mar  6 13:45:53 2006
***************
*** 242,247 ****
--- 242,249 ----
                }

                /* We strip out the datatype indicator for PHBs */
+               /* Clean up type array */
+               bzero(type, sizeof(type));
                if (strstr (response, "Gauge: "))
                        show = strstr (response, "Gauge: ") + 7;
                else if (strstr (response, "Gauge32: "))



T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to