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

SNMPv1 doesn't support bulkwalk #35

Open OsamaDengler opened 1 year ago

OsamaDengler commented 1 year ago

We have some HP printers that don't support SNMPv2 but only SNMPv1.

The check script fails with perl-snmp returning error "CRITICAL - Cannot send V2 PDU on V1 session"

This is because SNMPv1 doesn't support bulkwalks so these calls fail. Since there's the -v command line flag, wouldn't it be possible to fall back to SNMP get() and next() calls for SNMPv1 devices?

vmandelswv commented 1 month ago

Have the same problem!