Project: Icinga (Observability and Analysis / Observability)
File: 24-appendix.md

Additional details can be found in the Command name | Parameters | Description |--|-- PROCESSHOSTCHECKRESULT | ;&lt;hostname&gt;;&lt;statuscode&gt;;&lt;pluginoutput&gt; (3) | - PROCESSSERVICECHECKRESULT | ;&lt;hostname&gt;;&lt;servicename&gt;;&lt;returncode&gt;;&lt;plugin_output&gt; (4) | - SCHEDULEHOSTCHECK | ;&lt;hostname&gt;;&lt;checktime&gt; (2) | - SCHEDULEFORCEDHOSTCHECK | ;&lt;hostname&gt;;&lt;check_time&gt; (2) | - SCHEDULESVCCHECK | ;&lt;hostname&gt;;&lt;servicename&gt;;&lt;check_time&gt; (3) | - SCHEDULEFORCEDSVCCHECK | ;&lt;hostname&gt;;&lt;servicename&gt;;&lt;checktime&gt; (3) | - ENABLEHOSTCHECK | ;&lt;host_name&gt; (1) | - DISABLEHOSTCHECK | ;&lt;host_name&gt; (1) | - ENABLESVCCHECK | ;&lt;hostname&gt;;&lt;servicename&gt; (2) | - DISABLESVCCHECK | ;&lt;hostname&gt;;&lt;servicename&gt; (2) | - SHUTDOWN_PROCESS | - | - RESTART_PROCESS | - | - SCHEDULEFORCEDHOSTSVCCHECKS | ;&lt;hostname&gt;;&lt;checktime&gt; (2) | - SCHEDULEHOSTSVCCHECKS | ;&lt;hostname&gt;;&lt;check_time&gt; (2) | - ENABLEHOSTSVCCHECKS | ;&lt;hostname&gt; (1) | - DISABLEHOSTSVCCHECKS | ;&lt;hostname&gt; (1) | - ACKNOWLEDGESVCPROBLEM | ;&lt;hostname&gt;;&lt;servicename&gt;;&lt;sticky&gt;;&lt;notify&gt;;&lt;persistent&gt;;&lt;author&gt;;&lt;comment&gt; (7) | Note: Icinga 2 treats all comments as persistent. ACKNOWLEDGESVCPROBLEMEXPIRE | ;&lt;hostname&gt;;&lt;service_name&gt;;&lt;sticky&gt;;&lt;notify&gt;;&lt;persistent&gt;;&lt;timestamp&gt;;&lt;author&gt;;&lt;comment&gt; (8) | Note: Icinga 2 treats all comments as persistent. REMOVESVCACKNOWLEDGEMENT | ;&lt;hostname&gt;;&lt;servicename&gt; (2) | - ACKNOWLEDGEHOSTPROBLEM | ;&lt;host_name&gt;;&lt;sticky&gt;;&lt;notify&gt;;&lt;persistent&gt;;&lt;author&gt;;&lt;comment&gt; (6) | Note: Icinga 2 treats all comments as persistent. ACKNOWLEDGEHOSTPROBLEMEXPIRE | ;&lt;hostname&gt;;&lt;sticky&gt;;&lt;notify&gt;;&lt;persistent&gt;;&lt;timestamp&gt;;&lt;author&gt;;&lt;comment&gt; (7) | Note: Icinga 2 treats all comments as persistent. REMOVEHOSTACKNOWLEDGEMENT | ;&lt;host_name&gt; (1) | - DISABLEHOSTFLAPDETECTION | ;&lt;hostname&gt; (1) | - ENABLEHOSTFLAPDETECTION | ;&lt;hostname&gt; (1) | - DISABLESVCFLAPDETECTION | ;&lt;hostname&gt;;&lt;service_name&gt; (2) | - ENABLESVCFLAPDETECTION | ;&lt;hostname&gt;;&lt;service_name&gt; (2) | - ENABLEHOSTGROUPSVCCHECKS | ;&lt;hostgroupname&gt; (1) | - DISABLEHOSTGROUPSVCCHECKS | ;&lt;hostgroupname&gt; (1) | - ENABLESERVICEGROUPSVCCHECKS | ;&lt;servicegroupname&gt; (1) | - DISABLESERVICEGROUPSVCCHECKS | ;&lt;servicegroupname&gt; (1) | - ENABLEPASSIVEHOSTCHECKS | ;&lt;hostname&gt; (1) | - DISABLEPASSIVEHOSTCHECKS | ;&lt;hostname&gt; (1) | - ENABLEPASSIVESVCCHECKS | ;&lt;hostname&gt;;&lt;service_name&gt; (2) | - DISABLEPASSIVESVCCHECKS | ;&lt;hostname&gt;;&lt;service_name&gt; (2) | - ENABLESERVICEGROUPPASSIVESVCCHECKS | ;&lt;servicegroup_name&gt; (1) | - DISABLESERVICEGROUPPASSIVESVCCHECKS | ;&lt;servicegroup_name&gt; (1) | - ENABLEHOSTGROUPPASSIVESVCCHECKS | ;&lt;hostgroup_name&gt; (1) | - DISABLEHOSTGROUPPASSIVESVCCHECKS | ;&lt;hostgroup_name&gt; (1) | - PROCESSFILE | ;&lt;filename&gt;;&lt;delete&gt; (2) | - SCHEDULESVCDOWNTIME | ;&lt;hostname&gt;;&lt;servicename&gt;;&lt;starttime&gt;;&lt;endtime&gt;;&lt;fixed&gt;;&lt;trigger_id&gt;;&lt;duration&gt;;&lt;author&gt;;&lt;comment&gt; (9) | - DELSVCDOWNTIME | ;&lt;downtime_id&gt; (1) | - SCHEDULEANDPROPAGATEHOSTDOWNTIME | ;&lt;hostname&gt;;&lt;starttime&gt;;&lt;endtime&gt;;&lt;fixed&gt;;&lt;triggerid&gt;;&lt;duration&gt;;&lt;author&gt;;&lt;comment&gt; (8) | - SCHEDULEANDPROPAGATETRIGGEREDHOSTDOWNTIME | ;&lt;hostname&gt;;&lt;starttime&gt;;&lt;endtime&gt;;&lt;fixed&gt;;&lt;trigger_id&gt;;&lt;duration&gt;;&lt;author&gt;;&lt;comment&gt; (8) | - SCHEDULEHOSTDOWNTIME | ;&lt;hostname&gt;;&lt;starttime&gt;;&lt;endtime&gt;;&lt;fixed&gt;;&lt;triggerid&gt;;&lt;duration&gt;;&lt;author&gt;;&lt;comment&gt; (8) | - DELHOSTDOWNTIME | ;&lt;downtime_id&gt; (1) | - DELDOWNTIMEBYHOSTNAME | ;&lt;hostname&gt;[;&lt;servicename;&gt;[;&lt;starttime;&gt;[;&lt;commenttext;&gt;]]] (1) | - SCHEDULEHOSTSVCDOWNTIME | ;&lt;hostname&gt;;&lt;starttime&gt;;&lt;endtime&gt;;&lt;fixed&gt;;&lt;trigger_id&gt;;&lt;duration&gt;;&lt;author&gt;;&lt;comment&gt; (8) | - SCHEDULEHOSTGROUPHOSTDOWNTIME | ;&lt;hostgroupname&gt;;&lt;starttime&gt;;&lt;endtime&gt;;&lt;fixed&gt;;&lt;trigger_id&gt;;&lt;duration&gt;;&lt;author&gt;;&lt;comment&gt; (8) | - SCHEDULEHOSTGROUPSVCDOWNTIME | ;&lt;hostgroupname&gt;;&lt;starttime&gt;;&lt;endtime&gt;;&lt;fixed&gt;;&lt;trigger_id&gt;;&lt;duration&gt;;&lt;author&gt;;&lt;comment&gt; (8) | - SCHEDULESERVICEGROUPHOSTDOWNTIME | ;&lt;servicegroupname&gt;;&lt;starttime&gt;;&lt;endtime&gt;;&lt;fixed&gt;;&lt;trigger_id&gt;;&lt;duration&gt;;&lt;author&gt;;&lt;comment&gt; (8) | - SCHEDULESERVICEGROUPSVCDOWNTIME | ;&lt;servicegroupname&gt;;&lt;starttime&gt;;&lt;endtime&gt;;&lt;fixed&gt;;&lt;trigger_id&gt;;&lt;duration&gt;;&lt;author&gt;;&lt;comment&gt; (8) | - ADDHOSTCOMMENT | ;&lt;host_name&gt;;&lt;persistent&gt;;&lt;author&gt;;&lt;comment&gt; (4) | Note: Icinga 2 treats all comments as persistent. DELHOSTCOMMENT | ;&lt;comment_id&gt; (1) | - ADDSVCCOMMENT | ;&lt;hostname&gt;;&lt;servicename&gt;;&lt;persistent&gt;;&lt;author&gt;;&lt;comment&gt; (5) | Note: Icinga 2 treats all comments as

