Displaying a different status info for a service check

Ryan Suarez ryan.suarez at sheridanc.on.ca
Fri Jan 14 16:50:18 CET 2005


Hi Gerd,

Thanks for the reply.

check_snmp -H $HOSTADDRESS$ -o HOST-RESOURCES-MIB::hrPrinterStatus.1 -r 
"(idle|printing)"

This checks if the printer is ready for printing.  The printer will 
return 'idle', 'printing', or 'other'.  But ,in the status info on the 
web interface, I would like to display the results of this instead:

snmpwalk -v1 -c public -Ov $host mib-2.43.16.5.1.2.1

This shows whats on on the printers display. 

So for example, if the service check goes to critical with 'other', the 
status info will show 'Toner Low' or 'Paper Jam', 'Hardware Error', etc...

thanks,
Ryan

Gerd Mueller wrote:

>Hi Ryan,
>
>could you please mail us the definition of your check command. I believe
>'idle','printing' or 'other' returns is getting check_snmp directly from
>your printer...
>
>Thank you
>
>Gerd
>
>Am Fr, den 14.01.2005 schrieb Ryan Suarez um 15:22:
>  
>
>>Greetings list,
>>
>>We are using nagios 2.0b1 on debian linux.
>>
>>I use check_snmp to check the status of a printer.  It returns 'idle', 
>>'printing', or 'other'.  These results are displayed in the 'status 
>>information' column.
>>
>>Can we substitute another message in 'status information'  for this service?
>>
>>The service goes to critical if the result is 'other'.  But that's not 
>>very useful information.  Instead, I would like to display the reason.
>>
>>regards,
>>Ryan
>>
>>
>>-------------------------------------------------------
>>The SF.Net email is sponsored by: Beat the post-holiday blues
>>Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
>>It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
>>_______________________________________________
>>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
>>    
>>
>Mit freundlichen Grüßen aus Nürnberg,
>
>Gerd Müller
>
>  
>



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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