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:
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:
Code Select
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