DELSVCCOMMENT | ;&lt;comment_id&gt; (1) | - DELALLHOSTCOMMENTS | ;&lt;hostname&gt; (1) | - DELALLSVCCOMMENTS | ;&lt;hostname&gt;;&lt;service_name&gt; (2) | - SENDCUSTOMHOSTNOTIFICATION | ;&lt;hostname&gt;;&lt;options&gt;;&lt;author&gt;;&lt;comment&gt; (4) | - SENDCUSTOMSVCNOTIFICATION | ;&lt;hostname&gt;;&lt;service_name&gt;;&lt;options&gt;;&lt;author&gt;;&lt;comment&gt; (5) | - DELAYHOSTNOTIFICATION | ;&lt;hostname&gt;;&lt;notificationtime&gt; (2) | - DELAYSVCNOTIFICATION | ;&lt;hostname&gt;;&lt;servicename&gt;;&lt;notification_time&gt; (3) | - ENABLEHOSTNOTIFICATIONS | ;&lt;host_name&gt; (1) | - DISABLEHOSTNOTIFICATIONS | ;&lt;host_name&gt; (1) | - ENABLESVCNOTIFICATIONS | ;&lt;hostname&gt;;&lt;servicename&gt; (2) | - DISABLESVCNOTIFICATIONS | ;&lt;hostname&gt;;&lt;servicename&gt; (2) | - ENABLEHOSTSVCNOTIFICATIONS | ;&lt;hostname&gt; (1) | - DISABLEHOSTSVCNOTIFICATIONS | ;&lt;hostname&gt; (1) | - DISABLEHOSTGROUPHOSTCHECKS | ;&lt;hostgroupname&gt; (1) | - DISABLEHOSTGROUPPASSIVEHOSTCHECKS | ;&lt;hostgroup_name&gt; (1) | - DISABLESERVICEGROUPHOSTCHECKS | ;&lt;servicegroupname&gt; (1) | - DISABLESERVICEGROUPPASSIVEHOSTCHECKS | ;&lt;servicegroup_name&gt; (1) | - ENABLEHOSTGROUPHOSTCHECKS | ;&lt;hostgroupname&gt; (1) | - ENABLEHOSTGROUPPASSIVEHOSTCHECKS | ;&lt;hostgroup_name&gt; (1) | - ENABLESERVICEGROUPHOSTCHECKS | ;&lt;servicegroupname&gt; (1) | - ENABLESERVICEGROUPPASSIVEHOSTCHECKS | ;&lt;servicegroup_name&gt; (1) | - ENABLE_NOTIFICATIONS | - | - DISABLE_NOTIFICATIONS | - | - ENABLEFLAPDETECTION | - | - DISABLEFLAPDETECTION | - | - ENABLEEVENTHANDLERS | - | - DISABLEEVENTHANDLERS | - | - ENABLEPERFORMANCEDATA | - | - DISABLEPERFORMANCEDATA | - | - STARTEXECUTINGHOST_CHECKS | - | - STOPEXECUTINGHOST_CHECKS | - | - STARTEXECUTINGSVC_CHECKS | - | - STOPEXECUTINGSVC_CHECKS | - | - CHANGENORMALSVCCHECKINTERVAL | ;&lt;hostname&gt;;&lt;servicename&gt;;&lt;check_interval&gt; (3) | - CHANGENORMALHOSTCHECKINTERVAL | ;&lt;hostname&gt;;&lt;checkinterval&gt; (2) | - CHANGERETRYSVCCHECKINTERVAL | ;&lt;hostname&gt;;&lt;servicename&gt;;&lt;check_interval&gt; (3) | - CHANGERETRYHOSTCHECKINTERVAL | ;&lt;hostname&gt;;&lt;checkinterval&gt; (2) | - ENABLEHOSTEVENTHANDLER | ;&lt;hostname&gt; (1) | - DISABLEHOSTEVENTHANDLER | ;&lt;hostname&gt; (1) | - ENABLESVCEVENTHANDLER | ;&lt;hostname&gt;;&lt;service_name&gt; (2) | - DISABLESVCEVENTHANDLER | ;&lt;hostname&gt;;&lt;service_name&gt; (2) | - CHANGEHOSTEVENTHANDLER | ;&lt;hostname&gt;;&lt;eventcommandname&gt; (2) | - CHANGESVCEVENTHANDLER | ;&lt;hostname&gt;;&lt;servicename&gt;;&lt;eventcommand_name&gt; (3) | - CHANGEHOSTCHECKCOMMAND | ;&lt;hostname&gt;;&lt;checkcommandname&gt; (2) | - CHANGESVCCHECKCOMMAND | ;&lt;hostname&gt;;&lt;servicename&gt;;&lt;checkcommand_name&gt; (3) | - CHANGEMAXHOSTCHECKATTEMPTS | ;&lt;hostname&gt;;&lt;checkattempts&gt; (2) | - CHANGEMAXSVCCHECKATTEMPTS | ;&lt;hostname&gt;;&lt;servicename&gt;;&lt;check_attempts&gt; (3) | - CHANGEHOSTCHECKTIMEPERIOD | ;&lt;hostname&gt;;&lt;timeperiod_name&gt; (2) | - CHANGESVCCHECKTIMEPERIOD | ;&lt;hostname&gt;;&lt;servicename&gt;;&lt;timeperiodname&gt; | - CHANGECUSTOMHOSTVAR | ;&lt;hostname&gt;;&lt;varname&gt;;&lt;varvalue&gt; (3) | - CHANGECUSTOMSVCVAR | ;&lt;hostname&gt;;&lt;servicename&gt;;&lt;varname&gt;;&lt;var_value&gt; (4) | - CHANGECUSTOMUSERVAR | ;&lt;username&gt;;&lt;varname&gt;;&lt;varvalue&gt; (3) | - CHANGECUSTOMCHECKCOMMANDVAR | ;&lt;checkcommandname&gt;;&lt;varname&gt;;&lt;var_value&gt; (3) | - CHANGECUSTOMEVENTCOMMANDVAR | ;&lt;eventcommandname&gt;;&lt;varname&gt;;&lt;var_value&gt; (3) | - CHANGECUSTOMNOTIFICATIONCOMMANDVAR | ;&lt;notificationcommandname&gt;;&lt;varname&gt;;&lt;var_value&gt; (3) | - ENABLEHOSTGROUPHOSTNOTIFICATIONS | ;&lt;hostgroupname&gt; (1) | - ENABLEHOSTGROUPSVCNOTIFICATIONS | ;&lt;hostgroupname&gt; (1) | - DISABLEHOSTGROUPHOSTNOTIFICATIONS | ;&lt;hostgroupname&gt; (1) | - DISABLEHOSTGROUPSVCNOTIFICATIONS | ;&lt;hostgroupname&gt; (1) | - ENABLESERVICEGROUPHOSTNOTIFICATIONS | ;&lt;servicegroupname&gt; (1) | - DISABLESERVICEGROUPHOSTNOTIFICATIONS | ;&lt;servicegroupname&gt; (1) | - ENABLESERVICEGROUPSVCNOTIFICATIONS | ;&lt;servicegroupname&gt; (1) | - DISABLESERVICEGROUPSVCNOTIFICATIONS | ;&lt;servicegroupname&gt; (1) | - By convention `CheckCommand`, `EventCommand`, and `NotificationCommand` objects are exported using a prefix. This is mandatory for unique objects in the command tables. Object | Prefix | CheckCommand | check\_ EventCommand | event\_ NotificationCommand | notification\_ There is a detailed documentation for the Icinga IDOUtils 1.x database schema available on

