Warnings causing service failure
-
MikeM-2468
- Posts: 17
- Joined: Wed May 18, 2011 2:58 pm
Warnings causing service failure
With 4.0.2 I'm finding that when a config file has anything in it that causes a warning, the service fails to restart. With 3.x, the warnings were displayed, but the services still started. Only errors caused the service to fail to start. I know that the real fix is to resolve the warnings, but is it supposed to work like this?
Re: Warnings causing service failure
Can you give us an example?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
MikeM-2468
- Posts: 17
- Joined: Wed May 18, 2011 2:58 pm
Re: Warnings causing service failure
The following warning causes the service not to start:
Code: Select all
Warning: Service 'Certificate' on host 'web.domain.com' has a notification interval less than its check interval! Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.
Re: Warnings causing service failure
Do you have any config errors (or just warnings)?
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgBe sure to check out our Knowledgebase for helpful articles and solutions!
-
MikeM-2468
- Posts: 17
- Joined: Wed May 18, 2011 2:58 pm
Re: Warnings causing service failure
Just that one warning. It relates to having the normal_check_interval specified in the file for that host. If I remove that, the warning goes away and the service starts.
Re: Warnings causing service failure
Can you post the service definition (hide the sensitive info)?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
MikeM-2468
- Posts: 17
- Joined: Wed May 18, 2011 2:58 pm
Re: Warnings causing service failure
Code: Select all
define service{
use generic-service
host_name web.domain.com
normal_check_interval 43200 ; Check the service every month under normal conditions
service_description Certificate
check_command check_http!-H web.domain.com -S -C 90
}Re: Warnings causing service failure
There's a pretty good explanation of the issue here.
From the article:
From the article:
Basically having your notification lower than your check can cause issues, and you will need to adjust it up accordingly.the reason this happens is that nagios can not send a notification based on an "old" data , the notification is relevant to the current status and that is related to the latest check. now if your check interval is smaller then the notification , that means that nagios can do more checks and then send the alert on the latest data .
but if it is the other way around - it means that the alert sent might be based on out-of-date date and hence there is a strong possibility of a "false-positive" and nagios is reminding you of that possibility and also refrains from sending messages if it does not have a more current check .
Former Nagios employee