Wrong Host-Notifications

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
andy_p
Posts: 2
Joined: Thu Jun 21, 2012 5:06 am

Wrong Host-Notifications

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Wrong Host-Notifications

Post by lmiltchev »

Can you show us the "sw01" host definition as well?
Be sure to check out our Knowledgebase for helpful articles and solutions!
andy_p
Posts: 2
Joined: Thu Jun 21, 2012 5:06 am

Re: Wrong Host-Notifications

Post 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
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Wrong Host-Notifications

Post 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)
Locked