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

CRITICAL: Bypass Tray (0.00in x 0.00in) is at 0% paper remaining. #30

Closed gitbro23 closed 1 year ago

gitbro23 commented 1 year ago

Hello Tylan, I have implemented your SNMP printer check in my icinga2 environment. After some set up trouble, I got it finally work. But I have the issue, that my Konica Minolta and my Toshiba printers are showing a critical warning for the Bypass Tray.

But this Tray is the manual feeding one and its mostly empty. So, this state is not critical when its empty if you understand me.

How can I exclude or manually set this tray to always OK?

Thank you very much in advance.

Best Regards Basti 06-03-2023_16-08-55

seraphyn commented 1 year ago

Have a look at the help and set different tray messages. Means, set a check for every tray and disable warning on the Bypass tray

gitbro23 commented 1 year ago

Thanks for the quick answer. Is it possible to give me an example? I'm very new in that topic. Sorry for the inconvenience.

seraphyn commented 1 year ago

check_snmp_printer --help gives you an oversight over the parameters you need to us. Therefore, you need to set up distinguished checks for every tray.

Tylan commented 1 year ago

Hi -

You append the --nofeeder option to your command like so:

check_snmp_printer -H \<HOST> -v 2 -C \<COMMUNITY> --trays --nofeeder

gitbro23 commented 1 year ago

Thank you for your reply! In the case of the HP Printer I was able to resolve the issue. Because the manual feeder is tray 1. But in the case of the Konica Minolte and the Toshiba copier the --nofeeder Option doesn't resolve the critical warning. Here is my output: 07-03-2023_12-46-19

gitbro23 commented 1 year ago

As you can see. It removes only the tray 1 07-03-2023_12-49-51

Tylan commented 1 year ago

Glad it worked out for the HP printer. I am also noticing a similar issue with my Xerox copiers. Let me poke around in the code.

image

Tylan commented 1 year ago

I found what the ultimate problem is. I need to rewrite the function a bit. Give me a bit to work on that.

gitbro23 commented 1 year ago

Great! Thank you for your help!

Tylan commented 1 year ago

Please grab this devel version and let me know if that resolves your issue:

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

gitbro23 commented 1 year ago

The issue is resolved now! See my screenshot 07-03-2023_15-08-35

Tylan commented 1 year ago

Perfect! Closing out issue then :)

gitbro23 commented 1 year ago

Issue resolved by releasing a new version of the plugin!