diff --git a/modules/icinga2/testdata/api/status-example.txt b/modules/icinga2/testdata/api/status-example.txt index 3b84cda..8080cd3 100644 --- a/modules/icinga2/testdata/api/status-example.txt +++ b/modules/icinga2/testdata/api/status-example.txt @@ -1 +1 @@ -{"results":[{"name":"ApiListener","perfdata":[{"counter":false,"crit":null,"label":"api_num_conn_endpoints","max":null,"min":null,"type":"PerfdataValue","unit":"","value":1,"warn":null},{"counter":false,"crit":null,"label":"api_num_endpoints","max":null,"min":null,"type":"PerfdataValue","unit":"","value":1,"warn":null},{"counter":false,"crit":null,"label":"api_num_http_clients","max":null,"min":null,"type":"PerfdataValue","unit":"","value":1,"warn":null},{"counter":false,"crit":null,"label":"api_num_json_rpc_anonymous_clients","max":null,"min":null,"type":"PerfdataValue","unit":"","value":0,"warn":null},{"counter":false,"crit":null,"label":"api_num_json_rpc_relay_queue_item_rate","max":null,"min":null,"type":"PerfdataValue","unit":"","value":0.3,"warn":null},{"counter":false,"crit":null,"label":"api_num_json_rpc_relay_queue_items","max":null,"min":null,"type":"PerfdataValue","unit":"","value":0,"warn":null},{"counter":false,"crit":null,"label":"api_num_json_rpc_sync_queue_item_rate","max":null,"min":null,"type":"PerfdataValue","unit":"","value":0,"warn":null},{"counter":false,"crit":null,"label":"api_num_json_rpc_sync_queue_items","max":null,"min":null,"type":"PerfdataValue","unit":"","value":0,"warn":null},{"counter":false,"crit":null,"label":"api_num_json_rpc_work_queue_item_rate","max":null,"min":null,"type":"PerfdataValue","unit":"","value":0.08333333333333333,"warn":null},{"counter":false,"crit":null,"label":"api_num_not_conn_endpoints","max":null,"min":null,"type":"PerfdataValue","unit":"","value":0,"warn":null}],"status":{"api":{"conn_endpoints":["tbauriedel-win-icinga"],"http":{"clients":1},"identity":"tbauriedel-icinga","json_rpc":{"anonymous_clients":0,"relay_queue_item_rate":0.3,"relay_queue_items":0,"sync_queue_item_rate":0,"sync_queue_items":0,"work_queue_item_rate":0.08333333333333333},"not_conn_endpoints":[],"num_conn_endpoints":1,"num_endpoints":1,"num_not_conn_endpoints":0,"zones":{"main":{"client_log_lag":0,"connected":true,"endpoints":["tbauriedel-icinga"],"parent_zone":""},"tbauriedel-win-icinga":{"client_log_lag":0,"connected":true,"endpoints":["tbauriedel-win-icinga"],"parent_zone":"main"}}}}},{"name":"CIB","perfdata":[],"status":{"active_host_checks":0.03333333333333333,"active_host_checks_15min":16,"active_host_checks_1min":2,"active_host_checks_5min":6,"active_service_checks":0.03333333333333333,"active_service_checks_15min":37,"active_service_checks_1min":2,"active_service_checks_5min":12,"avg_execution_time":0.8716000080108642,"avg_latency":0,"current_concurrent_checks":0,"current_pending_callbacks":0,"max_execution_time":1.5779998302459717,"max_latency":0,"min_execution_time":0,"min_latency":0,"num_hosts_acknowledged":0,"num_hosts_down":0,"num_hosts_flapping":0,"num_hosts_handled":0,"num_hosts_in_downtime":0,"num_hosts_pending":0,"num_hosts_problem":0,"num_hosts_unreachable":0,"num_hosts_up":2,"num_services_acknowledged":0,"num_services_critical":0,"num_services_flapping":0,"num_services_handled":0,"num_services_in_downtime":0,"num_services_ok":4,"num_services_pending":0,"num_services_problem":1,"num_services_unknown":0,"num_services_unreachable":0,"num_services_warning":1,"passive_host_checks":0,"passive_host_checks_15min":0,"passive_host_checks_1min":0,"passive_host_checks_5min":0,"passive_service_checks":0,"passive_service_checks_15min":0,"passive_service_checks_1min":0,"passive_service_checks_5min":0,"remote_check_queue":0,"uptime":94541.84461402893}},{"name":"CheckerComponent","perfdata":[{"counter":false,"crit":null,"label":"checkercomponent_checker_idle","max":null,"min":null,"type":"PerfdataValue","unit":"","value":7,"warn":null},{"counter":false,"crit":null,"label":"checkercomponent_checker_pending","max":null,"min":null,"type":"PerfdataValue","unit":"","value":0,"warn":null}],"status":{"checkercomponent":{"checker":{"idle":7,"pending":0}}}},{"name":"CompatLogger","perfdata":[],"status":{"compatlogger":{}}},{"name":"ElasticsearchWriter","perfdata":[],"status":{"elasticsearchwriter":{}}},{"name":"ExternalCommandListener","perfdata":[],"status":{"externalcommandlistener":{}}},{"name":"FileLogger","perfdata":[],"status":{"filelogger":{}}},{"name":"GelfWriter","perfdata":[],"status":{"gelfwriter":{}}},{"name":"GraphiteWriter","perfdata":[],"status":{"graphitewriter":{}}},{"name":"IcingaApplication","perfdata":[],"status":{"icingaapplication":{"app":{"enable_event_handlers":true,"enable_flapping":true,"enable_host_checks":true,"enable_notifications":true,"enable_perfdata":true,"enable_service_checks":true,"environment":"","node_name":"tbauriedel-icinga","pid":65872,"program_start":1703059214.645369,"version":"r2.14.0-1"}}}},{"name":"IdoMysqlConnection","perfdata":[],"status":{"idomysqlconnection":{}}},{"name":"IdoPgsqlConnection","perfdata":[],"status":{"idopgsqlconnection":{}}},{"name":"Influxdb2Writer","perfdata":[],"status":{"influxdb2writer":{}}},{"name":"InfluxdbWriter","perfdata":[],"status":{"influxdbwriter":{}}},{"name":"JournaldLogger","perfdata":[],"status":{"journaldlogger":{}}},{"name":"LivestatusListener","perfdata":[],"status":{"livestatuslistener":{}}},{"name":"NotificationComponent","perfdata":[],"status":{"notificationcomponent":{}}},{"name":"OpenTsdbWriter","perfdata":[],"status":{"opentsdbwriter":{}}},{"name":"PerfdataWriter","perfdata":[],"status":{"perfdatawriter":{}}},{"name":"SyslogLogger","perfdata":[],"status":{"sysloglogger":{}}}]}ubuntu@tbauriedel-icinga:~$ \ No newline at end of file +{"results":[{"name":"ApiListener","perfdata":[{"counter":false,"crit":null,"label":"api_num_conn_endpoints","max":null,"min":null,"type":"PerfdataValue","unit":"","value":1,"warn":null},{"counter":false,"crit":null,"label":"api_num_endpoints","max":null,"min":null,"type":"PerfdataValue","unit":"","value":1,"warn":null},{"counter":false,"crit":null,"label":"api_num_http_clients","max":null,"min":null,"type":"PerfdataValue","unit":"","value":1,"warn":null},{"counter":false,"crit":null,"label":"api_num_json_rpc_anonymous_clients","max":null,"min":null,"type":"PerfdataValue","unit":"","value":0,"warn":null},{"counter":false,"crit":null,"label":"api_num_json_rpc_relay_queue_item_rate","max":null,"min":null,"type":"PerfdataValue","unit":"","value":0.3,"warn":null},{"counter":false,"crit":null,"label":"api_num_json_rpc_relay_queue_items","max":null,"min":null,"type":"PerfdataValue","unit":"","value":0,"warn":null},{"counter":false,"crit":null,"label":"api_num_json_rpc_sync_queue_item_rate","max":null,"min":null,"type":"PerfdataValue","unit":"","value":0,"warn":null},{"counter":false,"crit":null,"label":"api_num_json_rpc_sync_queue_items","max":null,"min":null,"type":"PerfdataValue","unit":"","value":0,"warn":null},{"counter":false,"crit":null,"label":"api_num_json_rpc_work_queue_item_rate","max":null,"min":null,"type":"PerfdataValue","unit":"","value":0.08333333333333333,"warn":null},{"counter":false,"crit":null,"label":"api_num_not_conn_endpoints","max":null,"min":null,"type":"PerfdataValue","unit":"","value":0,"warn":null}],"status":{"api":{"conn_endpoints":["tbauriedel-win-icinga"],"http":{"clients":1},"identity":"tbauriedel-icinga","json_rpc":{"anonymous_clients":0,"relay_queue_item_rate":0.3,"relay_queue_items":0,"sync_queue_item_rate":0,"sync_queue_items":0,"work_queue_item_rate":0.08333333333333333},"not_conn_endpoints":[],"num_conn_endpoints":1,"num_endpoints":1,"num_not_conn_endpoints":0,"zones":{"main":{"client_log_lag":0,"connected":true,"endpoints":["tbauriedel-icinga"],"parent_zone":""},"tbauriedel-win-icinga":{"client_log_lag":0,"connected":true,"endpoints":["tbauriedel-win-icinga"],"parent_zone":"main"}}}}},{"name":"CIB","perfdata":[],"status":{"active_host_checks":0.03333333333333333,"active_host_checks_15min":16,"active_host_checks_1min":2,"active_host_checks_5min":6,"active_service_checks":0.03333333333333333,"active_service_checks_15min":37,"active_service_checks_1min":2,"active_service_checks_5min":12,"avg_execution_time":0.8716000080108642,"avg_latency":0,"current_concurrent_checks":0,"current_pending_callbacks":0,"max_execution_time":1.5779998302459717,"max_latency":0,"min_execution_time":0,"min_latency":0,"num_hosts_acknowledged":0,"num_hosts_down":0,"num_hosts_flapping":0,"num_hosts_handled":0,"num_hosts_in_downtime":0,"num_hosts_pending":0,"num_hosts_problem":0,"num_hosts_unreachable":0,"num_hosts_up":2,"num_services_acknowledged":0,"num_services_critical":0,"num_services_flapping":0,"num_services_handled":0,"num_services_in_downtime":0,"num_services_ok":4,"num_services_pending":0,"num_services_problem":1,"num_services_unknown":0,"num_services_unreachable":0,"num_services_warning":1,"passive_host_checks":0,"passive_host_checks_15min":0,"passive_host_checks_1min":0,"passive_host_checks_5min":0,"passive_service_checks":0,"passive_service_checks_15min":0,"passive_service_checks_1min":0,"passive_service_checks_5min":0,"remote_check_queue":0,"uptime":94541.84461402893}},{"name":"CheckerComponent","perfdata":[{"counter":false,"crit":null,"label":"checkercomponent_checker_idle","max":null,"min":null,"type":"PerfdataValue","unit":"","value":7,"warn":null},{"counter":false,"crit":null,"label":"checkercomponent_checker_pending","max":null,"min":null,"type":"PerfdataValue","unit":"","value":0,"warn":null}],"status":{"checkercomponent":{"checker":{"idle":7,"pending":0}}}},{"name":"CompatLogger","perfdata":[],"status":{"compatlogger":{}}},{"name":"ElasticsearchWriter","perfdata":[],"status":{"elasticsearchwriter":{}}},{"name":"ExternalCommandListener","perfdata":[],"status":{"externalcommandlistener":{}}},{"name":"FileLogger","perfdata":[],"status":{"filelogger":{}}},{"name":"GelfWriter","perfdata":[],"status":{"gelfwriter":{}}},{"name":"GraphiteWriter","perfdata":[],"status":{"graphitewriter":{}}},{"name":"IcingaApplication","perfdata":[],"status":{"icingaapplication":{"app":{"enable_event_handlers":true,"enable_flapping":true,"enable_host_checks":true,"enable_notifications":true,"enable_perfdata":true,"enable_service_checks":true,"environment":"","node_name":"tbauriedel-icinga","pid":65872,"program_start":1703059214.645369,"version":"r2.14.0-1"}}}},{"name":"IdoMysqlConnection","perfdata":[],"status":{"idomysqlconnection":{}}},{"name":"IdoPgsqlConnection","perfdata":[],"status":{"idopgsqlconnection":{}}},{"name":"Influxdb2Writer","perfdata":[],"status":{"influxdb2writer":{}}},{"name":"InfluxdbWriter","perfdata":[],"status":{"influxdbwriter":{}}},{"name":"JournaldLogger","perfdata":[],"status":{"journaldlogger":{}}},{"name":"LivestatusListener","perfdata":[],"status":{"livestatuslistener":{}}},{"name":"NotificationComponent","perfdata":[],"status":{"notificationcomponent":{}}},{"name":"OpenTsdbWriter","perfdata":[],"status":{"opentsdbwriter":{}}},{"name":"PerfdataWriter","perfdata":[],"status":{"perfdatawriter":{}}},{"name":"SyslogLogger","perfdata":[],"status":{"sysloglogger":{}}}]} \ No newline at end of file