About

The monit file assumes that freeradius is listening on localhost and that the shared secret is radpass.

Code

###########################################################################
##  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
 
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 5 restarts within 5 cycles then timeout