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

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??
LVL 1
mhdcommunicationsAsked:
Who is Participating?
 
WizRd-LinuxCommented:
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.
0
 
mhdcommunicationsAuthor Commented:
I wish more 'Experts' were like you. Short explanation of what's going on, and a short, correct, answer. A+
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.