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

Tray Status - include/exclude individual trays + Tray status on Lexmark UNKNOWN #14

Closed Optimaximal closed 3 years ago

Optimaximal commented 3 years ago

As per the title - can the tray status support be extended to include/exclude specific trays via parameter?

As it stands, it includes all trays by design, but this also counts the manual feeds, which are 0% unless being used, meaning when used with monitoring software (i.e. Icinga or Nagios) they always throw critical warnings.

I can disable the warnings/criticals in optional args, but this won't warn me, for example, when trays that need to be monitored are empty.

Tylan commented 3 years ago

This is already implemented in the latest release with the --nofeeder switch :) Let me know if it doesn't work as expected.

Optimaximal commented 3 years ago

Ok, I've just tried that. Not sure how you're excluding them, but Lexmark seem to report trays differently. 😄

'/usr/lib/nagios/plugins/check_snmp_printer' '-H' '192.168.0.220' '--trays' '-C' 'spice' '--nofeeder'

CRITICAL: Manual Envelope (4.33in x 8.66in) is at 0% paper remaining. CRITICAL: Manual Paper (8.27in x 11.69in) is at 0% paper remaining.

MIBs in the other issue thread - let me know if you want a specific snmpwalk posted here.

Optimaximal commented 3 years ago

Funnily, a different model of Lexmark we have - an XC2132 - reports the Envelope as fine but the Paper as 0%.

CRITICAL: Manual Paper (8.27in x 11.69in) is at 0% paper remaining. OK: Manual Envelope (4.33in x 8.66in)

Tylan commented 3 years ago

Oh yeah definitely not looking for that verbiage :P I'll check the other thread and add it to the next release :)

Optimaximal commented 3 years ago

FYI, another issue i've just encountered is our Lexmark's report UNKNOWN when the tray is out rather than MISSING which is shown in the Web UI for the printer. Again, could be different wording.

Tylan commented 3 years ago

When you say the tray is out do you mean the tray is physically removed from the printer or just out of paper?

Optimaximal commented 3 years ago

Closed because this is being dealt with in https://github.com/Tylan/check_snmp_printer/issues/11