Check printer status via SNMP
So we're asked to monitor several "critical" printers. Instead of accessing the printers' administrative console using `
To get the printer console's display, for example, one just issues:
Fortunately, most of the steps (getting the OID from the printer MIB, rehashing the output into something usable by Nagios) are already done for use by a nifty little shell script,
curl` (a kludge, yes), we opted for SNMP -- easier, but unfortunately less secure for the printers. SNMP OIDs for the printer are readily available so this looked easy enough.To get the printer console's display, for example, one just issues:
/usr/bin/snmpwalk -v1 -On -c $community_string $printer_address \
1.3.6.1.2.1.43.16.5.1.2 | awk -F: '{print $NF}' \
| sed 's/\"//g;/^$/d;s/^\s//'Fortunately, most of the steps (getting the OID from the printer MIB, rehashing the output into something usable by Nagios) are already done for use by a nifty little shell script,
check_snmp_printer.sh.
This comment has been removed by the author.
ReplyDeleteI never understand what are those weird characters that my printer prints every now and then. What is SNMP?
ReplyDeleteprinting services
3D Printing Technology has made it possible for designers to create 3D models and images pre-production products without the need to incur expensive outsourcing costs.
ReplyDeletetoner manufacturer
Really great post, Thank you for sharing This knowledge.Excellently written article, if only all bloggers offered the same level of content as you, the internet would be a much better place. Please keep it up!
ReplyDeleteengine oil additives