Results 1 to 5 of 5

Thread: Where is "check_nrpe" in ubuntu?

  1. #1
    Join Date
    Dec 2008
    Beans
    2

    Where is "check_nrpe" in ubuntu?

    I ran sudo apt-get install nagios-nrpe-plugins

    and it completed successfully. But for the life of me I can find the binary to run...

  2. #2
    Join Date
    Jul 2007
    Beans
    2

    Re: Where is "check_nrpe" in ubuntu?

    Has anyone figured this out? In most examples it instructs to test the nrpe plugin by running the following:

    Code:
    /usr/local/nagios/libexec/check_nrpe -H 192.168.1.3
    However, I cannot find the check_nrpe in ubuntu.

  3. #3
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Where is "check_nrpe" in ubuntu?

    Open an Applications-->Accessories-->Terminal and type:

    Code:
    locate check_nrpe
    it should give you the location of the file.

  4. #4
    Join Date
    Oct 2007
    Location
    Bavaria, Germany
    Beans
    53
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Where is "check_nrpe" in ubuntu?

    You may have figured it out yourself meanwhile, but here the solution anyways (for others maybe then to read).

    I just started playing around with Nagios myself a few days ago. To make my life easier (since I am still not so knowledgable about Linux), I have installed Nagios using the provided packages.

    Unfortunately the package maintainer decided to use a different directory structure than the one described in the installation tutorial using the manual compilation. Even more unfortunate almost all tutorials in the internet and even some of the plugins are referring to the structure created by the manual installation. So meanwhile I tend to agree with another poster in one of the other threads, that it is even (or especially) for beginners better to also go the manual way of doing things.

    To answer your question: First you may need to do

    Code:
    # updatedb
    before

    Code:
    # located check_nrpe
    will yield the desired result, i.e. /usr/lib/nagios/plugins/check_nrpe and /etc/nagios-plugins/check_nrpe.cfg (for the config file)

    P.S.: I have tried to install Centreon after Nagios and it assumes the old structure as well, so it becomes very difficult to get it working (have not been successful yet)
    I Ubuntu, therefore I am
    (Started climbing the Ubuntu learning curve on October 18th 2007)

  5. #5
    Join Date
    May 2006
    Location
    Amsterdam
    Beans
    1,731
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Where is "check_nrpe" in ubuntu?

    dpkg -L $package_name | grep check_nrpe

    or, asuming it is in your path: which check_nrpe..

    or find.

    Code:
    apt-file search check_nrpe
    nagios-nrpe-plugin: /etc/nagios-plugins/config/check_nrpe.cfg
    nagios-nrpe-plugin: /usr/lib/nagios/plugins/check_nrpe
    Last edited by slakkie; August 6th, 2009 at 08:30 PM.
    Upgrade Ubuntu | Upgrade unsupported Ubuntu versions | Always backup | Howto upgrade flash
    Minimal CD install | Remove old kernels | My blog | Linux user #462801 | Conscience doth make cowards of us all. -- Shakespeare

Bookmarks

Posting Permissions

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