###########################################################################
##  Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3      ##
###########################################################################
 
check process tomcat8 with pidfile /var/run/tomcat8.pid
   start program = "/etc/init.d/tomcat8 start" 
   #  as uid nobody and gid nobody
   stop program  = "/etc/init.d/tomcat8 stop"
     # You can also use id numbers instead and write:
   #  as uid 99 and with gid 99
   if failed port 8080 then alert