Page 1 of 1

check_snmp_printer issue with 1 printer

Posted: Thu Nov 28, 2019 11:07 am
by Kukkurloom
Hello fellow Nagios users!

I have been cracking my head with check_snmp_printer plugin. Fortunately I was able to get all the printers show correct information except one. Problematic printer will give me an error like that: "Plugin check_snmp_printer failure - snmpwalk command error. "

If I run check_snmp_printer on plugins folder:

Code: Select all

[root@nagios libexec]# ./check_snmp_printer -H [IP] -C public -t "STATUS"
Timeout: No Response from [IP]
Plugin check_snmp_printer failure - snmpwalk command error.
Responds to ping very well:

Code: Select all

[root@nagios libexec]# ping [IP]
PING [IP] ([IP]) 56(84) bytes of data.
64 bytes from [IP]: icmp_seq=1 ttl=255 time=0.197 ms
64 bytes from [IP]: icmp_seq=2 ttl=255 time=0.177 ms
When I run SNMPwalk (it is a long reply so I will just paste 4 first lines):

Code: Select all

SNMPv2-MIB::sysDescr.0 = STRING: HP ETHERNET MULTI-ENVIRONMENT,SN:CNGTKDW182,FN:N182ZGZ,SVCID:28082,PID:HP Color LaserJet CP5225n
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.11.2.3.9.1
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (10935381) 1 day, 6:22:33.81
On printer admin page I can see:

SNMP
Status: Read-Write Access Enabled
SNMP Version: v1

Any help would be more than appreciated, tried to Google the issue, but there are not many answers regarding to that plugin unfortunately.

Thank you in advance and all the best,
Kukkurloom.

Re: check_snmp_printer issue with 1 printer

Posted: Sat Nov 30, 2019 3:02 am
by playzoneuk
I've had issues with printers in the past which have been resolved either by switching between the different versions of SNMP (1|2c|3) or upgrading the firmware on the printer itself. Check to see what version you are using with your script and the version the printer is capable of using.

I utilise the Nagios plugin check_printer available from:
https://exchange.nagios.org/directory/P ... es/details. The help is in German but you can get the general gist of the different functions.

Re: check_snmp_printer issue with 1 printer

Posted: Mon Dec 02, 2019 2:45 pm
by scottwilkerson
Can you run from the command line specifying version 1 as the plugin defaults to 2c and you show that your printer is using version 1?

Code: Select all

./check_snmp_printer -H [IP] -C public -t "STATUS" -v 1