icinga-client 0.6.0

A library to talk to the Icinga API
Documentation
 {
        "__name": "example-host",
        "acknowledgement": 0.0,
        "acknowledgement_expiry": 0.0,
        "action_url": "",
        "active": true,
        "address": "example-host.de",
        "address6": "",
        "check_attempt": 1.0,
        "check_command": "hostalive",
        "check_interval": 60.0,
        "check_period": "",
        "check_timeout": null,
        "command_endpoint": "",
        "display_name": "example-host",
        "downtime_depth": 0.0,
        "enable_active_checks": true,
        "enable_event_handler": true,
        "enable_flapping": false,
        "enable_notifications": true,
        "enable_passive_checks": true,
        "enable_perfdata": true,
        "event_command": "",
        "flapping": false,
        "flapping_current": 0.0,
        "flapping_last_change": 0.0,
        "flapping_threshold": 0.0,
        "flapping_threshold_high": 30.0,
        "flapping_threshold_low": 25.0,
        "force_next_check": false,
        "force_next_notification": false,
        "groups": [
          "linux-servers"
        ],
        "ha_mode": 0.0,
        "handled": false,
        "icon_image": "",
        "icon_image_alt": "",
        "last_check": 1584180320.814405,
        "last_check_result": {
          "active": true,
          "check_source": "homeboy.fritz.box",
          "command": [
            "/usr/lib/nagios/plugins/check_ping",
            "-H",
            "example-host.de",
            "-c",
            "5000,100%",
            "-w",
            "3000,80%"
          ],
          "execution_end": 1584180320.813923,
          "execution_start": 1584180316.70193,
          "exit_status": 0.0,
          "output": "PING OK - Packet loss = 0%, RTA = 23.24 ms",
          "performance_data": [
            "rta=23.236000ms;3000.000000;5000.000000;0.000000",
            "pl=0%;80;100;0"
          ],
          "schedule_end": 1584180320.814405,
          "schedule_start": 1584180316.696391,
          "state": 0.0,
          "ttl": 0.0,
          "type": "CheckResult",
          "vars_after": {
            "attempt": 1.0,
            "reachable": true,
            "state": 0.0,
            "state_type": 1.0
          },
          "vars_before": {
            "attempt": 1.0,
            "reachable": true,
            "state": 0.0,
            "state_type": 1.0
          }
        },
        "last_hard_state": 0.0,
        "last_hard_state_change": 1584154326.317929,
        "last_reachable": true,
        "last_state": 0.0,
        "last_state_change": 1584154326.317929,
        "last_state_down": 1584154292.773004,
        "last_state_type": 1.0,
        "last_state_unreachable": 0.0,
        "last_state_up": 1584180320.814572,
        "max_check_attempts": 3.0,
        "name": "example-host",
        "next_check": 1584180380.234708,
        "notes": "",
        "notes_url": "",
        "original_attributes": null,
        "package": "_etc",
        "paused": false,
        "previous_state_change": 1584154326.317929,
        "problem": false,
        "retry_interval": 30.0,
        "severity": 8.0,
        "source_location": {
          "first_column": 1.0,
          "first_line": 47.0,
          "last_column": 33.0,
          "last_line": 47.0,
          "path": "/etc/icinga2/conf.d/hosts.conf"
        },
        "state": 0.0,
        "state_type": 1.0,
        "templates": [
          "example-host",
          "generic-host"
        ],
        "type": "Host",
        "vars": {
          "disks": {
            "disk": {},
            "disk /": {
              "disk_partitions": "/"
            }
          },
          "http_vhosts": {
            "http": {
              "http_ssl": true,
              "http_uri": "/"
            }
          },
          "notification": {
            "mail": {
              "groups": [
                "icingaadmins"
              ]
            }
          },
          "os": "Linux"
        },
        "version": 0.0,
        "volatile": false,
        "zone": ""
      }