Icinga 2 specific extensions are shown below: New table: `endpointstatus` Table | Column | Type | Default | Description --|--|-||- endpoints | endpointobjectid | bigint | NULL | FK: objects table endpoints | identity | TEXT | NULL | endpoint name endpoints | node | TEXT | NULL | local node name endpoints | zoneobjectid | bigint | NULL | zone object where this endpoint is a member of New table: `endpointstatus` Table | Column | Type | Default | Description --|--|-||- endpointstatus | endpointobjectid | bigint | NULL | FK: objects table endpointstatus | identity | TEXT | NULL | endpoint name endpointstatus | node | TEXT | NULL | local node name endpointstatus | is_connected | smallint | 0 | update on endpoint connect/disconnect endpointstatus | zoneobjectid | bigint | NULL | zone object where this endpoint is a member of New tables: `zones` and `zonestatus`: Table | Column | Type | Default | Description --|--|-||- zones | zoneobjectid | bigint | NULL | FK: objects table zones | parentzoneobject_id | bigint | NULL | FK: zones table zones | is_global | smallint | 0 | zone is global New columns: Table | Column | Type | Default | Description --|-|-||- all status/history | endpointobjectid | bigint | NULL | FK: objects table servicestatus | check_source | TEXT | NULL | node name where check was executed hoststatus | check_source | TEXT | NULL | node name where check was executed statehistory | check_source | TEXT | NULL | node name where check was executed servicestatus | is_reachable | integer | NULL | object reachability hoststatus | is_reachable | integer | NULL | object reachability logentries | object_id | bigint | NULL | FK: objects table (service associated with column) {host,service}group | notes | TEXT | NULL | - {host,service}group | notes_url | TEXT | NULL | - {host,service}group | action_url | TEXT | NULL | - customvariable* | is_json | integer | 0 | Defines whether `varvalue` is a json encoded string from custom variables, or not servicestatus | original_attributes | TEXT | NULL | JSON encoded dictionary of original attributes if modified at runtime. hoststatus | original_attributes | TEXT | NULL | JSON encoded dictionary of original attributes if modified at runtime. Additional command custom variables populated from 'vars' dictionary. Additional global custom variables populated from 'Vars' constant (object_id is NULL). Icinga 2 specific extensions are shown below: New table: `endpoints`: Table | Column -|-- endpoints | name endpoints | identity endpoints | node endpoints | is_connected endpoints | zone New table: `zones`: Table | Column -|-- zone | name zone | endpoints zone | parent zone | global New columns: Table | Column -|-- hosts | is_reachable services | is_reachable hosts | cvisjson services | cvisjson contacts | cvisjson hosts | check_source services | check_source downtimes | triggers downtimes | trigger_time commands | customvariablenames commands | customvariablevalues commands | custom_variables commands | modified_attributes commands | modifiedattributeslist status | customvariablenames status | customvariablevalues status | custom_variables hosts | original_attributes services | original_attributes Command custom variables reflect the local 'vars' dictionary. Status custom variables reflect the global 'Vars' constant. Key | Type | Note -|--|- name | string | . display_name | string | . alias | string | same as display_name. address | string | . address6 | string | NEW in Icinga. check_command | string | . checkcommandexpanded | string | . event_handler | string | . notification_period | string | host with notifications: period. check_period | string | . notes | string | . notes_expanded | string | . notes_url | string | . notesurlexpanded | string | . action_url | string | . actionurlexpanded | string | . plugin_output | string | . perf_data | string | . icon_image | string | . iconimageexpanded | string | . iconimagealt | stirng | . statusmap_image | string | . longpluginoutput | string | . maxcheckattempts | int | . flapdetectionenabled | int | . check_freshness | int | . processperformancedata | int | . acceptpassivechecks | int | . eventhandlerenabled | int | . acknowledgement_type | int | Only 0 or 1. check_type | int | . last_state | int | . lasthardstate | int | . current_attempt | int | . last_notification | int | host with notifications: last notification. next_notification | int | host with notifications: next notification. next_check | int | . lasthardstate_change | int | . hasbeenchecked | int | . currentnotificationnumber | int | host with notifications: number. total_services | int | . checks_enabled | int | . notifications_enabled | int | . acknowledged | int | . state | int | . state_type | int | . nomorenotifications | int | notification_interval == 0 && volatile == false. last_check | int | . laststatechange | int |

