Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Cannot get check_hpjd working "Return code of 127 is out of bounds - plugin may be missing" on Nagios3

Posted on 2009-04-21
Medium Priority
Last Modified: 2013-11-15
I cannot get the plugin check_hpjd to work. I found the plugin was not installed (missing from /usr/local/nagios/libexec ) and realized the net-snmp binaries needed to be installed ("The check_hpjd plugin will only get compiled and installed if you have the net-snmp and net-snmp-utils packages installed on your system. Make sure the plugin exists in /usr/local/nagios/libexec before you continue. If it doesn't, install net-snmp and net-snmp-utils and recompile/reinstall the Nagios plugins." - http://nagios.sourceforge.net/docs/3_0/monitoring-printers.html )
I downloaded the package from http://net-snmp.sourceforge.net/ and "./configure - make - make install" and was done. Downloaded the plugins from http://sourceforge.net/project/showfiles.php?group_id=29880&package_id=2188 and "./configure - make - make install, yet there is still no check_hpjd in the libexec folder and i continue to get the same error when checking printer status.
I figured the net-snmp-utils packaged described on the help document would have installed when i did the net-snmp package. I searched for net-snmp-utils and it kept directing me to the already installed SNMP agent. Am i missing something??
Question by:mhdcommunications
LVL 13

Accepted Solution

WizRd-Linux earned 400 total points
ID: 24199502
This particular plugin checks for the existance of snmpgetnext, which should be located in /usr/bin/.  If ./configure is unable to find this in your path it will cause it to fail.

According to packages.ubuntu.com you get this file from the package "snmp".  Try installing this package with "apt-get install snmp" and then redo the compilation of the plugins.

Author Closing Comment

ID: 31572878
I wish more 'Experts' were like you. Short explanation of what's going on, and a short, correct, answer. A+

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Suggested Courses
Course of the Month12 days, 2 hours left to enroll

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question