46,327 questions
How to configure Reboot alert for Unix servers
Dhruvika G
6
Reputation points
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.
Community Center | Not monitored
Sign in to answer