From: Alan T. DeKok Date: Sun, 2 Sep 2012 08:12:14 +0000 (+0200) Subject: Added script for monit X-Git-Tag: release_2_2_0~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d357253671c3523c64ce1855c814cb549996285;p=thirdparty%2Ffreeradius-server.git Added script for monit --- diff --git a/scripts/freeradius.monit b/scripts/freeradius.monit new file mode 100644 index 00000000000..5cfea16ebf2 --- /dev/null +++ b/scripts/freeradius.monit @@ -0,0 +1,11 @@ +# +# Script for use with Monit +# +# http://mmonit.com/monit/ +# +check process radiusd with pidfile /var/named/chroot/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 1812 type udp protocol radius secret testing123 then alert + if 5 restarts within 5 cycles then timeout