istamon 0.1.0

Simple Desktop application and cli to display the service and host states of an Icinga instance.
{
    "results": [
      {
        "attrs": {
          "__name": "example-host!example-service",
          "acknowledgement": 0.0,
          "acknowledgement_expiry": 0.0,
          "action_url": "",
          "active": true,
          "check_attempt": 1.0,
          "check_command": "by_ssh",
          "check_interval": 60.0,
          "check_period": "",
          "check_timeout": null,
          "command_endpoint": "",
          "display_name": "check-example-service",
          "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": [],
          "ha_mode": 0.0,
          "handled": false,
          "host_name": "example-host",
          "icon_image": "",
          "icon_image_alt": "",
          "last_check": 1584184342.288472,
          "last_check_result": {
            "active": true,
            "check_source": "example_source",
            "command": [
              "/usr/lib/nagios/plugins/check_by_ssh",
              "an-argument"
            ],
            "execution_end": 1584184342.287692,
            "execution_start": 1584184341.001855,
            "exit_status": 0.0,
            "output": "OK: nothing wrong",
            "performance_data": [
              "Packages=0;1;;0"
            ],
            "schedule_end": 1584184342.288472,
            "schedule_start": 1584184340.986429,
            "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": 1583917754.192787,
          "last_reachable": true,
          "last_state": 0.0,
          "last_state_change": 1583917754.192787,
          "last_state_critical": 0.0,
          "last_state_ok": 1584184342.288635,
          "last_state_type": 1.0,
          "last_state_unknown": 1583860703.96808,
          "last_state_unreachable": 0.0,
          "last_state_warning": 1583917693.623402,
          "max_check_attempts": 5.0,
          "name": "check-example-service",
          "next_check": 1584184401.578774,
          "notes": "",
          "notes_url": "",
          "original_attributes": null,
          "package": "_etc",
          "paused": false,
          "previous_state_change": 1583917754.192787,
          "problem": false,
          "retry_interval": 30.0,
          "severity": 8.0,
          "source_location": {
            "first_column": 1.0,
            "first_line": 84.0,
            "last_column": 49.0,
            "last_line": 84.0,
            "path": "/etc/icinga2/conf.d/hosts.conf"
          },
          "state": 0.0,
          "state_type": 1.0,
          "templates": [
            "check-service",
            "generic-service"
          ],
          "type": "Service",
          "vars": {
            "by_ssh_command": [
              "/usr/lib/nagios/plugins/check_something",
              "check_arg"
            ],
            "by_ssh_identity": "/etc/icinga2/keys/id",
            "by_ssh_logname": "icinga"
          },
          "version": 0.0,
          "volatile": false,
          "zone": ""
        },
        "joins": {},
        "meta": {},
        "name": "example-host!check-example-service",
        "type": "Service"
      }
    ]
  }