From 50b37d4a27d3295a29afca2286f1a5a086142cec Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:49:46 +0200 Subject: Adding upstream version 3.2.1+dfsg. Signed-off-by: Daniel Baumann --- scripts/monit/freeradius.monitrc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 scripts/monit/freeradius.monitrc (limited to 'scripts/monit') diff --git a/scripts/monit/freeradius.monitrc b/scripts/monit/freeradius.monitrc new file mode 100644 index 0000000..65f96cf --- /dev/null +++ b/scripts/monit/freeradius.monitrc @@ -0,0 +1,18 @@ +# +# Script for use with Monit +# +# http://mmonit.com/monit/ +# + +# +# Totalmem limit should be lowered to 200.0 if none of the +# interpreted language modules or rlm_cache are being used. +# +check process radiusd with pidfile /var/run/radiusd/radiusd.pid + start program = "/etc/init.d/radiusd start" + stop program = "/etc/init.d/radiusd stop" + if failed host 127.0.0.1 port 1812 type udp protocol radius secret testing123 then alert + if failed host 127.0.0.1 port 1813 type udp protocol radius secret testing123 then alert + if cpu > 95% for 2 cycles then alert + if totalmem > 1024.0 MB for 5 cycles then restart + if 5 restarts within 5 cycles then timeout -- cgit v1.2.3