lasttimeup | int | . lasttimedown | int | . lasttimeunreachable | int | . is_flapping | int | . scheduleddowntimedepth | int | . activechecksenabled | int | . modified_attributes | array | . modifiedattributeslist | array | . check_interval | double | . retry_interval | double | . notification_interval | double | host with notifications: smallest interval. lowflapthreshold | double | flapping_threshold highflapthreshold | double | flapping_threshold latency | double | . execution_time | double | . percentstatechange | double | flapping. innotificationperiod | int | host with notifications: matching period. incheckperiod | int | . contacts | array | host with notifications, users and user groups. downtimes | array | id. downtimeswithinfo | array | id+author+comment. comments | array | id. commentswithinfo | array | id+author+comment. commentswithextrainfo | array | id+author+comment+entrytype+entry_time. customvariablenames | array | . customvariablevalues | array | . custom_variables | array | Array of custom variable array pair. parents | array | Direct host parents. childs | array | Direct host children (Note: `childs` is inherited from the origin MK_Livestatus protocol). num_services | int | . worstservicestate | int | All services and their worst state. numservicesok | int | All services with Ok state. numserviceswarn | int | All services with Warning state. numservicescrit | int | All services with Critical state. numservicesunknown | int | All services with Unknown state. worstservicehard_state | int | All services and their worst hard state. numserviceshard_ok | int | All services in a hard state with Ok state. numserviceshard_warn | int | All services in a hard state with Warning state. numserviceshard_crit | int | All services in a hard state with Critical state. numserviceshard_unknown | int | All services in a hard state with Unknown state. hard_state | int | Returns OK if state is OK. Returns current state if now a hard state type. Returns last hard state otherwise. staleness | int | Indicates time since last check normalized onto the check_interval. groups | array | All hostgroups this host is a member of. contact_groups | array | All usergroups associated with this host through notifications. services | array | All services associated with this host. serviceswithstate | array | All services associated with this host with state and hasbeenchecked. serviceswithinfo | array | All services associated with this host with state, hasbeenchecked and output. Not supported: `initialstate`, `pendingflexdowntime`, `checkflappingrecoverynotification`, `isexecuting`, `checkoptions`, `obsessoverhost`, `firstnotificationdelay`, `x3d`, `y3d`, `z_3d`, `x2d`, `y2d`, `filename`, `pnpgraph_present`. Key | Type | Note -|--|- name | string | . alias | string | `display_name` attribute. notes | string | . notes_url | string | . action_url | string | . members | array | . memberswithstate | array | Host name and state. worsthoststate | int | Of all group members. num_hosts | int | In this group. numhostspending | int | . numhostsup | int | . numhostsdown | int | . numhostsunreach | int | . num_services | int | Number of services associated with hosts in this hostgroup. worstservicesstate | int | . numservicespending | int | . numservicesok | int | . numserviceswarn | int | . numservicescrit | int | . numservicesunknown | int | . worstservicehard_state | int |

