check_snmp_printer issue with 1 printer

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Kukkurloom
Posts: 11
Joined: Thu Jul 04, 2019 2:00 am

check_snmp_printer issue with 1 printer

Post 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.
playzoneuk
Posts: 4
Joined: Thu Nov 28, 2019 9:27 am

Re: check_snmp_printer issue with 1 printer

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_snmp_printer issue with 1 printer

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked