###########################################################################
##  Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3      ##
###########################################################################
 
check process smartd with pidfile /var/run/smartd.pid
   group system
   group smartd
   depend smartd_bin
   depend smartd_rc
   start program = "/etc/init.d/smartmontools start"
   stop  program = "/etc/init.d/smartmontools stop"
   # if 5 restarts with 5 cycles then timeout
 
check file smartd_bin with path /usr/sbin/smartd
   group smartd
   include /etc/monit/templates/rootbin
 
check file smartd_rc with path "/etc/init.d/smartmontools"
   group smartd
   include /etc/monit/templates/rootbin