Skip to content

Commit aaa21ed

Browse files
committed
feat: add statusiq
1 parent 5127184 commit aaa21ed

File tree

13 files changed

+1185
-0
lines changed

13 files changed

+1185
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Monitoring Plugins:
6565
* moodle-version
6666
* openvpn-version
6767
* scanrootkit
68+
* statusiq
6869
* whmcs-status
6970

7071

assets/icingaweb2-module-director/all-the-rest.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,6 +1969,12 @@
19691969
"entry_value": "Starface PBX",
19701970
"format": "string"
19711971
},
1972+
{
1973+
"allowed_roles": null,
1974+
"entry_name": "statusiq",
1975+
"entry_value": "StatusIQ",
1976+
"format": "string"
1977+
},
19721978
{
19731979
"allowed_roles": null,
19741980
"entry_name": "statuspal",
@@ -41959,6 +41965,58 @@
4195941965
},
4196041966
"uuid": "6594ddcf-656c-4f15-999b-a68c9032af26"
4196141967
},
41968+
"StatusIQ Service Set": {
41969+
"assign_filter": "\"statusiq\"=host.vars.tags",
41970+
"description": null,
41971+
"object_name": "StatusIQ Service Set",
41972+
"object_type": "template",
41973+
"services": {
41974+
"StatusIQ Services": {
41975+
"action_url": null,
41976+
"apply_for": null,
41977+
"assign_filter": null,
41978+
"check_command": null,
41979+
"check_interval": null,
41980+
"check_period": null,
41981+
"check_timeout": null,
41982+
"command_endpoint": null,
41983+
"disabled": false,
41984+
"display_name": null,
41985+
"enable_active_checks": null,
41986+
"enable_event_handler": null,
41987+
"enable_flapping": null,
41988+
"enable_notifications": null,
41989+
"enable_passive_checks": null,
41990+
"enable_perfdata": null,
41991+
"event_command": null,
41992+
"fields": [],
41993+
"flapping_threshold_high": null,
41994+
"flapping_threshold_low": null,
41995+
"groups": [],
41996+
"host": null,
41997+
"icon_image": null,
41998+
"icon_image_alt": null,
41999+
"imports": [
42000+
"tpl-service-statusiq"
42001+
],
42002+
"max_check_attempts": null,
42003+
"notes": null,
42004+
"notes_url": null,
42005+
"object_name": "StatusIQ Services",
42006+
"object_type": "object",
42007+
"retry_interval": null,
42008+
"service_set": null,
42009+
"template_choice": null,
42010+
"use_agent": null,
42011+
"use_var_overrides": null,
42012+
"uuid": "faf7c6de-194b-423f-9214-602462163a75",
42013+
"vars": {},
42014+
"volatile": null,
42015+
"zone": null
42016+
}
42017+
},
42018+
"uuid": "128abdbb-dd63-4ac4-9850-f109acacc185"
42019+
},
4196242020
"Statuspal Service Set": {
4196342021
"assign_filter": "\"statuspal\"=host.vars.tags",
4196442022
"description": null,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
null

check-plugins/statusiq/.windows

Whitespace-only changes.

check-plugins/statusiq/README.rst

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
Check statusiq
2+
===============
3+
4+
Overview
5+
--------
6+
7+
StatusIQ is a hosted status page provided by Site24x7. This check plugin retrieves the StatusIQ status page (must be rss-enabled) and returns a specific status - OK for "Operational" or "Informational" messages, WARN for "Under Maintenance", "Degraded Performance" and "Partial Outage", and CRIT for "Major Outage" messages. You only need to provide the URL to the StatusIQ page, for example "https://status.trustid.ch".
8+
9+
10+
Fact Sheet
11+
----------
12+
13+
.. csv-table::
14+
:widths: 30, 70
15+
16+
"Check Plugin Download", "https://github.com/Linuxfabrik/monitoring-plugins/tree/main/check-plugins/statusiq"
17+
"Check Interval Recommendation", "Once a minute"
18+
"Can be called without parameters", "Yes"
19+
"Compiled for", "Linux, Windows"
20+
"3rd Party Python modules", "``beautifulsoup``"
21+
22+
23+
Help
24+
----
25+
26+
.. code-block:: text
27+
28+
usage: statusiq [-h] [-V] [--always-ok] [--insecure] [--no-proxy]
29+
[--test TEST] [--timeout TIMEOUT] [--url URL]
30+
31+
StatusIQ is a hosted status page provided by Site24x7. This check plugin
32+
retrieves the StatusIQ status page (must be rss-enabled) and returns a
33+
specific status - OK for "Operational" or "Informational" messages, WARN for
34+
"Under Maintenance", "Degraded Performance" and "Partial Outage", and CRIT for
35+
"Major Outage" messages. You only need to provide the URL to the StatusIQ
36+
page, for example "https://status.trustid.ch".
37+
38+
options:
39+
-h, --help show this help message and exit
40+
-V, --version show program's version number and exit
41+
--always-ok Always returns OK.
42+
--insecure This option explicitly allows to perform "insecure" SSL
43+
connections. Default: False
44+
--no-proxy Do not use a proxy. Default: False
45+
--test TEST For unit tests. Needs "path-to-stdout-file,path-to-
46+
stderr-file,expected-retc".
47+
--timeout TIMEOUT Network timeout in seconds. Default: 8 (seconds)
48+
--url URL StatusIQ URL. Default: https://status.trustid.ch
49+
50+
51+
Usage Examples
52+
--------------
53+
54+
.. code-block:: bash
55+
56+
./statusiq --url=https://status.trustid.ch
57+
58+
Output:
59+
60+
.. code-block:: text
61+
62+
Everything is ok @ https://status.trustid.ch
63+
64+
Component Name ! Published ! State
65+
----------------------------------+---------------------------+-------
66+
AutoIdent - Operational ! 2025-03-05 08:00:00+01:00 ! [OK]
67+
TrustID API Service - Operational ! 2025-02-24 23:12:10+01:00 ! [OK]
68+
TrustID BO Service - Operational ! 2025-02-10 13:15:00+01:00 ! [OK]
69+
TrustID IDP Service - Operational ! 2025-02-10 13:15:00+01:00 ! [OK]
70+
TrustID SSE Service - Operational ! 2025-02-10 13:15:00+01:00 ! [OK]
71+
VideoIdent - Operational ! 2025-03-05 08:00:00+01:00 ! [OK]
72+
73+
.. code-block:: bash
74+
75+
./statusiq --url=https://status.kobv.de
76+
77+
Output:
78+
79+
.. code-block:: text
80+
81+
Major incidents @ https://status.kobv.de
82+
83+
Component Name ! Pub Date ! State
84+
--------------------------------+---------------------------------+------------
85+
GVI via SRU - Major Outage ! Thu, 06 Mar 2025 14:44:59 +0100 ! [CRITICAL]
86+
ALBERT - Operational ! Wed, 05 Mar 2025 20:54:24 +0100 ! [OK]
87+
B-TU Laubert - Operational ! Thu, 27 Feb 2025 14:48:15 +0100 ! [OK]
88+
FHP FHPKat+ - Operational ! Thu, 20 Feb 2025 18:43:16 +0100 ! [OK]
89+
Fernleihe - Operational ! Thu, 06 Mar 2025 15:46:05 +0100 ! [OK]
90+
K2 Portal - Operational ! Tue, 04 Mar 2025 11:15:00 +0100 ! [OK]
91+
OPUS Uni Würzburg - Operational ! Tue, 18 Feb 2025 02:49:47 +0100 ! [OK]
92+
Opus Uni Potsdam - Operational ! Fri, 14 Feb 2025 13:45:45 +0100 ! [OK]
93+
THW WILBERT - Operational ! Wed, 26 Feb 2025 14:15:32 +0100 ! [OK]
94+
95+
96+
States
97+
------
98+
99+
* WARN for "Under Maintenance", "Degraded Performance" and "Partial Outage" messages
100+
* CRIT for "Major Outage" messages
101+
102+
103+
Perfdata / Metrics
104+
------------------
105+
106+
There is no perfdata.
107+
108+
109+
Credits, License
110+
----------------
111+
112+
* Authors: `Linuxfabrik GmbH, Zurich <https://www.linuxfabrik.ch>`_
113+
* License: The Unlicense, see `LICENSE file <https://unlicense.org/>`_.

0 commit comments

Comments
 (0)