[Nagios-devel] bug? notification for dependant services when primary service is

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
Guest

[Nagios-devel] bug? notification for dependant services when primary service is

Post by Guest »

Howdy,

I might have stumble into a bug involving notification of dependant
services.

Situation:
Primary service: check if a serial interface is up
Dependant service: latency to location connected by that interface

Scheduled downtime for the primary service. Interface goes down during
the scheduled downtime, Nagios sees this and doesn't send out any
notifications.

Service check for the dependant service runs(ping remote location) and
it times out. Nagios failed to "understand" that the primary service
was in a scheduled down state and sent out a notification that the
service check "latency to remote location" timed out.

~~~

Shouldn't Nagios see the primary service as down and not bother sending
out notifications for the dependant service?

Or

If I schedule downtime for a service, do I also need to schedule
downtime for all the dependant services?

Third option being I have something fubar'd. Here is what I have defined.
####################################
#### services.cfg
####################################

# DMR-Dolaninfo-MPLS Interface Serial0/0.44
# check status of sub-interface ser0/0.44
define service {
use generic-service
host_name DMR-Dolaninfo-MPLS
service_description Interface Serial0/0.44
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
notification_interval 180
contact_groups dmc-support
check_command check_ifoperstatus!nagios!28
}

# DMR-Dolaninfo-MPLS Serial0/0.44
# check the latency via ser0/0.44
# this service is dependant on ser0/0.44 being up
define service {
use generic-service
host_name DMR-Dolaninfo-MPLS
service_description Latency via Serial0/0.44
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
notification_interval 180
contact_groups dmc-support
check_command ping-ip-addr!1.2.3.4
}


####################################
#### dependencies.cfg
####################################

# Latency via Serial0/0.44 is dependant on DMR-Dolaninfo-MPLS
# Serial0/0.44 being up
define servicedependency {
dependent_host_name DMR-Dolaninfo-MPLS
dependent_service_description Latency via Serial0/0.44
host_name DMR-Dolaninfo-MPLS
service_description Interface Serial0/0.44
execution_failure_criteria u,w,c
notification_failure_criteria u,w,c
}


I am using Nagios version 1.0b6.

Any questions or ideas, please let me know.

Thanks,
greg







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: greg.panula@dolaninformation.com
Locked