Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
Monitoring NTP service
« previous
next »
Print
Pages: [
1
]
Author
Topic: Monitoring NTP service (Read 1635 times)
opn_nwo
Jr. Member
Posts: 70
Karma: 0
Monitoring NTP service
«
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?
Logged
franco
Administrator
Hero Member
Posts: 17668
Karma: 1611
Re: Monitoring NTP service
«
Reply #1 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
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
Monitoring NTP service