check_snmp_printer consummable Check

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Auel
Posts: 6
Joined: Wed Feb 19, 2020 7:37 am

check_snmp_printer consummable Check

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_snmp_printer consummable Check

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked