Hello -- I just came across the solution. It turns out there is already a check_snmp_printer plugin that will do exactly what I need.
Thanks anyway to everyone for the help. -----Original Message----- From: Carl R. Friend [mailto:crfri...@rcn.com] Sent: Tuesday, February 05, 2013 4:55 PM To: 'icinga-users@lists.sourceforge.net' Subject: Re: [icinga-users] check_snmp syntax question On Tue, 5 Feb 2013, Kaplan, Andrew H. wrote: > What I am trying to do now is get the status of the printer > with the goal of generating output that would indicate if toner > is low, or if other components are in need of service. What > would be the correct syntax to use to accomplish this? To ascertain this, you will need to find a copy of the MIB (Management Information Base) file from the vendor in question. In that file, which if you're lucky will be in human-readable ASN.1 (Abstract Syntax Notation One), you will find a list of the OIDs (Object IDs) that the device supports. With those, you can query the printer directly using the fully-qualified numeric specification for the OID in question (this is faster than querying by textual OID). To find the MIB, I would start with the printer vendor or the OEM supplier if you happen to know that. Another avenue would be to use the NET-SNMP tools to "walk" the SNMP OID tree in the printer and follow the tree as it descends downwards (to the right) after the "enterprises" branch (i.e. if a walk yields something like "enterprises.####.$$$$.%%%%" Google first for "enterprises ####", swapping #### for actual number of course, and continue). +------------------------------------------------+---------------------+ | Carl Richard Friend (UNIX Sysadmin) | West Boylston | | Minicomputer Collector / Enthusiast | Massachusetts, USA | | mailto:crfri...@rcn.com +---------------------+ | http://users.rcn.com/crfriend/museum | ICBM: 42:22N 71:47W | +------------------------------------------------+---------------------+ ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ icinga-users mailing list icinga-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/icinga-users The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ icinga-users mailing list icinga-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/icinga-users