using check_printer to check Ricoh toner

Marcelo M. Garcia marcelo.maia.garcia at googlemail.com
Thu Aug 14 12:47:36 CEST 2008


Arno Lehmann wrote:
> Hi,
> 
> 13.08.2008 17:04, Marcelo M. Garcia wrote:
>> Hi.
>>
>> I'm trying to use the plugin "check_printer" to monitor the toners of 
>> our Ricoh Aficio 3245C.
>>
>> When I run from the command line it works fine:
>> mgarcia at newt /usr/lib/nagios/plugins $sudo ./check_printer 
>> 194.193.148.130 public toner 1
>> OK - Black Tonermgarcia at newt /usr/lib/nagios/plugins $
>>
>> I defined a command "check_ricoh_toner":
>> # 'chech_ricoh_toner command definition
>> define command {
>>          command_name    check_ricoh_toner
>>          command_line    $USER1$/check_printer $HOSTNAME$ public toner 
> 
> You probably want to replace HOSTNAME with HOSTADDRESS...
> 
> Arno
> 

Hi.

This solved the problem.

Thanks

Marcelo


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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