Results 1 to 2 of 2

Thread: Nagios plugins

  1. #1

    Nagios plugins

    Hello,

    I have a working nagios with lots of plugins currently working, although I am getting wierd errors with the last installed plugins:

    - check_bl (Plugin that check if IP is listed in spam blacklists)

    Nagios shows:

    (No output!) (This is being shown on localhost running nagios and in any other IP I try to check)

    checkcommands.cfg:

    define command{
    command_name check_bl
    command_line $USER1$/check_bl -H $HOSTADDRESS$ -B sbl-xbl.spamhaus.org,bl.spamcop.net,t1.dnsbl.net.au
    }

    When I run it through shell it works smoothly:


    root@gui [/usr/local/nagios/libexec]# ./check_bl -H 66.98.166.XXX -B sbl-xbl.spamhaus.org,bl.spamcop.net,t1.dnsbl.net.au
    Not black-listed
    root@gui [/usr/local/nagios/libexec]#
    The Cloud Platform for Bare Metal
    Instant Deployment of High-Performance Bare Metal Servers in 15 cities globally
    Latitude.sh (Formerly Maxihost)

  2. #2
    Sorry, forgot to post the minimal.cfg config:

    define service{
    use generic-service ; Name of service template to use
    host_name XX.mhXX.com
    service_description Blacklists
    is_volatile 0
    check_period 24x7
    max_check_attempts 4
    normal_check_interval 5
    retry_check_interval 1
    contact_groups admins
    notification_options u,c,r
    notification_interval 960
    notification_period 24x7
    check_command check_bl
    }
    The Cloud Platform for Bare Metal
    Instant Deployment of High-Performance Bare Metal Servers in 15 cities globally
    Latitude.sh (Formerly Maxihost)

Posting Permissions

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