| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| dependency service state problem on passive services http://www.steveshipway.org/forum/viewtopic.php?f=22&t=4161 |
Page 1 of 1 |
| Author: | weilin_china [ Tue Apr 27, 2010 5:49 pm ] |
| Post subject: | dependency service state problem on passive services |
I declared two passive service as bellow: define service{ use remote-service host_name AAA service_description AAA_managed3_srm_state check_command nsca_passive notifications_enabled 1 active_checks_enabled 0 passive_checks_enabled 1 event_handler_enabled 1 event_handler state_event_handler } define service{ use remote-service host_name BBB service_description BBB_managed8_srm_state check_command nsca_passive notifications_enabled 1 active_checks_enabled 0 passive_checks_enabled 1 event_handler_enabled 1 event_handler state_event_handler } PS: nsca_passive is a command I declared as none: define command{ command_name nsca_passive command_line none } Then I declared a dependency service dependent above two services as bellow: define servicedependency { dependent_host_name localhost dependent_service_description srm_state host_name AAA service_description AAA_managed3_srm_state execution_failure_criteria o,w,c,u notification_failure_criteria o,w,c,u } define servicedependency { dependent_host_name localhost dependent_service_description srm_state host_name BBB service_description BBB_managed8_srm_state execution_failure_criteria o,w,c,u notification_failure_criteria o,w,c,u } define service{ use remote-service host_name localhost service_description srm_state check_command nsca_passive #check_freshness 1 #freshness_threshold 5 active_checks_enabled 0 passive_checks_enabled 1 event_handler_enabled 1 event_handler state_event_handler } PS: There are programs send state for service "AAA_managed3_srm_state" and "BBB_managed8_srm_state" periodically, and I can see state changing from nagios UI and NagVis UI. Problems are: 1. service state of "srm_state" always be "PENDING" and status information is "Service is not scheduled to be checked... ", seems no check on this service based on the two dependent services. 2. if one of the dependent service goes from OK to CRITICAL, no event occurred to service "srm_state". In fact above two problems are what I need for this dependency servie "srm_state", but now I don't know how to it, is there some one has same need as I, help me! |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|