+ Post New Thread
Results 1 to 10 of 10
*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. It ...
  1. #1

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241

    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:

    Ubuntu Quickstart

  2. #2


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,638
    Thank Post
    275
    Thanked 778 Times in 605 Posts
    Rep Power
    223
    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:
    Code:
    ./check_printer -H IPADDRESS -C SNMPCommunity
    You should get: OK - Printer ok (" Ready") or similar.

  3. Thanks to pete from:

    Hightower (19th March 2009)

  4. #3

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by pete View Post
    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:
    Code:
    ./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?

  5. #4

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    Code:
    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.

  6. Thanks to Geoff from:

    Hightower (19th March 2009)

  7. #5

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Thanks for that Geoff. Looks good, if I can only find how to get it

  8. #6

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    NM - got it

  9. #7

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    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?

  10. #8

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    did you set it executable

    also it appears to be written in php, thus you'll need the php CLI version installed.

  11. #9

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by Geoff View Post
    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.

  12. #10

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    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.

SHARE:
+ Post New Thread

Similar Threads

  1. Nagios Error after update..
    By Gatt in forum Network and Classroom Management
    Replies: 4
    Last Post: 7th December 2008, 11:16 AM
  2. Nagios - do you use it?
    By somabc in forum *nix
    Replies: 20
    Last Post: 20th August 2008, 08:19 PM
  3. 127.0.0.1 and when it should be used.
    By Maximus in forum Wireless Networks
    Replies: 6
    Last Post: 10th June 2008, 03:01 PM
  4. Nagios Problems
    By DanW in forum *nix
    Replies: 5
    Last Post: 7th May 2008, 01:56 PM
  5. nagios error
    By dezt in forum *nix
    Replies: 13
    Last Post: 13th March 2008, 02:02 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •