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]#
    Guilherme S. Alberto
    Cloud and Dedicated Servers hosted in Brazil
    maxihost.com.br/en [US]
    www.maxihost.com.br [BR]

  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
    }
    Guilherme S. Alberto
    Cloud and Dedicated Servers hosted in Brazil
    maxihost.com.br/en [US]
    www.maxihost.com.br [BR]

  3. Newsletters

    Subscribe Now & Get The WHT Quick Start Guide!

Posting Permissions

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