monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with checks


From: Markus Thewissen
Subject: Problems with checks
Date: Mon, 18 Apr 2011 21:01:49 +0200

Hi i have problems with the check rules.

 

check process ts3server_linux_amd64 with pidfile /home/ts3/ts3server.pid

start program = "/etc/init.d/ts3 start" as uid root and gid root

stop  program = "/etc/init.d/ts3 stop" as uid root and gid root

if failed host 85.131.163.56 port 9987 type udp with timeout 2 seconds for 3 cycles then restart

if 2 restarts within 3 cycles then timeout

 

ERROR:

/etc/monit/conf.d/ts3:1: Error: syntax error 'check process '

 

check process sshd with pidfile /var/run/sshd.pid

start program = "/etc/init.d/ssh start"

stop program = "/etc/init.d/ssh stop"

if failed port 12019 protocol ssh then restart

if 5 restarts within 5 cycles then timeout

 

ERROR:

/etc/monit/conf.d/ssh:1: Error: syntax error 'check process '

 

check process srcds_linux with pidfile /home/public/orangebox/cstrike/public.pid

start program = "/etc/init.d/srcdspublic start" with timeout 30 seconds as uid root and gid root

stop program  = "/etc/init.d/srcdspublic stop" as uid root and gid root

if cpu > 95% for 5 cycles then exec "/bin/bash -c 'kill -9 `cat /home/public/orangebox/cstrike/public.pid`'" as uid root and gid root

if failed host 193.192.59.10 port 27015 type udp

send "\0xFF\0xFF\0xFF\0xFFi"

expect ""

with timeout 5 seconds for 3 cycles then restart every 3 cycles

if 3 restarts within 10 cycles then timeout

 

ERROR:

/etc/monit/conf.d/public:1: Error: syntax error 'check process '

 

I cant understand why it brings this errors.

Version

This is monit version 5.1.1 under Debian Squeez 64bit installed over aptitude

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]