Host Group Service

HostGroupService

class HostGroupService(host_group_id, host_group_name, id_unique, description, check_command, check_command_arg, normal_check_interval, retry_check_interval, max_check_attempts, active_checks_enabled, passive_checks_enabled)

This class represents a hostgroup service

Parameters
  • host_group_id (int) – ID of the hostgroup

  • host_group_name (str) – Name of the hostgroup

  • id_unique (int) – ID of the service

  • description (str) – Description of the service

  • check_command (str) – Check command

  • check_command_arg (list of str) – List of arguments from check commands

  • normal_check_interval (int) – Normal check interval

  • retry_check_interval (int) – Retry check interval

  • max_check_attempts (int) – Maximum check attempts

  • active_checks_enabled (ThreeWayOption) – Are active checks enabled?

  • passive_checks_enabled (ThreeWayOption) – Are passive checks enabled?

HostGroupServiceParam

class HostGroupServiceParam

This class represents the parameters of a host group service

ACTION_URL = 'action_url'
ACTIVATE_CHECKS_ENABLED = 'activate_checks_enabled'
CG_ADDITIVE_INHERITANCE = 'cg_additive_inheritance'
CHECK_COMMAND = 'check_command'
CHECK_COMMAND_ARGUMENTS = 'check_command_arguments'
CHECK_FRESHNESS = 'check_freshness'
CHECK_PERIOD = 'check_period'
COMMENT = 'comment'
CONTACT_ADDITIVE_INHERITANCE = 'contact_additive_inheritance'
DESCRIPTION = 'description'
EVENT_HANDLER = 'event_handler'
EVENT_HANDLER_ARGUMENTS = 'event_handler_arguments'
EVENT_HANDLER_ENABLED = 'event_handler_enabled'
FIRST_NOTIFICATION_DELAY = 'first_notification_delay'
FLAP_DETECTION_ENABLED = 'flap_detection_enabled'
FRESHNESS_THRESHOLD = 'freshness_threshold'
ICON_IMAGE = 'icon_image'
ICON_IMAGE_ALT = 'icon_image_alt'
IS_VOLATILE = 'is_volatile'
MAX_CHECK_ATTEMPTS = 'max_check_attempts'
NORMAL_CHECK_INTERVAL = 'normal_check_interval'
NOTES = 'notes'
NOTES_URL = 'notes_url'
NOTIFICATIONS_ENABLED = 'notifications_enabled'
NOTIFICATION_INTERVAL = 'notification_interval'
NOTIFICATION_OPTIONS = 'notification_options'
NOTIFICATION_PERIOD = 'notification_period'
OBSESS_OVER_SERVICE = 'obsess_over_service'
PASSIVE_CHECKS_ENABLED = 'passive_checks_enabled'
RECOVERY_NOTIFICATION_DELAY = 'recovery_notification_delay'
RETAIN_NONSTATUS_INFORMATION = 'retain_nonstatus_information'
RETAIN_STATUS_INFORMATION = 'retain_status_information'
RETRY_CHECK_INTERVAL = 'retry_check_interval'
SERVICE_NOTIFICATION_OPTIONS = 'service_notification_options'
TEMPLATE = 'template'