check process drwebd with pidfile /var/drweb/run/drwebd.pid
	group mail
	group drweb
	start program = "/sbin/service drwebd start"
	stop  program = "/sbin/service drwebd stop"
	if failed unixsocket /var/drweb/run/drwebd.socket then restart
	if mem > 20.0 MB for 5 cycles then restart
	if cpu > 80% for 5 cycles then restart
	if 5 restarts with 5 cycles then timeout
	depend on drweb_bin
	depend on drweb_key

check file drweb_bin with path /etc/opt/drweb/drwebd
	group drweb
	include /etc/monit/rootbin
	
check file drweb_key path /etc/drweb/drwebd.key
	group drweb
	include /etc/monit/rootrc
