Page 1 of 1

check_snmp_printer consummable Check

Posted: Wed Jul 01, 2020 6:15 am
by Auel
Hello,
I try to see the status of the printer toner, by terminal it indicates the status but by definition of service I cannot see anything on the web.


Terminal Check:
./check_snmp_printer -H 192.168.0.29 -C public -t consummable -o black -w 85 -c 90
Utilisation of the black cartridge : 2% | cons_used=2;85;90;0


my command.cfg

define command{
command_name check_printers
command_line $USER1$/check_snmp_printer -H $HOSTADDRESS$ -C $ARG1$ -x $ARG2$ $ARG3$
}

my service definition:

define service{
use generic-service
host_name printer1
service_description consummable
check_command check_printers!black!90!95
normal_check_interval 10
retry_check_interval 1
}

result:
consummable UNKNOWN 07-01-2020 13:11:42 0d 0h 2m 27s 3/3 Unknown

please help.
Thank

Re: check_snmp_printer consummable Check

Posted: Mon Jul 06, 2020 3:17 pm
by scottwilkerson
You are missing the community string in your check_command

Change this:

Code: Select all

check_command check_printers!black!90!95
to this:

Code: Select all

check_command check_printers!public!black!90!95