servicedependencies not working
Assaf Flatto
nagios at flatto.net
Fri Dec 16 09:48:27 CET 2011
Dan
Even for the same host dependencies you still need to define a host in the servicedependency definitions.
At the moment your servicedependency (the one you pasted here) is not associated with any host and hence the logic is not implemented on any host testing logic.
Assaf
----- Original Message -----
From: "Daniel Wittenberg" <daniel.wittenberg.r0ko at statefarm.com>
To: "nagios-users at lists.sourceforge.net" <nagios-users at lists.sourceforge.net>
Sent: Thursday, 15 December, 2011 5:38:53 PM
Subject: [Nagios-users] servicedependencies not working
I’ve started playing with making a bunch of dependencies and at first it appeared to be working, right now I’ve got a pretty basic test setup. I’ve added one service to be dependent on the other one, but it seems that the freshness might be mucking with it. Two services below:
define service {
service_description base_log_checks
servicegroups base_service_group
hostgroup_name base_windows_2003
use generic-passive-service
check_freshness 1
freshness_threshold 3600
check_command service_is_
}
define service {
service_description nagios_cron
servicegroups base_service_group
hostgroup_name base_windows_2003
use generic-passive-service
check_freshness 1
freshness_threshold 3000
check_command service_is_stale
}
define servicedependency {
service_description nagios_cron
dependent_service_description base_log_checks
execution_failure_criteria w,u,c
notification_failure_criteria w,u,c
inherits_parent 1
}
What appears to happen is that I kill nsclient so nagios_cron starts reporting “stale” at 3000 seconds, and the same for base_log_checks shortly after. Then about every hour I get more “stale” soft alerts, and then after the third try it goes to a HARD alert and I still get a ticket, though I’m not sure why it’s even checking if execution should be disable when nagios_cron is in a warning state. But not only does the active checks (service_is_stale) get executed but I’m also still getting notifications sent after 3 attempts, so it doesn’t really appear to be doing anything. Unfortunately right now these servers are so busy it’s hard to put them in debug mode. Have I missed something obvious with these?
Dan
------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.
But none more important than the need to reduce IT complexity
while improving strategic productivity. Learn More!
http://www.accelacomm.com/jaw/sdnl/114/51507609/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20111216/8697b850/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list