Hi,

I configured a service like this

check process dpm with pidfile /var/run/dpm.pid
group root
start program = "/etc/init.d/dpm start"
stop program = "/etc/init.d/dpm stop"
if 5 restarts within 5 cycles then timeout

I had segfault, which did not clean up the PID file, so i try checking for
port like this
if failed port 5015 then restart
OR
if failed port 5015 type tcp then restart

But none of them work,
the dpm service run as
# netstat -tupln|grep dpm
tcp        0      0 0.0.0.0:5015                0.0.0.0:*
LISTEN      8628/dpm

Can  you please advise, if there was anything wrong in above syntax of port
checking.

Thanks
Govind
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to