[icinga-checkins] icinga.org: icinga-api/cdoebler/default: * added service columns fpr livestatus

git at icinga.org git at icinga.org
Mon Jan 4 10:09:26 CET 2010


Module: icinga-api
Branch: cdoebler/default
Commit: b0eb75a2e5d16532a0945e736b3371b9ac1e920f
URL:    https://git.icinga.org/?p=icinga-api.git;a=commit;h=b0eb75a2e5d16532a0945e736b3371b9ac1e920f

Author: Christian Doebler <christian.doebler at netways.de>
Date:   Mon Jan  4 10:09:11 2010 +0100

* added service columns fpr livestatus

---

 .../IcingaApiSearchLivestatusSocket.php            |  142 ++++++++++++++++++++
 1 files changed, 142 insertions(+), 0 deletions(-)

diff --git a/objects/search/data_interfaces/IcingaApiSearchLivestatusSocket.php b/objects/search/data_interfaces/IcingaApiSearchLivestatusSocket.php
index 288752c..fd2268c 100644
--- a/objects/search/data_interfaces/IcingaApiSearchLivestatusSocket.php
+++ b/objects/search/data_interfaces/IcingaApiSearchLivestatusSocket.php
@@ -342,6 +342,148 @@ class IcingaApiSearchLivestatusSocket
 			'SERVICE_LATENCY_AVG' => array('latency', 'avg(%s)'),
 			'SERVICE_LATENCY_MAX' => array('latency', 'max(%s)'),
 			*/
