Executing a command after throwing an alert
Posted: Tue Jun 15, 2021 5:29 am
Hi Nagios Support Team,
I have a plugin written in bash script that I use to monitor the NTP time on my servers. I would like to know how can I go about running a command like ntpdate -u to update the NTP time on the monitored host when an alert is triggered indicating that the NTP time is out of sync on the monitored host.
Thank You.
Best Regards,
Jason
I have a plugin written in bash script that I use to monitor the NTP time on my servers. I would like to know how can I go about running a command like ntpdate -u to update the NTP time on the monitored host when an alert is triggered indicating that the NTP time is out of sync on the monitored host.
Thank You.
Best Regards,
Jason