Page 1 of 1

Wrong Host-Notifications

Posted: Thu Jun 21, 2012 5:43 am
by andy_p
Nagios sends sporadically ** PROBLEM Host Alert: sw01 is DOWN ** "Info: CRITICAL - Host Unreachable" notifications although the "Host Status" is "UP" and green in the GUI.

The host uses the generic-switch template:

Code: Select all

define host{
        name                    generic-switch
        use                     generic-host
        check_period            24x7
        check_interval          5
        retry_interval          1
        max_check_attempts      10
        check_command           check-host-alive
        notification_period     24x7
        notification_interval   30
        notification_options    d,r
        contact_groups          admins 
        register                0
        }
I tried to debug with "debug_level=32" but there aren't any entries for the wrong notifications.

I also tried to disable notifications for this host:

Code: Select all

notifications_enabled   0
notification_options    n
Nagios still sends wrong notifications.

Any suggestions, solving this strange behaviour?

Thanks in advance,
Andy

Re: Wrong Host-Notifications

Posted: Thu Jun 21, 2012 1:09 pm
by lmiltchev
Can you show us the "sw01" host definition as well?

Re: Wrong Host-Notifications

Posted: Thu Jun 21, 2012 2:19 pm
by andy_p
lmiltchev wrote:Can you show us the "sw01" host definition as well?
sure:

Code: Select all

define host{
    use             generic-switch
    host_name       sw01
    alias           Switch 01
    address         1.2.3.4
    hostgroups      switches
    parents         gateway
    }
Best regards,
Andy

Re: Wrong Host-Notifications

Posted: Mon Jun 25, 2012 9:34 am
by agriffin
Do you have more than one Nagios instance running? What's the output of the following command?

Code: Select all

ps -o user,pid,ppid,%cpu,%mem,etime,args -p $(pgrep -d, nagios)