Hi,
If your main concern is to restart if radius
is not replying rather than only *knowing* if its up,
you can write a script using radpwtst like
below *on* the radiator server and put it to
cron. radpwtst is really a useful tool... If you
want only to report the downtime or uptime, its a different
story...
------------------------
root#cat testradius.sh
#!/bin/sh
#see if its up and running
if ps -ef | grep -v grep | grep radiusd >
/dev/null
then echo donothing > /dev/null else /etc/init.d/radiator restart fi #see if its actually replying
if /usr/bin/radpwtst -secret yoursecret
-noacct -user heartbeat -password heartbeat | grep "No reply" >
/dev/null
then /etc/init.d/radiator restart fi exit
------------------------
|
- (RADIATOR) Silly question. Sergio Gonzalez
- Re: (RADIATOR) Silly question. Utku Er
- Re: (RADIATOR) Silly question. Jaime C. Elizaga Jr.
- RE: (RADIATOR) Silly question. Paul
- Re: (RADIATOR) Silly question. Hugh Irvine
- Re: (RADIATOR) Silly question. Mike McCauley
- Re: (RADIATOR) Silly question. Hugh Irvine