I hope you guys here on the official support forum can help me.
What I need is that if a certain service "status_information" is meet, the other hosts checks should be done. Example:
HOST A
- SERVICE1
- SERVICE2
- SERVICE3
If SERVICE3 "status_information" is "OK - Standby", SERVICE1 and SERVICE2 checks should be done. The problem is that I can't use SERVICE3s "STATUS" as reference. Because STATUS is shown OK when "status_information" is either "OK" or "OK - Standby".
This is the extract of my services.cfg:
define service {
service_description CPU
check_command check_esx_cpu!80!90
host_name lxbruesx06
check_period 24x7
notification_period 24x7
contact_groups adminfgrp,admins
event_handler_enabled 0
action_url /pnp4nagios/graph?host=$HOSTNAME$&sr$
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
notification_interval 15
notification_options w,u,c,r,n
active_checks_enabled 1
passive_checks_enabled 0
notifications_enabled 1
check_freshness 0
freshness_threshold 86400
}
define service {
service_description mem
check_command check_esx_mem!90!95
host_name lxbruesx06
check_period 24x7
notification_period 24x7
contact_groups adminfgrp,admins
event_handler_enabled 0
action_url /pnp4nagios/graph?host=$HOSTNAME$&sr$
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
notification_interval 15
notification_options w,u,c,r,n
active_checks_enabled 1
passive_checks_enabled 0
notifications_enabled 1
check_freshness 0
freshness_threshold 86400
}
define service {
service_description status
check_command check_esx_alive!
host_name lxbruesx06
check_period 24x7
notification_period 24x7
contact_groups adminfgrp,admins
event_handler_enabled 0
action_url /pnp4nagios/graph?host=$HOSTNAME$&sr$
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
notification_interval 15
notification_options w,u,c,r,n
active_checks_enabled 1
passive_checks_enabled 0
notifications_enabled 1
check_freshness 0
freshness_threshold 86400
}
So I need that "CPU" and "mem" checks should only be done if "status" check results in Status "OK" and status_information "OK - Stanby".
I thought using Service Dependencies, so I tried this on services.cfg:
Normally using this, CPU and mem should not be checked if the status of "status" results in OK. But it did not work. Checked where done normally, nor errors, no special operations done. Also, this way if Status_information of status results either in OK or "OK- Standby" checks wouldn't be done...define servicedependency{
host_name lxbruesx06
service_description CPU
dependent_host_name lxbruesx06
dependent_service_description status
execution_failure_criteria o
notification_failure_criteria o
}
define servicedependency{
host_name lxbruesx06
service_description mem
dependent_host_name lxbruesx06
dependent_service_description status
execution_failure_criteria o
notification_failure_criteria o
}
I'll appreciate any type of help or hint. thanks!