# By: Riasat Ullah
# This file contains all constants and functions related to the Icinga2 integration.


# Icinga2 variables
var_entity_type = 'entity_type'
var_host_address = 'host_address'
var_host_display_name = 'host_display_name'
var_host_name = 'host_name'
var_host_output = 'host_output'
var_host_perf_data = 'host_perf_data'
var_host_state = 'host_state'
var_host_state_id = 'host_state_id'
var_notification_type = 'notification_type'
var_service_desc = 'service_desc'
var_service_display_name = 'service_display_name'
var_service_output = 'service_output'
var_service_perf_data = 'service_perf_data'
var_service_state = 'service_state'
var_service_state_id = 'service_state_id'

# Icinga2 entity type values
host_entity = 'host'
service_entity = 'service'

# Icinga2 host state values
host_ok_state_id = [0, 1]
host_down_state_id = [2, 3]

# Icinga2 service state ID values
service_ok_state_id = 0
service_warning_state_id = 1
service_critical_state_id = 2
service_unknown_state_id = 3

# Icinga2 notification type values
acknowledgement_notification = 'ACKNOWLEDGEMENT'
problem_notification = 'PROBLEM'
recovery_notification = 'RECOVERY'
