check_snmp
Michael Schwartzkopff
misch at multinet.de
Mon Jan 23 16:07:35 CET 2006
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 --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060123/75539665/attachment.sig>
More information about the Users
mailing list