numserviceshard_ok | int | . numserviceshard_warn | int | . numserviceshard_crit | int | . numserviceshard_unknown | int | . Key | Type | Note -|--|- description | string | . display_name | string | . alias | string | same as display_name. check_command | string | . checkcommandexpanded | string | . event_handler | string | . notification_period | string | host with notifications: period. check_period | string | . notes | string | . notes_expanded | string | . notes_url | string | . notesurlexpanded | string | . action_url | string | . actionurlexpanded | string | . plugin_output | string | . perf_data | string | . icon_image | string | . iconimageexpanded | string | . iconimagealt | stirng | . statusmap_image | string | . longpluginoutput | string | . maxcheckattempts | int | . flapdetectionenabled | int | . check_freshness | int | . processperformancedata | int | . acceptpassivechecks | int | . eventhandlerenabled | int | . acknowledgement_type | int | Only 0 or 1. check_type | int | . last_state | int | . lasthardstate | int | . current_attempt | int | . last_notification | int | service with notifications: last notification. next_notification | int | service with notifications: next notification. next_check | int | . lasthardstate_change | int | . hasbeenchecked | int | . currentnotificationnumber | int | service with notifications: number. checks_enabled | int | . notifications_enabled | int | . acknowledged | int | . state | int | . state_type | int | . nomorenotifications | int | notification_interval == 0 && volatile == false. last_check | int | . laststatechange | int | . lasttimeok | int | . lasttimewarning | int | . lasttimecritical | int | . lasttimeunknown | int | . is_flapping | int | . scheduleddowntimedepth | int | . activechecksenabled | int | . modified_attributes | array | . modifiedattributeslist | array | . check_interval | double | . retry_interval | double | . notification_interval | double | service with notifications: smallest interval. lowflapthreshold | double | flapping_threshold highflapthreshold | double | flapping_threshold latency | double | . execution_time | double | . percentstatechange | double | flapping. innotificationperiod | int | service with notifications: matching period. incheckperiod | int | . contacts | array | service with notifications, users and user groups. downtimes | array | id. downtimeswithinfo | array | id+author+comment. comments | array | id. commentswithinfo | array | id+author+comment. commentswithextrainfo | array | id+author+comment+entrytype+entry_time. customvariablenames | array | . customvariablevalues | array | . custom_variables | array | Array of custom variable array pair. hard_state | int | Returns OK if state is OK. Returns current state if now a hard state type. Returns last hard state otherwise. staleness | int | Indicates time since last check normalized onto the check_interval. groups | array | All hostgroups this host is a member of. contact_groups | array | All usergroups associated with this host through notifications. host_ | join | Prefix for attributes from implicit join with hosts table. Not supported: `initialstate`, `isexecuting`, `checkoptions`, `obsessoverservice`, `firstnotification_delay`, `pnpgraph_present`. Key | Type | Note -|--|- name | string |

