Hi,
To achieve this, just want to show an alternative way. We may use a two state ShellCommand monitor, executing 'cat /proc/uptime | cut -d'.' -f1'. If the uptime is less than 30 minutes (here 1800 seconds) we generate an alert.
This is the general steps for your reference.
1, create a two-state monitor, and save it in unsealed MP
2, name it and select the target
3, provide the script path that already created in Linux
4, configure the criteria (compare the current value with the threshold), unhealthy and healthy
5, enable alerting and write the alert description if necessary
Hope the above information helps.
Regards,
Alex Zhu
If the response is helpful, please click "Accept Answer" and upvote it.