File: freeradius.monitrc

package info (click to toggle)
freeradius 3.0.12+dfsg-5+deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 21,144 kB
  • ctags: 11,887
  • sloc: ansic: 109,067; sh: 5,176; perl: 2,648; sql: 1,397; python: 1,161; makefile: 374; xml: 62; tcl: 35; sed: 23; ruby: 22
file content (18 lines) | stat: -rw-r--r-- 682 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
#  Script for use with Monit
#
#	http://mmonit.com/monit/
#

#
#  Totalmem limit should be lowered to 200.0 if none of the
#  interpreted language modules or rlm_cache are being used.
#
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 testing123 then alert
   if failed host 127.0.0.1 port 1813 type udp protocol radius secret testing123 then alert
   if cpu > 95% for 2 cycles then alert
   if totalmem > 1024.0 MB for 5 cycles then restart
   if 5 restarts within 5 cycles then timeout