How to configure Reboot alert for Unix servers

Dhruvika G 6 Reputation points
2021-03-02T18:43:22.537+00:00

Hi all, I need to configure reboot alert for Unix servers. I configured the two state monitor but I repeatedly get alerts every minute. How to suppress the duplicate alerts, could you please let me know. Command I used: upseconds=cat /proc/uptime |awk '{print int ($1 )}';if [ $upseconds -lt 300 ];then echo REBOOTED;else echo OK;fi Not sure where I am going wrong.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,065 questions
{count} votes