the doc says:
check process radiusd with pidfile /var/run/radiusd.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
my config is (monit 5.5, fbsd 8.2), xxx.4.62.16 is the local host:
check process rad1.xxx.net-RADIUS with pidfile /var/run/radiusd.pid
start program = "/usr/local/etc/rc.d/radiusd start"
stop program = "/usr/local/etc/rc.d/radiusd stop"
if failed host xx.4.62.16 port 1812 type udp protocol radius
secret testing123
then alert
this always fails, from the monit.log:
[CDT Oct 10 13:11:49] error : 'rad1.xxx.net-RADACCT' failed protocol test
[RADIUS] at INET[xx.4.62.16:1812testing123] via UDP -- RADIUS: error sending
query -- No route to host
Len
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general