check_snmp on Sol 10 mangling data

Ton Voon ton.voon at altinity.com
Thu Oct 19 21:14:58 CEST 2006


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: "))



http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20061019/09a10b23/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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