mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
10 lines
514 B
Plaintext
10 lines
514 B
Plaintext
# CGRateS Monit check script
|
|
|
|
check process CGRateS with pidfile /var/run/cgrates/cgr-engine.pid
|
|
start program = "/etc/init.d/cgrates start"
|
|
stop program = "/etc/init.d/cgrates stop"
|
|
if failed host 127.0.0.1 port 2012 type TCP 4 times within 4 cycles then restart # Rater
|
|
if failed host 127.0.0.1 port 2013 type TCP 4 times within 4 cycles then restart # History
|
|
if failed host 127.0.0.1 port 2080 type TCP 4 times within 4 cycles then restart # CDRS
|
|
if 5 restarts within 20 cycles then timeout
|