+
+			// livestatus only
+			'SERVICE_ACCEPT_PASSIVE_CHECKS' => array('accept_passive_checks'),
+			'SERVICE_ACKNOWLEDGED' => array('acknowledged'),
+			'SERVICE_ACKNOWLEDGEMENT_TYPE' => array('acknowledgement_type'),
+			'SERVICE_ACRION_URL' => array('action_url'),
+			'SERVICE_ACTIVE_CHECKS_ENABLED' => array('active_checks_enabled'),
+			'SERVICE_CHECK_COMMAND_ENABLED' => array('check_command'),
+			'SERVICE_CHECK_INTERVAL' => array('check_interval'),
+			'SERVICE_CHECK_OPTIONS' => array('check_options'),
+			'SERVICE_CHECK_PERIOD' => array('check_period'),
+			'SERVICE_CHECK_TYPE' => array('check_type'),
+			'SERVICE_CHECKS_ENABLED' => array('checks_enabled'),
+			'SERVICE_CONTACTS' => array('contacts'),
+			'SERVICE_CURRENT_ATTEMPT' => array('current_attempt'),
+			'SERVICE_CURRENT_NOTIFICATION_NUMBER' => array('current_notification_number'),
+			'SERVICE_CUSTOM_VARIBALE_NAMES' => array('custom_variable_names'),
+			'SERVICE_CUSTUM_VARIABLE_VALUES' => array('custom_variable_values'),
+			'SERVICE_DESCRIPTION' => array('description'),
+			'SERVICE_DISPLAY_NAME' => array('display_name'),
+			'SERVICE_DOWNTIMES' => array('downtimes'),
+			'SERVICE_EVENT_HANDLER' => array('event_handler'),
+			'SERVICE_EVENT_HANDLER_HANDLER_ENABLED' => array('event_handler_enabled'),
+			'SERVICE_EXECUTION_TIME' => array('execution_time'),
+			'SERVICE_FIRST_NOTIFICATION_DELAY' => array('first_notification_delay'),
+			'SERVICE_GROUPS' => array('groups'),
+			'SERVICE_HAS_BEEN_CHECKED' => array('has_been_checked'),
+			'SERVICE_HIGH_FLAP_THRESHOLD' => array('high_flap_threshold'),
+			'HOST_ACCEPT_PASSIVE_CHECKS' => array('host_accept_passive_checks'),
+			'HOST_ACKNOWLEDGED' => array('host_acknowledged'),
+			'HOST_ACKNOWLEDGEMENT_TYPE' => array('host_acknowledgement_type'),
+			'HOST_ACTION_URL' => array('host_action_url'),
+			'HOST_ACTIVE_CHECKS_ENABLED' => array('host_active_checks_enabled'),
+			'HOST_ADDRESS' => array('host_address'),
+			'HOST_ALIAS' => array('host_alias'),
+			'HOST_CHECK_COMMAND' => array('host_check_command'),
+			'HOST_CHECK_FRESHNESS' => array('host_check_freshness'),
+			'HOST_CHECK_INTERVAL' => array('host_check_interval'),
+			'HOST_CHECK_OPTIONS' => array('host_check_options'),
+			'HOST_CHECK_PERIOD' => array('host_check_period'),
+			'HOST_CHECK_TYPE' => array('host_check_type'),
+			'HOST_CHECKS_ENABLED' => array('host_checks_enabled'),
+			'HOST_CHILDS' => array('host_childs'),
+			'HOST_CONACTS' => array('host_contacts'),
+			'HOST_CURRENT_ATTEMPT' => array('host_current_attempt'),
+			'HOST_CURRENT_NOTIFICATION_NUMBER' => array('host_current_notification_number'),
+			'HOST_CUSTOM_VARIABLE_NAMES' => array('host_custom_variable_names'),
+			'HOST_CUSTOM_VARIABLE_VALUES' => array('host_custom_variable_values'),
+			'HOST_DISPLAY_NAME' => array('host_display_name'),
+			'HOST_DOWNTIMES' => array('host_downtimes'),
+			'HOST_EVENT_HANDLER_ENABLED' => array('host_event_handler_enabled'),
+			'HOST_EXECUTION_TIME' => array('host_execution_time'),
+			'HOST_FIRST_NOTIFICATION_DELAY' => array('host_first_notification_delay'),
+			'HOST_FLAP_DETECTION_ENABLED' => array('host_flap_detection_enabled'),
+			'HOST_GROUPS' => array('host_groups'),
+			'HOST_HARD_STATE' => array('host_hard_state'),
+			'HOST_HAS_BEEN_CHECKED' => array('host_has_been_checked'),
+			'HOST_HIGH_FLAP_THRESHOLD' => array('host_high_flap_threshold'),
+			'HOST_ICON_IMAGE' => array('host_icon_image'),
+			'HOST_ICON_IMAGE_ALT' => array('host_icon_image_alt'),
+			'HOST_IN_CHECK_PERIOD' => array('host_in_check_period'),
+			'HOST_IN_NOTIFICATION_PERIOD' => array('host_in_notification_period'),
+			'HOST_INITIAL_STATE' => array('host_initial_state'),
+			'HOST_IS_EXECUTING' => array('host_is_executing'),
+			'HOST_IS_FLAPPING' => array('host_is_flapping'),
+			'HOST_LAST_CHECK' => array('host_last_check'),
+			'HOST_LAST_HARD_STATE' => array('host_last_hard_state'),
+			'HOST_LAST_HARD_STATE_CHANGE' => array('host_last_hard_state_change'),
+			'HOST_LAST_NOTIFICATION' => array('host_last_notification'),
+			'HOST_LAST_STATE' => array('host_last_state'),
+			'HOST_LAST_STATE_CHANGE' => array('host_last_state_change'),
+			'HOST_LATENCY' => array('host_latency'),
+			'HOST_LONG_PLUGIN_OUTPUT' => array('host_long_plugin_output'),
+			'HOST_LOW_FLAP_THRESHOLD' => array('host_low_flap_threshold'),
+			'HOST_MAX_CHECK_ATTEMPTS' => array('host_max_check_attempts'),
+			'HOST_NAME' => array('host_name'),
+			'HOST_NEXT_CHECK' => array('host_next_check'),
+			'HOST_NEXT_NOTIFICATION' => array('host_next_notification'),
+			'HOST_NOTES' => array('host_notes'),
+			'HOST_NOTES_URL' => array('host_notes_url'),
+			'HOST_NOTIFICATION_INTERVAL' => array('host_notification_interval'),
+			'HOST_NOTIFICATION_PERIOD' => array('host_notification_period'),
+			'HOST_NOTIFICATIONS_ENABLED' => array('host_notifications_enabled'),
+			'HOST_NUM_SERVICES' => array('host_num_services'),
+			'HOST_NUM_SERVICES_CRIT' => array('host_num_services_crit'),
+			'HOST_NUM_SERVICES_HARD_CRIT' => array('host_num_services_hard_crit'),
+			'HOST_NUM_SERVICES_HARD_OK' => array('host_num_services_hard_ok'),
+			'HOST_NUM_SERVICES_HARD_UNKNOWN' => array('host_num_services_hard_unknown'),
+			'HOST_NUM_SERVICES_HARD_WARN' => array('host_num_services_hard_warn'),
+			'HOST_NUM_SERVICES_OK' => array('host_num_services_ok'),
+			'HOST_NUM_SERVICES_UNKNOWN' => array('host_num_services_unknown'),
+			'HOST_NUM_SERVICES_WARN' => array('host_num_services_warn'),
+			'HOST_OBSESS_OVER_HOST' => array('host_obsess_over_host'),
+			'HOST_PARENTS' => array('host_parents'),
+			'HOST_PENDING_FLEX_DOWNTIME' => array('host_pending_flex_downtime'),
+			'HOST_PERCENT_STATE_CHANGE' => array('host_percent_state_change'),
+			'HOST_PERF_DATA' => array('host_perf_data'),
+			'HOST_PLUGIN_OUTPUT' => array('host_plugin_output'),
+			'HOST_PROCESS_PERFORMANCE_DATA' => array('host_process_performance_data'),
+			'HOST_RETRY_INTERVAL' => array('host_retry_interval'),
+			'HOST_SCHEDULED_DOWNTIME_DEPTH' => array('host_scheduled_downtime_depth'),
+			'HOST_STATE' => array('host_state'),
+			'HOST_STATE_TYPE' => array('host_state_type'),
+			'HOST_STATUSMAP_IMAGE' => array('host_statusmap_image'),
+			'HOST_TOTAL_SERVICES' => array('host_total_services'),
+			'HOST_WORST_SERVICE_HARD_STATE' => array('host_worst_service_hard_state'),
+			'HOST_WORST_SERVICE_STATE' => array('host_worst_service_state'),
+			'HOST_X_3D' => array('host_x_3d'),
+			'HOST_Y_3D' => array('host_y_3d'),
+			'HOST_Z_3D' => array('host_z_3d'),
+			'SERVICE_ICON_IMAGE' => array('icon_image'),
+			'SERVICE_ICON_IMAGE_ALT' => array('icon_image_alt'),
+			'SERVICE_IN_CHECK_PERIOD' => array('in_check_period'),
+			'SERVICE_IN_NOTIFICATION_PERIOD' => array('in_notification_period'),
+			'SERVICE_INITIAL_STATE' => array('initial_state'),
+			'SERVICE_IS_EXECUTING' => array('is_executing'),
+			'SERVICE_IS_FLAPPING' => array('is_flapping'),
+			'SERVICE_LAST_CHECK' => array('last_check'),
+			'SERVICE_LAST_HARD_STATE' => array('last_hard_state'),
+			'SERVICE_LAST_HARD_STATE_CHANGE' => array('last_hard_state_change'),
+			'SERVICE_LAST_NOTIFICATION' => array('last_notification'),
+			'SERVICE_LAST_STATE' => array('last_state'),
+			'SERVICE_LAST_STATE_CHANGE' => array('last_state_change'),
+			'SERVICE_LATENCY' => array('latency'),
+			'SERVICE_LONG_PLUGIN_OUTPUT' => array('long_plugin_output'),
+			'SERVICE_LOW_FLAP_THRESHOLD' => array('low_flap_threshold'),
+			'SERVICE_MAX_CHECK_ATTEMPTS' => array('max_check_attempts'),
+			'SERVICE_NEXT_CHECK' => array('next_check'),
+			'SERVICE_NEXT_NOTIFICATION' => array('next_notification'),
+			'SERVICE_NOTES' => array('notes'),
+			'SERVICE_NOTES_URL' => array('notes_url'),
+			'SERVICE_NOTIFICATION_INTERVAL' => array('notification_interval'),
+			'SERVICE_NOTIFICATION_PERIOD' => array('notification_period'),
+			'SERVICE_NOTIFICATIONS_ENABLED' => array('notifications_enabled'),
+			'SERVICE_PERCENT_STATE_CHANGE' => array('percent_state_change'),
+			'SERVICE_PERF_DATA' => array('perf_data'),
+			'SERVICE_PLUGIN_OUTPUT' => array('plugin_output'),
+			'SERVICE_PROCESS_PERFORMANCE_DATA' => array('process_performance_data'),
+			'SERVICE_RETRY_INTERVAL' => array('retry_interval'),
+			'SERVICE_SCHEDULED_DOWNTIME_DEPTH' => array('scheduled_downtime_depth'),
+			'SERVICE_STATE' => array('state'),
+			'SERVICE_STATE_TYPE' => array('state_type'),
 		),
 
 /*





More information about the icinga-checkins mailing list