Page 1 of 2
check_snmp_printer and waste toners
Posted: Tue Oct 27, 2015 10:53 am
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.
Re: check_snmp_printer and waste toners
Posted: Tue Oct 27, 2015 2:33 pm
by hsmith
Re: check_snmp_printer and waste toners
Posted: Thu Oct 29, 2015 2:30 am
by Sander5
Yes thats the plugin (i am sorry that i forgot to give the address of the plugin)
Re: check_snmp_printer and waste toners
Posted: Thu Oct 29, 2015 2:11 pm
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
Re: check_snmp_printer and waste toners
Posted: Fri Oct 30, 2015 3:39 am
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.
Re: check_snmp_printer and waste toners
Posted: Fri Oct 30, 2015 12:40 pm
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?
Re: check_snmp_printer and waste toners
Posted: Mon Nov 02, 2015 4:29 am
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?
Re: check_snmp_printer and waste toners
Posted: Mon Nov 02, 2015 12:18 pm
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.
Re: check_snmp_printer and waste toners
Posted: Fri Nov 06, 2015 10:39 am
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
Re: check_snmp_printer and waste toners
Posted: Fri Nov 06, 2015 11:11 am
by hsmith
If Canon has anything helpful information, let us know. Thanks!