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

Messages and Trays #18

Closed gla-bk closed 1 year ago

gla-bk commented 3 years ago

Hi,

I've tried to implement check_snmp_printer in my new Icinga Project.

I have two issues though,

  1. The --messages Service returns a "Cannot deterime messages, but status returend OK/Warning"

image

  1. I've set the trays as -w 0 -c 0 so it doesn't show as a warning/critical when there is no paper. But still gives a warning.

image image

I hope you can help me.

Kind regards, Gabriel

Tylan commented 3 years ago

For the messages one, can you tell me which printer you are doing the check against?

Can you also provide snmpwalks for the following OIDs:

snmpwalk -On -c public -v 1 \<HOST IP> .1.3.6.1.2.1.43.18.1.1.8 snmpwalk -On -c public -v 1 \<HOST IP> .1.3.6.1.2.1.43.16 snmpwalk -On -c public -v 1 \<HOST IP> .1.3.6.1.2.1.25.3.2.1.5

For the Tray one, could you provide an snmpwalk on the following OID?

snmpwalk -On -c public -v 1 \<HOST IP> .1.3.6.1.2.1.43.8.2.1

gla-bk commented 3 years ago

Hi, Thank you for your reply.

Im doing it on 5 Ricoh Printers. Brother seems to work.

image image

Can you also provide snmpwalks for the following OIDs:

snmpwalk -On -c public -v 1 .1.3.6.1.2.1.43.18.1.1.8 snmpwalk -On -c public -v 1 .1.3.6.1.2.1.43.16 snmpwalk -On -c public -v 1 .1.3.6.1.2.1.25.3.2.1.5

root@VM:/home/icingauser# snmpwalk -On -c public -v 1 <HOST-IP> .1.3.6.1.2.1.43.18.1.1.8
.1.3.6.1.2.1.43.18.1.1.8.1.1 = STRING: "Energiesparmodus {10033}"
root@VM:/home/icingauser# snmpwalk -On -c public -v 1 <HOST-IP> .1.3.6.1.2.1.43.16
.1.3.6.1.2.1.43.16.5.1.2.1.1 = STRING: "Energiesparmodus"
root@VM:/home/icingauser# snmpwalk -On -c public -v 1 <HOST-IP> .1.3.6.1.2.1.25.3.2.1.5
.1.3.6.1.2.1.25.3.2.1.5.1 = INTEGER: 2
.1.3.6.1.2.1.25.3.2.1.5.2 = INTEGER: 2
.1.3.6.1.2.1.25.3.2.1.5.3 = INTEGER: 2
.1.3.6.1.2.1.25.3.2.1.5.5 = INTEGER: 2

Trays one seems to have fixed itself.

image

Kind regards, Gabriel

Tylan commented 3 years ago

Glad to hear about the tray one fixing itself. Can you apply this patch and let me know if this fixes your messages issue?

patch check_snmp_printer < check_snmp_printer_1.2.3-patch.txt

check_snmp_printer_1.2.3-patch.txt

gla-bk commented 3 years ago

Hi, It works :)

image

Thank you for your time!

gla-bk commented 3 years ago

Hi,

Yeah.. the "trays" one didn't fix itself. Sometimes it shows correctly (ignoring theres no paper), yet sometimes its screaming red even tho theres paper in there or there isn't.

Can you check the code for me?

Tylan commented 3 years ago

apologies for long delay. Let me look into this.

Tylan commented 1 year ago

Hi sincere apologies in very long delay. This should now be resolved in the upcoming release. You can grab it from the devel branch here:

https://github.com/Tylan/check_snmp_printer/blob/devel/check_snmp_printer