DO NOT DELETE THIS INFORMATION.
Please read this information carefully.
Please read this information carefully.
GitHub issues is for feature requests or bugs, please do not post issues asking for help or how to do X, Y or Z.
You can use our irc channel ##librenms on freenode to ask questions or our community site.
Please confirm each of the sections below by putting an x in the box like [x].
[librenms@nms ~]$ sudo ./validate.php
Component | Version
--------- | -------
LibreNMS | 46003a39b683b48e12e220d7466a0251b5b34f16
DB Schema | 157
PHP | 7.0.13
MySQL | 5.5.52-MariaDB
RRDTool | 1.4.8
SNMP | NET-SNMP 5.7.2
[OK] Database connection successful
Some of my Canon printers models are not recognized correctly- logo, toner missing etc. I believe it's most likely only an detection issue since it worked before, after I modified canonprinter.inc.php.
I reverted that change to get daily updates again and now it seems detection is done somewhere else.
It would be very nice if you could also include these printer models in future builds. Please let me know if you need further information.
Definitions are now in includes/definitions/ as per our docs. Please contribute your changes back.
http://docs.librenms.org/Developing/Support-New-OS/ might be helpful :)
Thanks for the quick response!
I now realized while making the changes, that my Canon D1180/MF6680 printer is recognized, but toner levels seem not to work. I'm not sure if I found the correct toner definitions and how to add a new one if necessary.
The only thing I modified until now is this part in canonprinter.yaml :
- Canon MF
- Canon iR
- Canon LBP
- Canon D
Also, would it be better to use a regex for this kind of description? The D1180 prefix seems to be model number for Canon USA while MF6680 is likely the european model description. Although, in the snmp data it's probably always the same string.
Here's the SNMP output:
Adding detection in is easy but this printer doesn't respond with the normal Printer-MIB info hence it's not being detected. What toner values are you currently seeing so we can try and work it out from the snmpwalk output
I don't see any toner value on the overview page. Also the toner page is missing.
This is the only place toner does show up but the graphs and the values are not working.
newdevice: Added further support for Canon printers #5637
I know that - that's why I asked what the current toner level is (not in LibreNMS)
Oh sorry, I didn't get that. I'm working on it now, but oddly enough it seems that neither the webinterface nor the printer driver displays toner levels and I'm not on location right now...
But I'll get back to you as soon as possible.
I've read now the whole manual and tried several different drivers. Unfortunately it brought me nothing closer to finding the toner level. The manual suggests though, that the toner level is reported only binary as error (if empty) on the device itself.
So I don't know how or even if the value is represented in the snmp data. Though, since the cartridge is listed correctly I'd assume there would be also some toner indication even if it's only binary.
I'll keep researching this as my time allows.
So I got lucky and found some Canon MIB documentation. The only relevant OIDs I found are .220.127.116.11.18.104.22.168.1.1.9 (http://www.oid-info.com/get/22.214.171.124.126.96.36.199.1.1.9) and
with error code 1104 (INTEGER) indicating "No remaining K toner (low)"
As the second OID is not present in the snmpwalk output I conclude that there's no way to get the toner level on this printer - at least not without knowing the proprietary OIDs.
Even then it seems that this specific printer only supports a low toner alert and no kind of level indication.
Regarding the other printer(s) of the LBP series - could you please add the description (see above) to the discovery file, then I don't have to make a PR for one line. (I'm a git noob ;)
The printers worked fine in the past with the existings mibs - if further tests are needed, I can do them on monday.
Thank you for all your efforts!
newdevice: Added further support for Canon printers #5637 (#5650)
188.8.131.52.184.108.40.206.1.1.9 is already used by us, your device returns -2 which is unknown.
I'll actually submit a pull request to skip toner discovery if we see that.
Ignore toners with values -2 which is unknown #5637
I have tested now the detection of my LBP series printers (LBP6650 and LBP6670) and it is working as expected. Toner levels are shown, but after some further tests and reading the canon MIB documentation it seems that all these printers only support 0%/100% level indication. (OID .220.127.116.11.9)
The webinterfaces just show "OK" if toner is not empty. Furthermore, all Canon MF series printers seem to use either that or a three-level value as described in the MIB docs of the MF 4700/4800 series:
I think though that it's fine to show the percentage value as is, you just have to be aware that there's no one percent-wise resolution of the toner level.
One older model I manage, a Canon iR 1022i doesn't report toner level at all per SNMP (verified with MIB docs). I noticed that the toner graph in the top right corner shows up even then. Is this a bug or is this supposed to be like that?
Another possible bug I encountered while testing: The "Recent Events" panel is displayed in a separate 12-column row below all other panels as soon as the "Toner" panel exists. I assume it should show up in the right column beneath the other panels.
I've submitted another PR to ignore toners which report back -2, that might also resolve showing a broken graph. Just wait for it to be committed and see or test the patch linked to above #5654
fix: Ignore toners with values -2 which is unknown #5637 (#5654)