[Pkg-nagios-devel] Bug#609011: Bug#609011: nagios-plugins-standard: check_snmp fails to parse SNMP string properly

Jan Wagner waja at cyconet.org
Wed Jan 5 14:14:29 UTC 2011


Hi Thomas,

thanks for your bugreport.

On Wednesday 05 January 2011 13:53:23 Thomas wrote:
> Since version 1.4.15-3, check_snmp fails to recognize/parse strings
> properply that are transmitted via SNMP.
> 
> My scenario: In the SNMP server, I defined exec commands whose return
> values are checked via check_snmp. Example (omitting SNMPv3 authentication
> arguments):
> 
>  /usr/lib/nagios/plugins/check_snmp -H HOST -o
>  .1.3.6.1.4.1.2021.8.1.101.11 -c 0 -P 3 -v -r 'FILE_AGE OK'
> 
> /usr/bin/snmpget -t 1 -r 5 -m '' -v 3 [authpriv] HOST:161
>  .1.3.6.1.4.1.2021.8.1.101.11
>  iso.3.6.1.4.1.2021.8.1.101.11 = STRING: "FILE_AGE OK:
>  /mnt/backuppc/mount/kontrast-main/latest is 67478 seconds old and 1024
> bytes" SNMP CRITICAL - *67478* | iso.3.6.1.4.1.2021.8.1.101.11=67478
> 
> Behind iso.3.6.1.4.1.2021.8.1.101.11, there is the check_file_age plugin.
> 
> check_snmp from nagios-plugins-* 1.4.15-2 does it correctly:
> 
> iso.3.6.1.4.1.2021.8.1.101.11 = STRING: "FILE_AGE OK:
> /mnt/backuppc/mount/kontrast-main/latest is 67666 seconds old and 1024
> bytes" SNMP OK - "FILE_AGE OK: /mnt/backuppc/mount/kontrast-main/latest is
> 67666 seconds old and 1024 bytes" |

Could you please try to remove the "-c 0" from your check command?

Thanks, Jan.
-- 
Never write mail to <waja at spamfalle.info>, you have been warned!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d-- s+: a C+++ UL++++ P+ L+++ E--- W+++ N+++ o++ K++ w--- O M V- PS PE Y++
PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h---- r+++ y++++ 
------END GEEK CODE BLOCK------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20110105/16895377/attachment.pgp>


More information about the Pkg-nagios-devel mailing list