Hightower Posted March 19, 2009 Report Posted March 19, 2009 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: Ubuntu Quickstart
pete Posted March 19, 2009 Report Posted March 19, 2009 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: ./check_printer -H IPADDRESS -C SNMPCommunity You should get: OK - Printer ok (" Ready") or similar. 1
Hightower Posted March 19, 2009 Author Report Posted March 19, 2009 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: ./check_printer -H IPADDRESS -C SNMPCommunity You should get: OK - Printer ok (" Ready") or similar. Just had a look in /usr/local/nagios/libexec/ - there is not check_printer OR check_hpjd How would I go about sorting this?
Geoff Posted March 19, 2009 Report Posted March 19, 2009 apt-get nagios-plugins 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. 1
Hightower Posted March 19, 2009 Author Report Posted March 19, 2009 Thanks for that Geoff. Looks good, if I can only find how to get it
Hightower Posted March 19, 2009 Author Report Posted March 19, 2009 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?
Geoff Posted March 19, 2009 Report Posted March 19, 2009 did you set it executable also it appears to be written in php, thus you'll need the php CLI version installed.
Hightower Posted March 19, 2009 Author Report Posted March 19, 2009 did you set it executable also it appears to be written in php, thus you'll need the php CLI version installed. I have set it as executable, and installed php5-cli When i try to run ./check_printer in the same directory as the rest of the plugins I get a command not found.
Hightower Posted March 19, 2009 Author Report Posted March 19, 2009 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now