###########################################################################
##  Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3      ##
###########################################################################
 
check process ntpd with pidfile /var/run/openntpd.pid
   group system
   group ntpd
   depend ntpd_bin
   depend ntpd_rc
   start program = "/etc/init.d/openntpd start"
   stop  program = "/etc/init.d/openntpd stop"
   # if 4 restarts within 12 cycles then timeout
 
check file ntpd_bin with path /usr/sbin/ntpd
   group ntpd
   include /etc/monit/templates/rootbin
 
check file ntpd_rc with path /etc/init.d/openntpd
   group ntpd
   include /etc/monit/templates/rootbin