One of these days I want to add the pinger functionality to Emerald. :)
Anyways, I was mulling around with radlogin tonight and found out that
it returns 0 on failuer and 1 on success. BOOLEAN logic. Atleast I am
consist at something later at night! :)
So I wrote a quick batch file like this:
-----------------
:top
sleep 60
radlogin daler blah
goto result%ERRORLEVEL%
:result1
echo "Good"
goto top
:result0
echo "Bad"
pageme 5551212 6661212 "Radius On blah down"
goto top
-------------------
What this does is cycle every 60 seconds and it radlogin returns
an error, sends a page. Sleep and pageme are little programs
I wrote before pinger. Pageme is available from /nt on the ftp
site. Its VERY rough, I warn right now.
I couldn't find any way of confgiuring whatsup to run a program
and use the results for monitoring.
Dale