projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4a18b4
)
Added script for monit
author
Alan T. DeKok
<aland@freeradius.org>
Sun, 2 Sep 2012 08:12:14 +0000
(10:12 +0200)
committer
Alan T. DeKok
<aland@freeradius.org>
Thu, 6 Sep 2012 09:33:17 +0000
(11:33 +0200)
scripts/freeradius.monit
[new file with mode: 0644]
patch
|
blob
diff --git a/scripts/freeradius.monit
b/scripts/freeradius.monit
new file mode 100644
(file)
index 0000000..
5cfea16
--- /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