Tylan / check_snmp_printer

Icinga Plugin for Checking SNMP Printer Status (Trays, Consumables and Pagecounts)
GNU General Public License v3.0
12 stars 4 forks source link

Ricoh support #8

Closed fma-bk closed 3 years ago

fma-bk commented 4 years ago

Hi, it would be great if you could add support for Ricoh Printers. I allready extracted some OID infos if that helps for RICOH MP C3004ex. If you need any help just ask :)

Kind Regards Florian ricohoid.txt

Tylan commented 4 years ago

Hi, thanks for this :) I do need a bit more OID information from you to finish this.
all of .1.3.6.1.2.1.43 would be preferable as there are a bit more OID's inside there I search through, one namely: .1.3.6.1.2.1.43.8.2.1.11.1 Also, for color / b&w specific pagecounts I need this oid .1.3.6.1.4.1.367

I currently don't report on 1.3.6.1.2.1.25.3.5.1.2 OID, but I will add this to the to-do list.

fma-bk commented 4 years ago

There you go :) oids.txt

But for 1.3.6.1.4.1.367.1.1 i dont think there is much information in it... i dont understand the oid "system" much so i dont know where to look for the page counts. Maybe the page counts are only in the RICOH specific oid/mibs?

Tylan commented 4 years ago

Thanks for the list :) As for 1.3.6.1.4.1.367 - I'm looking for from the base. It appears your scanning for 1.3.6.1.4.1.367.1.1 - I need it from just 367 on - it should (hopefully) be a comprehensive list of information.

fma-bk commented 4 years ago

Im querying the printer with this command: snmpwalk -Os -c public -v 1 192.168.0.154 and the output contains only those few 1.3.6.1.4.1.367 oids. Any suggestions?

fma-bk commented 3 years ago

Hi, i got this from our Service-Partner:

.1.3.6.1.4.1.367.3.2.1.2.19.5.1.9.1 | Property Counter: Machine Total .1.3.6.1.4.1.367.3.2.1.2.19.5.1.9.21 | Property Total Prints: Color .1.3.6.1.4.1.367.3.2.1.2.19.5.1.9.22 | Property Total Prints: Black & White

Hope that helps?

Tylan commented 3 years ago

Yes, perfect, thanks! Still working on the code, should have an update sometime this week.

fma-bk commented 3 years ago

Great! I'd love to test it next week.

Tylan commented 3 years ago

Hi! I've created a patch for you to test. Could you download this patch and apply it? The code might need some tweaks so let me know if something doesn't seem right. Thanks!

patch check_snmp_printer < check_snmp_printer-ricoh-patch.txt

check_snmp_printer-ricoh-patch.txt

fma-bk commented 3 years ago

Hi, mostly works as we wanted it, we really apriciate your help :)

Tylan commented 3 years ago

Great! Glad it mostly works :) Thanks for the feedback, let me look into your bullets and see what I can do :)

Tylan commented 3 years ago

Add this patch to the current patched check_snmp_printer and let me know how it works out. I was able to get all your bullet requests in :) Thanks for spotting the typo on the serial OID! 👍

use the --nofeeder option to stop checking the manual feeder tray and -c 0 -w 0 will now make the trays have an OK status plus still report on the remaining % left.

patch check_snmp_printer < check_snmp_printer-ricoh-patch2.txt

check_snmp_printer-ricoh-patch2.txt

Tylan commented 3 years ago

Almost forgot...you'll also need to patch the printers.conf file to accept the new --nofeeder option:

patch printers.conf < printers-conf-patch.txt

printers-conf-patch.txt

Tylan commented 3 years ago

just following up - did that patch address everything for you?

fma-bk commented 3 years ago

Yes, it behaves as we expected it. Thanks for your support. By the way, do you want to code support for Brother printers too, we have one here for testing?

Tylan commented 3 years ago

Great to hear! Sure, I'm all about adding support for printers :)

could you provide the snmpwalk for: 1.3.6.1.2.1.43 1.3.6.1.4.1.2435 (I believe this is the brother specific one so I can get the color and b&w page counts) 1.3.6.1.2.1.25.3.2.1.3.1

Tylan commented 3 years ago

Resolved. Will be in 1.2.0 release.