*nix Thread, Nagios Error 127 in Technical; Just installed Nagios to see how good it is, and set up a networked printer as in the documentation.
19th March 2009, 11:16 AM #1
Nagios Error 127
Just installed Nagios to see how good it is, and set up a networked printer as in the documentation.
It pings OK, but for Printer Status I get the attached error.
Installed on Ubuntu 8.04 Server, following documentation here:
19th March 2009, 11:50 AM #2
127 normally means that it can't find or run the plugin you're calling, which I assume is check_printer or check_hpjd
Check permissions on the plugin - can the nagios user access it? Check the path you're using - on mine (compiled from source) it's :/usr/local/nagios/libexec/name_of_plugin
Run the plugin manually to check that the printer is responding:
You should get: OK - Printer ok (" Ready") or similar.
./check_printer -H IPADDRESS -C SNMPCommunity
Thanks to pete from:
Hightower (19th March 2009)
19th March 2009, 11:57 AM #3
Just had a look in /usr/local/nagios/libexec/ - there is not check_printer OR check_hpjd
Originally Posted by pete
How would I go about sorting this?
19th March 2009, 12:21 PM #4
Will get you most plugins. However check_printer seems to of disappeared. So here's a better replacement.
NagiosExchange: check_printer - All in one printer check suitable for most devices
You also might want to have a browse around nagiosexchange for other plugins you might find useful.
Thanks to Geoff from:
Hightower (19th March 2009)
19th March 2009, 12:26 PM #5
Thanks for that Geoff. Looks good, if I can only find how to get it
19th March 2009, 12:28 PM #6
NM - got it
19th March 2009, 12:34 PM #7
Thought I had it. went to the plugin folder, did a wget http://www.ciphron.de/gfx/pool/check_printer and reloaded nagios
Thought this would have been it, any help?
19th March 2009, 01:08 PM #8
did you set it executable
also it appears to be written in php, thus you'll need the php CLI version installed.
19th March 2009, 01:27 PM #9
I have set it as executable, and installed php5-cli
Originally Posted by Geoff
When i try to run ./check_printer in the same directory as the rest of the plugins I get a command not found.
19th March 2009, 04:20 PM #10
Just tried downloading and using another plugin. Downloaded it to the plugin directory, ran chmod -x pluginname and tried ./pluginname --help.
I'm obviously doing something wrong as I still get a Command Not Found error.
By Gatt in forum Network and Classroom Management
Last Post: 7th December 2008, 11:16 AM
Last Post: 20th August 2008, 08:19 PM
By Maximus in forum Wireless Networks
Last Post: 10th June 2008, 03:01 PM
Last Post: 7th May 2008, 01:56 PM
Last Post: 13th March 2008, 02:02 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)