icinga

Icinga2 API client in Go
git clone https://git.olowe.co/icinga
Log | Files | Refs | README | LICENSE

9p.io!http (4875B)


      1 {
      2     "results": [
      3         {
      4             "attrs": {
      5                 "__name": "9p.io!http",
      6                 "acknowledgement": 1,
      7                 "acknowledgement_expiry": 0,
      8                 "acknowledgement_last_change": 0,
      9                 "action_url": "",
     10                 "active": true,
     11                 "check_attempt": 1,
     12                 "check_command": "http",
     13                 "check_interval": 60,
     14                 "check_period": "",
     15                 "check_timeout": null,
     16                 "command_endpoint": "",
     17                 "display_name": "http",
     18                 "downtime_depth": 0,
     19                 "enable_active_checks": true,
     20                 "enable_event_handler": true,
     21                 "enable_flapping": false,
     22                 "enable_notifications": true,
     23                 "enable_passive_checks": true,
     24                 "enable_perfdata": true,
     25                 "event_command": "",
     26                 "executions": null,
     27                 "flapping": false,
     28                 "flapping_current": 0,
     29                 "flapping_ignore_states": null,
     30                 "flapping_last_change": 1642495283.418991,
     31                 "flapping_threshold": 0,
     32                 "flapping_threshold_high": 30,
     33                 "flapping_threshold_low": 25,
     34                 "force_next_check": false,
     35                 "force_next_notification": false,
     36                 "groups": [],
     37                 "ha_mode": 0,
     38                 "handled": true,
     39                 "host_name": "9p.io",
     40                 "icon_image": "",
     41                 "icon_image_alt": "",
     42                 "last_check": 1642496528.415804,
     43                 "last_check_result": {
     44                     "active": true,
     45                     "check_source": "alpine.olowe.co",
     46                     "command": [
     47                         "/usr/lib/monitoring-plugins/check_http",
     48                         "-I",
     49                         "9p.io"
     50                     ],
     51                     "execution_end": 1642496528.415702,
     52                     "execution_start": 1642496527.310383,
     53                     "exit_status": 0,
     54                     "output": "HTTP OK: HTTP/1.1 200 OK - 1714 bytes in 1.083 second response time ",
     55                     "performance_data": [
     56                         "time=1.082636s;;;0.000000;10.000000",
     57                         "size=1714B;;;0"
     58                     ],
     59                     "schedule_end": 1642496528.415804,
     60                     "schedule_start": 1642496527.016395,
     61                     "scheduling_source": "alpine.olowe.co",
     62                     "state": 0,
     63                     "ttl": 0,
     64                     "type": "CheckResult",
     65                     "vars_after": {
     66                         "attempt": 1,
     67                         "reachable": false,
     68                         "state": 0,
     69                         "state_type": 1
     70                     },
     71                     "vars_before": {
     72                         "attempt": 1,
     73                         "reachable": false,
     74                         "state": 0,
     75                         "state_type": 1
     76                     }
     77                 },
     78                 "last_hard_state": 0,
     79                 "last_hard_state_change": 1642494988.994212,
     80                 "last_reachable": false,
     81                 "last_state": 0,
     82                 "last_state_change": 1642494988.994212,
     83                 "last_state_critical": 1642494810.489733,
     84                 "last_state_ok": 1642496528.415702,
     85                 "last_state_type": 1,
     86                 "last_state_unknown": 1642494869.390854,
     87                 "last_state_unreachable": 1642496528.415702,
     88                 "last_state_warning": 1642494987.196548,
     89                 "max_check_attempts": 5,
     90                 "name": "http",
     91                 "next_check": 1642496587.835849,
     92                 "next_update": 1642496650.634463,
     93                 "notes": "",
     94                 "notes_url": "",
     95                 "original_attributes": null,
     96                 "package": "_etc",
     97                 "paused": false,
     98                 "previous_state_change": 1642494988.994212,
     99                 "problem": false,
    100                 "retry_interval": 30,
    101                 "severity": 0,
    102                 "source_location": {
    103                     "first_column": 1,
    104                     "first_line": 55,
    105                     "last_column": 20,
    106                     "last_line": 55,
    107                     "path": "/etc/icinga2/conf.d/ye.conf"
    108                 },
    109                 "state": 0,
    110                 "state_type": 1,
    111                 "templates": [
    112                     "http",
    113                     "generic-service"
    114                 ],
    115                 "type": "Service",
    116                 "vars": null,
    117                 "version": 0,
    118                 "volatile": false,
    119                 "zone": ""
    120             },
    121             "joins": {},
    122             "meta": {},
    123             "name": "9p.io!http",
    124             "type": "Service"
    125         }
    126     ]
    127 }