configuration-templates

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 36  →  ?path2? @ 35
/monit/debian/templates/freeradius
@@ -2,11 +2,12 @@
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
###########################################################################
 
## In order to check freeradius with a password, one could add:
# if failed host 127.0.0.1 port 1812 type udp protocol radius secret "radpass" then alert
# 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 then alert
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