[Nagiosplug-devel] Regression in check_snmp

Thomas Guyot-Sionnest dermoth at aei.ca
Fri Jul 31 09:19:47 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 31/07/09 02:59 AM, Ton Voon wrote:
> Good catch. I'm on holiday for a week so I can't help with it for a few
> days. That is the only issue I'm aware of at the moment

Turns out the error I showed was my fault - typo in the hostname - but
I'm still wondering how the single quotes turns out to be. Maybe they're
being ignored...

The problem is actually with multi-line strings. I just committed a new
test script using a custom SNMP agent and now I'm able to reproduce the
problem (segfault).

The simplest fix is easy, just skip any additional lines (i.e. if
response if NULL), though if the string contains a delimiter it will
likely blow chunks again.

I'll try to figure out what the 1.4.13 version did regarding these
strings and will reproduce the behavior as much as I can.

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKcpsT6dZ+Kt5BchYRArvXAKDJBqH4U/ffxE0XHFYem+NI7bLvWwCggMEK
CDIy+tnXtjS9VhcF5TedqWU=
=/fg5
-----END PGP SIGNATURE-----




More information about the Devel mailing list