check_snmp_printer and waste toners

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.
Sander5
Posts: 37
Joined: Wed Sep 04, 2013 5:15 am

check_snmp_printer and waste toners

Post by Sander5 »

The check_snmp_printer plugin works very well, but there is one problem: The waste toner.

I use a Canon iR-ADV C5235 printer. On Nagios is it always OK or warning. but the toner is either full or still empty.


I don't know what to do, to show the waste levels....i looked everywhere but i just cannot find the answer.

Code: Select all

./check_snmp_printer -H 10.10.2.10 -C public -x "CONSUM waste"
output:

Code: Select all

Waste Toner is at WARNING level! | Waste Toner=-2;20;5;
impossible! :) i just replaced the full waste toner, it has a nearly empy waste toner now. Don't think the script understand -2.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_snmp_printer and waste toners

Post by hsmith »

Where did you get the plugin?

Is it this one? https://exchange.nagios.org/directory/P ... ck/details
Former Nagios Employee.
me.
Sander5
Posts: 37
Joined: Wed Sep 04, 2013 5:15 am

Re: check_snmp_printer and waste toners

Post by Sander5 »

Yes thats the plugin (i am sorry that i forgot to give the address of the plugin)
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: check_snmp_printer and waste toners

Post by lmiltchev »

What is the output of the following commands?

Code: Select all

./check_snmp_printer -H 10.10.2.10 -C public -x "CONSUM TEST"
./check_snmp_printer -H 10.10.2.10 -C public -x "CONSUM ALL"
I looked at the plugin and I see that "-2" indicates that the value is unknown.
"-2") # The value (-2) means unknown
You could run snmpwalk against the device to see what info is actually available:

Code: Select all

snmpwalk -v 1 -c public 10.10.2.10
or

Code: Select all

snmpwalk -v 2c -c public 10.10.2.10
Be sure to check out our Knowledgebase for helpful articles and solutions!
Sander5
Posts: 37
Joined: Wed Sep 04, 2013 5:15 am

Re: check_snmp_printer and waste toners

Post by Sander5 »

Output consum test:

Code: Select all

Consumables you may monitor:
"Canon C-EXV 29 Black Toner"
"Canon C-EXV 29 Cyan Toner"
"Canon C-EXV 29 Magenta Toner"
"Canon C-EXV 29 Yellow Toner"
"Waste Toner"
Output consum all(i made it a bit more readable):

Code: Select all

Canon C-EXV 29 Black Toner is at 27% - OK! 
Canon C-EXV 29 Cyan Toner is at 31% - OK! 
Canon C-EXV 29 Magenta Toner is at 5% - CRITICAL! 
Canon C-EXV 29 Yellow Toner is at 32% - OK! 
Waste Toner is at WARNING level! |
 Canon C-EXV 29 Black Toner=27;20;5; 
Canon C-EXV 29 Cyan Toner=31;20;5; 
Canon C-EXV 29 Magenta Toner=5;20;5; 
Canon C-EXV 29 Yellow Toner=32;20;5; 
Waste Toner=-2;20;5;
output of snmpwalk, the output is very long i think this is the one (is it ok if i post the whole output?):

Code: Select all

iso.3.6.1.2.1.43.11.1.1.9.1.5 = INTEGER: -2
I dont know what this means but i used a mibbrowser and i got this description

Code: Select all

Name/OID: prtMarkerSuppliesMaxCapacity.1.5; Value (Integer): -2 (this is iso.3.6.1.2.1.43.11.1.1.9.1.5  from above trough mibbrowser)

 The current level if this supply is a container;the
remaining space if this supply is a receptacle. If this
supply container/receptacle can reliably sense this
value, the value is sensed by the printer and is
read-only;otherwise, the value may be written (by a
Remote Contol Panel or a Management Application). The
value (-1) means other and specifically indicates that
the sub-unit places no restrictions on this parameter.
The value (-2) means unknown.  A value of (-3) means that the
printer knows that there is some supply/remaining space,
respectively.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: check_snmp_printer and waste toners

Post by tgriep »

You may need to contact the manufacturer about that OID returning -2.
Does the printer show the status of the waste level on the printer itself?
Is there a firmware upgrade for the copier that you can install?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Sander5
Posts: 37
Joined: Wed Sep 04, 2013 5:15 am

Re: check_snmp_printer and waste toners

Post by Sander5 »

Maybe i should try to contact Canon.

It only shows OK, trough the website of the printer. i am not sure but it shows an empty box followed by OK on the printer itself.
But it is a bit vague, at some point it shows "the waste toner is almost full, prepare waste toner". "followed by the waste toner is full, replacement is needed" that is everything i know about the waste toner, and the -2.

I dont know yet, i need the password to enter the admin settings and i dont know this. i have to ask the administrator. (he will probaly say no if i want to upgrade the firmware if it is outdated)


Should i also contact the creater of the plugin?
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: check_snmp_printer and waste toners

Post by tgriep »

Contacting Cannon would probably be the best bet because doing a snmpwalk has the same result.
Maybe power cycling the copier might help.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Sander5
Posts: 37
Joined: Wed Sep 04, 2013 5:15 am

Re: check_snmp_printer and waste toners

Post by Sander5 »

I am going to try this. (but i dont think they can help..unless i get a business contract or something like that)

I am also going to try, to create a perl plugin. but it is very difficult.


But Thanks for the help so far
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_snmp_printer and waste toners

Post by hsmith »

If Canon has anything helpful information, let us know. Thanks!
Former Nagios Employee.
me.
Locked