alias | string | `display_name` attribute. notes | string | . notes_url | string | . action_url | string | . members | array | CSV format uses `host|service` syntax. memberswithstate | array | Host, service, hoststate, servicestate. worstservicestate | int | . num_services | int | . numservicespending | int | . numservicesok | int | . numserviceswarn | int | . numservicescrit | int | . numservicesunknown | int | . numserviceshard_ok | int | . numserviceshard_warn | int | . numserviceshard_crit | int | . numserviceshard_unknown | int | . Key | Type | Note -|--|- name | string | . alias | string | `display_name` attribute. email | string | . pager | string | . hostnotificationperiod | string | . servicenotificationperiod | string | . hostnotificationsenabled | int | . servicenotificationsenabled | int | . inhostnotification_period | int | . inservicenotification_period | int | . customvariablenames | array | . customvariablevalues | array | . custom_variables | array | Array of customvariable array pairs. modified_attributes | array | . modifiedattributeslist | array | . Not supported: `cansubmitcommands`. Key | Type | Note -|--|- name | string | . alias | string | `display_name` attribute. members | array | . Key | Type | Note -|--|- name | string | 3 types of commands in Icinga 2. line | string | . Key | Type | Note -|--|- connections | int | Since application start. connections_rate | double | . service_checks | int | Since application start. servicechecksrate | double | . host_checks | int | Since application start. hostchecksrate | double | . external_commands | int | Since application start. externalcommandsrate | double | . nagios_pid | string | Application PID. enable_notifications | int | . executeservicechecks | int | . acceptpassiveservice_checks | int | . executehostchecks | int | . acceptpassivehost_checks | int | . enableeventhandlers | int | . checkservicefreshness | int | . checkhostfreshness | int | . enableflapdetection | int | . processperformancedata | int | . checkexternalcommands | int | Always enabled. program_start | int | In seconds. lastcommandcheck | int | Always. interval_length | int | Compatibility mode: 60. num_hosts | int | . num_services | int | . program_version | string | 2.0. livestatusactiveconnections | string | . Not supported: `nebcallbacks`, `nebcallbacksrate`, `requests`, `requestsrate`, `forks`, `forks_rate`, `logmessages`, `logmessagesrate`, `livechecks`, `livechecksrate`, `livecheck_overflows`, `livecheckoverflowsrate`, `obsessoverservices`, `obsessoverhosts`, `lastlogrotation`, `externalcommandbufferslots`, `externalcommandbufferusage`, `externalcommandbuffer_max`, `cachedlogmessages`, `livestatusqueuedconnections`, `livestatus_threads`. Key | Type | Note -|--|- author | string | . comment | string | . id | int | legacy_id. entry_time | string | Seconds. type | int | 1=host, 2=service. is_service | int | . persistent | int | Always. source | string | Always external (1). entry_type | int | . expires | int | . expire_time | string | Seconds. service_ | join | Prefix for attributes from implicit join with services table. host_ | join | Prefix for attributes from implicit join with hosts table. Key | Type | Note -|--|- author | string | . comment | string | . id | int | legacy_id. entry_time | string | Seconds. type | int | 1=active, 0=pending. is_service | int |

