configuration-templates

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 26  →  ?path2? @ 27
/monit/debian/templates/freeradius
@@ -0,0 +1,13 @@
###########################################################################
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
###########################################################################
 
# The monit file assumes that freeradius is listening on localhost
# and that the shared secret is radpass.
 
check process freeradius with pidfile /var/run/freeradius/freeradius.pid
start program = "/etc/init.d/freeradius start"
stop program = "/etc/init.d/freeradius stop"
if failed host 127.0.0.1 port 1812 type udp protocol radius secret "radpass" then alert
if failed host 127.0.0.1 port 1812 type udp protocol radius secret "radpass" then alert
# if 5 restarts within 5 cycles then timeout