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

timeout after 15 seconds #1

Closed Terminator81 closed 5 years ago

Terminator81 commented 5 years ago

Hi,

when i check a printer with standard settings i willl get the message "Critical - Timout after 15 seconds"

snmp v1 and public is activated at the printer

Tylan commented 5 years ago

What happens when you snmpwalk the device from Linux command line? You may need to install snmpwalk via:

yum install net-snmp-utils

snmpwalk -c public -v 1 [host]

You can change the plugin's timeout setting with the -t switch in the event you need more time for a response.

Terminator81 commented 5 years ago

snmpwalk -c public -v 1 130.50.100.100 SNMPv2-MIB::sysDescr.0 = STRING: Canon iR-ADV C5250 /P SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.1602.4.7 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (617173985) 71 days, 10:22:19.85 SNMPv2-MIB::sysContact.0 = STRING: SNMPv2-MIB::sysName.0 = STRING: iR-ADV C5250 SNMPv2-MIB::sysLocation.0 = STRING: SNMPv2-MIB::sysServices.0 = INTEGER: 72 IF-MIB::ifNumber.0 = INTEGER: 1 IF-MIB::ifIndex.1 = INTEGER: 1 IF-MIB::ifDescr.1 = STRING: eth0 IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6) IF-MIB::ifMtu.1 = INTEGER: 1500 IF-MIB::ifSpeed.1 = Gauge32: 1000000000 ....

/usr/lib64/nagios/plugins/check_snmp_printer -H 130.50.100.100 --model -t 60 CRITICAL - Timeout after 60 seconds

idea?

Tylan commented 5 years ago

Fixed default SNMP version. It was set to 2 by accident. Please download and replace your check_snmp_printer. Should be resolved now.