Hi,
I have an appliance with a REST API which are returning a number of things, including the date and time of the last cluster sync.
I need to check that this date and time does not get more than one hour behind the current date and time.
The output is as follows:
{ "name": "XXXX-CPPM01", "local_server": true, "server_uuid": "9815acac-94f5-4360-8e8d-XXXXXXXXXX", "server_dns_name": "XXXX-CPPM01", "fqdn": "XXXX-CPPM01.XXXX.LOCAL", "server_ip": null, "management_ip": "10.XXX.XX.99", "ipv6_server_ip": null, "ipv6_management_ip": null, "is_master": true, "extras": null, "is_insight_enabled": false, "is_insight_master": false, "replication_status": "ENABLED", "last_replication_timestamp": "2020-05-19 09:05:27+02", "is_profiler_enabled": true, "_links": { "self": { "href": "https://xxxx-cppm01/api/cluster/server/9815acac-94f5-4360-8e8d-xxxxxxxxxxx" } } }
How can I use a template and ovl file to check if the date is say, more then one hour in the past, and have PRTG raise an alarm when that happens?
Thanks.
Add comment