check_snmp_printer consummable Check

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

check_snmp_printer consummable Check

Postby Auel » Wed Jul 01, 2020 6:15 am

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 -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

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

please help.
Posts: 6
Joined: Wed Feb 19, 2020 7:37 am

Re: check_snmp_printer consummable Check

Postby scottwilkerson » Mon Jul 06, 2020 3:17 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
DevOps Engineer
Posts: 18640
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Return to Community Support

Who is online

Users browsing this forum: Google [Bot] and 39 guests