OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: opn_nwo on January 31, 2022, 04:09:20 PM

Title: Monitoring NTP service
Post by: opn_nwo on January 31, 2022, 04:09:20 PM
I use Monit to monitor few critical services, NTPD being one of them. Now that the pid file has been removed ( know it was unreliable at times) I can't monitor it the same way I used to. Any other way to monitor and restart it if dies?
Title: Re: Monitoring NTP service
Post by: franco on January 31, 2022, 07:38:37 PM
Not sure about Monit integration but from a script I would use this:

# pgrep -q ntpd || echo "service not running"


Cheers,
Franco