Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - h1d3m3

#1
22.1 Legacy Series / Re: ntpd pid file gone in 22.1?
February 06, 2022, 03:51:09 PM
Thank you, that worked.

I didn't know "matched" was an option. When you use the PID field for a service, the match field option gets hidden. You have to delete the service setting first (starting clean) to show the field again. The result is:

check process ntpd  matching ntpd
   start program = "/usr/local/sbin/pluginctl -s ntpd start"
   stop program = "/usr/local/sbin/pluginctl -s ntpd stop"
   if failed host 127.0.0.1 port 123 type udp then alert

#2
22.1 Legacy Series / Re: ntpd pid file gone in 22.1?
February 05, 2022, 10:13:27 PM
This broke monit for me too. Monitoring was looking for that file (using PID File) and since it was gone, it would constantly restart ntp thinking it was dead.

Can anyone recommend an alternate means for monit to monitor that ntp is running? (maybe through ntpq -p or something like ntpstat?)

Cheers