Results 1 to 6 of 6
  1. #1
    Untanglit
    Join Date
    Nov 2007
    Posts
    27

    Default nagios check scripts

    trying to set up my UT box for nagios monitoring

    I'm familiar with Nagios. I followed the NRPE How to.

    NRPE Responds
    Code:
    [root@villamgt01p nagios]# /usr/lib/nagios/plugins/check_nrpe -H 10.1.10.4
    NRPE v2.12
    My issue is the check scripts. They are not in the correct location and I can't find where they installed.

    They usually end up in /usr/lib/nagios/plugins/. I don't have that directory in my UT box.

    The locate command does not work in the UT shell. Any ideas?

  2. #2
    Untangle Ninja mrunkel's Avatar
    Join Date
    Jul 2008
    Posts
    2,989

    Default

    Here is the nrpe.cfg we use internally:

    Code:
    command[check_pgsql]=/usr/lib/nagios/plugins/check_pgsql -H localhost -l untangle -d uvm
    command[check_rails]=/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -a /usr/bin/mongrel_rails
    command[check_uvm]=/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -a /usr/bin/uvm
    command[check_spamd]=/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -a /usr/sbin/spamd
    command[check_load]=/usr/lib/nagios/plugins/check_load --warning=7.0,6.0,5.0 --critical=10.0,8.0,6.0
    You'll need to copy the check scripts to /usr/lib/nagios/plugins/ yourself as well as installing the nrpe server and opening the packet filter.
    m.


    Big Frickin Disclaimer:
    While I'm pretty sure, I can't guarantee that I know what I'm doing. There might be a better way to do this, and this way might actually suck. Make sure you understand the implications of what you're doing before trying to follow these directions.

    It often helps troubleshooting if you have a good network map. Look here if you want my advice on how to draw one.
    Attention: Support and help on the Untangle Forums is provided by volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com

  3. #3
    Untanglit
    Join Date
    Nov 2007
    Posts
    27

    Default

    oh, I just figured the checks would be installed with the app. I'll give it a shot, thanks

  4. #4
    Master Untangler wharfratjoe's Avatar
    Join Date
    Dec 2008
    Location
    Southern California
    Posts
    412

    Default

    Quote Originally Posted by mrunkel View Post
    Here is the nrpe.cfg we use internally:

    Code:
    command[check_pgsql]=/usr/lib/nagios/plugins/check_pgsql -H localhost -l untangle -d uvm
    command[check_rails]=/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -a /usr/bin/mongrel_rails
    command[check_uvm]=/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -a /usr/bin/uvm
    command[check_spamd]=/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -a /usr/sbin/spamd
    command[check_load]=/usr/lib/nagios/plugins/check_load --warning=7.0,6.0,5.0 --critical=10.0,8.0,6.0
    You'll need to copy the check scripts to /usr/lib/nagios/plugins/ yourself as well as installing the nrpe server and opening the packet filter.
    Thanks for posting this! Adding these to one of my dev boxes. check_pgsql plugin is giving the following error when i run the following command to test the plugin:

    /usr/local/nagios/libexec/check_pgsql -H localhost -l untangle -d uvm

    /usr/local/nagios/libexec/check_pgsql: error while loading shared libraries: libpq.so.3: cannot open shared object file: No such file or directory

    Build: 8.0.0~svn20101110r27850release8.0-1lenny
    Last edited by wharfratjoe; 11-25-2010 at 12:38 AM.

  5. #5
    Master Untangler wharfratjoe's Avatar
    Join Date
    Dec 2008
    Location
    Southern California
    Posts
    412

    Default

    anyone?

  6. #6
    Master Untangler wharfratjoe's Avatar
    Join Date
    Dec 2008
    Location
    Southern California
    Posts
    412

    Default

    bueller?

Posting Permissions

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

SEO by vBSEO 3.6.0 PL2