start_time | string | Seconds. end_time | string | Seconds. fixed | int | 0=flexible, 1=fixed. duration | int | . triggeredby | int | legacyid. triggers | int | NEW in Icinga 2. trigger_time | string | NEW in Icinga 2. service_ | join | Prefix for attributes from implicit join with services table. host_ | join | Prefix for attributes from implicit join with hosts table. Key | Type | Note -|--|- name | string | . alias | string | `display_name` attribute. in | int | Current time is in timeperiod or not. Key | Type | Note -|--|- time | int | Time of log event (unix timestamp). lineno | int | Line number in `CompatLogger` log file. class | int | Log message class: 0=info, 1=state, 2=program, 3=notification, 4=passive, 5=command. message | string | Complete message line. type | string | Text before the colon `:`. options | string | Text after the colon `:`. comment | string | Comment if available. plugin_output | string | Check output if available. state | int | Host or service state. state_type | int | State type if available. attempt | int | Current check attempt. service_description | string | . host_name | string | . contact_name | string | . command_name | string | . currentservice | join | Prefix for attributes from implicit join with services table. currenthost | join | Prefix for attributes from implicit join with hosts table. currentcontact | join | Prefix for attributes from implicit join with contacts table. currentcommand | join | Prefix for attributes from implicit join with commands table. Key | Type | Note -|--|- time | int | Time of log event (unix timestamp). lineno | int | Line number in `CompatLogger` log file. from | int | Start timestamp (unix timestamp). until | int | End timestamp (unix timestamp). duration | int | until-from. durationpart | double | duration / querypart. state | int | State: 0=ok, 1=warn, 2=crit, 3=unknown, -1=notmonitored. host_down | int | Host associated with the service is down or not. in_downtime | int | Host/service is in downtime. inhostdowntime | int | Host associated with the service is in a downtime or not. is_flapping | int | Host/service is flapping. innotificationperiod | int | Host/service notification periods match or not. notification_period | string | Host/service notification period. host_name | string | . service_description | string | . log_output | string | Log file output for this state. duration_ok | int | until-from for OK state. durationpartok | double | . duration_warning | int | until-from for Warning state. durationpartwarning | double | . duration_critical | int | until-from for Critical state. durationpartcritical | double | . duration_unknown | int | until-from for Unknown state. durationpartunknown | double | . duration_unmonitored | int | until-from for Not-Monitored state. durationpartunmonitored | double | . currentservice | join | Prefix for attributes from implicit join with services table. currenthost | join | Prefix for attributes from implicit join with hosts table. Not supported: `debug_info`. All table attributes grouped with the table prefixed with `hostgroup_`. All table attributes grouped with the table prefixed with `servicegroup_`. All table attributes grouped with the table prefixed with `hostgroup_`.