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
Executing a command after throwing an alert
Re: Executing a command after throwing an alert
Hi Jason,
Take a look at this and see if it helps you out
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Thanks
Take a look at this and see if it helps you out
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Thanks
Re: Executing a command after throwing an alert
Thanks gsmith!
Looks like what I'm looking for. I'll give it a go.
Best Regards,
Jason
Looks like what I'm looking for. I'll give it a go.
Best Regards,
Jason
Re: Executing a command after throwing an alert
Cool.
Let me know if you need help, or if you get it working so I can close this out.
Thanks!
Let me know if you need help, or if you get it working so I can close this out.
Thanks!