Added script for monit
authorAlan T. DeKok <aland@freeradius.org>
Sun, 2 Sep 2012 08:12:14 +0000 (10:12 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 6 Sep 2012 09:33:17 +0000 (11:33 +0200)
scripts/freeradius.monit [new file with mode: 0644]

diff --git a/scripts/freeradius.monit b/scripts/freeradius.monit
new file mode 100644 (file)
index 0000000..5cfea16
--- /dev/null
@@ -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