check_snmp
Toto Capuccino
shoktai at gmail.com
Mon Jan 23 16:56:58 CET 2006
no more luck
linuxserver:/usr/local/nagios/etc# ../libexec/check_snmp -H 10.2.20.20 -C
public -o iso.3.6.1.2.1.43.16.5.1.2.1.1
SNMP OK - "Ready - Select Features to scan your job." | Printer-MIB::
prtConsoleDisplayBufferText.1.1="Ready - Select Features to scan your
job.";;;;
linuxserver:/usr/local/nagios/etc# ../libexec/check_snmp -H 10.2.20.20 -C
public -o iso.3.6.1.2.1.43.16.5.1.2.1.1 -s \"Ready\ -\ Select\ Features\ to
\ scan\ your\ job.\"
SNMP CRITICAL - *"Ready - Select Features to scan your job."* |
Printer-MIB::prtConsoleDisplayBufferText.1.1="Ready - Select Features to
scan your job.";;;;
2006/1/23, Michael Schwartzkopff <misch at multinet.de>:
>
> Am Montag, 23. Januar 2006 15:25 schrieb Toto Capuccino:
> > Hi all,
> >
> > I run a check_snmp on an OID that displays the status of a printer.
> > snmpwalk gives :
> > iso.3.6.1.2.1.43.16.5.1.2.1.1 = STRING: "Ready - Select Features to scan
> > your job."
> > when i run a check_snmp -H 10.2.20.20 -C public -o
> > iso.3.6.1.2.1.43.16.5.1.2.1.1 -s "Ready - Select Features to scan your
> > job."
> > i get always a warning.
> >
> > What i'd like is to have a warning when something's different from
> string
> > "Ready - Select Features to scan your job."
> >
> > Thanks.
>
> hi,
>
> try ... --string\"Ready\ -\ Select\ Features\ to \ scan\ your\ job.\"
> or escape "\ " and \" otherwise.
>
> --
> Dr. Michael Schwartzkopff
> MultiNET Services GmbH
> Bretonischer Ring 7
> 85630 Grasbrunn
>
> Tel: (+49 89) 456 911 - 0
> Fax: (+49 89) 456 911 - 21
> mob: (+49 174) 343 28 75
>
> PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
> Skype: misch42
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060123/132b9a02/attachment.html>
More information about the Users
mailing list