Skip to content

Commit dbc8f4e

Browse files
committed
feat: add uptimerobot
1 parent 774a39e commit dbc8f4e

File tree

18 files changed

+28684
-1
lines changed

18 files changed

+28684
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Monitoring Plugins:
6767
* openvpn-version
6868
* scanrootkit
6969
* statusiq
70+
* uptimerobot
7071
* whmcs-status
7172

7273

@@ -90,7 +91,7 @@ Icinga Director:
9091
Monitoring Plugins:
9192

9293
* about-me: expanded RAM isn't updating ([#757](https://github.com/Linuxfabrik/monitoring-plugins/issues/757))
93-
* apache-httpd.status: failure when mod_md is enabled ([#783](https://github.com/Linuxfabrik/monitoring-plugins/issues/783))
94+
* apache-httpd-status: failure when mod_md is enabled ([#783](https://github.com/Linuxfabrik/monitoring-plugins/issues/783))
9495
* docker-stats: ValueError: could not convert string to float: '0B' ([#776](https://github.com/Linuxfabrik/monitoring-plugins/issues/776))
9596
* redfish-sel: UnboundLocalError: local variable 'sel_path' referenced before assignment ([#779](https://github.com/Linuxfabrik/monitoring-plugins/issues/779))
9697
* whmcs-status: handle null correctly in whmcs api response ([#820](https://github.com/Linuxfabrik/monitoring-plugins/pull/820))

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

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2053,6 +2053,12 @@
20532053
"entry_value": "OS - Ubuntu 24",
20542054
"format": "string"
20552055
},
2056+
{
2057+
"allowed_roles": null,
2058+
"entry_name": "uptimerobot",
2059+
"entry_value": "UptimeRobot",
2060+
"format": "string"
2061+
},
20562062
{
20572063
"allowed_roles": null,
20582064
"entry_name": "veeam-backup-replication-windows",
@@ -42734,6 +42740,58 @@
4273442740
},
4273542741
"uuid": "79becf32-effd-46fd-a148-9c7edd2ba613"
4273642742
},
42743+
"UptimeRobot Service Set": {
42744+
"assign_filter": "\"uptimerobot\"=host.vars.tags",
42745+
"description": null,
42746+
"object_name": "UptimeRobot Service Set",
42747+
"object_type": "template",
42748+
"services": {
42749+
"UptimeRobot Status Page": {
42750+
"action_url": null,
42751+
"apply_for": null,
42752+
"assign_filter": null,
42753+
"check_command": null,
42754+
"check_interval": null,
42755+
"check_period": null,
42756+
"check_timeout": null,
42757+
"command_endpoint": null,
42758+
"disabled": false,
42759+
"display_name": null,
42760+
"enable_active_checks": null,
42761+
"enable_event_handler": null,
42762+
"enable_flapping": null,
42763+
"enable_notifications": null,
42764+
"enable_passive_checks": null,
42765+
"enable_perfdata": null,
42766+
"event_command": null,
42767+
"fields": [],
42768+
"flapping_threshold_high": null,
42769+
"flapping_threshold_low": null,
42770+
"groups": [],
42771+
"host": null,
42772+
"icon_image": null,
42773+
"icon_image_alt": null,
42774+
"imports": [
42775+
"tpl-service-uptimerobot"
42776+
],
42777+
"max_check_attempts": null,
42778+
"notes": null,
42779+
"notes_url": null,
42780+
"object_name": "UptimeRobot Status Page",
42781+
"object_type": "object",
42782+
"retry_interval": null,
42783+
"service_set": null,
42784+
"template_choice": null,
42785+
"use_agent": null,
42786+
"use_var_overrides": null,
42787+
"uuid": "983cfc79-a9e3-4a1a-991d-cbf17a6d9e46",
42788+
"vars": {},
42789+
"volatile": null,
42790+
"zone": null
42791+
}
42792+
},
42793+
"uuid": "285e272a-0900-4ede-84c9-5bd1edf7b7f7"
42794+
},
4273742795
"Veeam Backup & Replication Service Set (Windows)": {
4273842796
"assign_filter": "\"veeam-backup-replication-windows\"=host.vars.tags",
4273942797
"description": null,

check-plugins/uptimerobot/.windows

Whitespace-only changes.
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
Check uptimerobot
2+
=================
3+
4+
Overview
5+
--------
6+
7+
Alerts on all monitors in down or unknown status on a given UptimeRobot status page.
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/uptimerobot"
17+
"Check Interval Recommendation", "Once a minute"
18+
"Can be called without parameters", "Yes"
19+
"Compiled for", "Linux, Windows"
20+
21+
22+
Help
23+
----
24+
25+
.. code-block:: text
26+
27+
usage: uptimerobot [-h] [-V] [--always-ok] [--insecure] [--no-proxy]
28+
[--test TEST] [--timeout TIMEOUT] [--url URL]
29+
30+
Retrieves the HIN status page from https://support.hin.ch/de/ and searches for
31+
out-of-service messages. Unfortunately there is no machine-readable version
32+
yet, so the plugin has to rely on the WordPress-generated HTML content.
33+
34+
options:
35+
-h, --help show this help message and exit
36+
-V, --version show program's version number and exit
37+
--always-ok Always returns OK.
38+
--insecure This option explicitly allows to perform "insecure" SSL
39+
connections. Default: False
40+
--no-proxy Do not use a proxy. Default: False
41+
--test TEST For unit tests. Needs "path-to-stdout-file,path-to-
42+
stderr-file,expected-retc".
43+
--timeout TIMEOUT Network timeout in seconds. Default: 8 (seconds)
44+
--url URL HIN Status Page URL. Default: https://support.hin.ch/de/
45+
46+
47+
Usage Examples
48+
--------------
49+
50+
.. code-block:: bash
51+
52+
./uptimerobot
53+
54+
Output:
55+
56+
.. code-block:: text
57+
58+
Incidents: Störung beim Einlesen von Krankenkassenkarten. See https://support.hin.ch/de/ for details.
59+
60+
61+
States
62+
------
63+
64+
* WARN if out-of-service messages are found
65+
66+
67+
Perfdata / Metrics
68+
------------------
69+
70+
.. csv-table::
71+
:widths: 25, 15, 60
72+
:header-rows: 1
73+
74+
Name, Type, Description
75+
cnt_incidents, Number, "``1`` if out-of-service messages are found, ``0`` otherwise"
76+
77+
78+
Credits, License
79+
----------------
80+
81+
* Authors: `Linuxfabrik GmbH, Zurich <https://www.linuxfabrik.ch>`_
82+
* License: The Unlicense, see `LICENSE file <https://unlicense.org/>`_.

0 commit comments

Comments
 (0)