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
check_snmp_printer consummable Check
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_snmp_printer consummable Check
You are missing the community string in your check_command
Change this:
to this:
Change this:
Code: Select all
check_command check_printers!black!90!95
Code: Select all
check_command check_printers!public!black!90!95