radius monitoring

Dale E. Reed Jr. ( (no email) )
Fri, 11 Apr 1997 00:29:04 -0700 (PDT)

I was just thinking about this RadiusNT monitoring think a little
bit and going back to the Emerald 1.0 days when I wrote a program
called "pinger" that basically pinged machines and paged when
they were done. It was a really simple program, but the nice thing
about its paging side was that it could send a bunch of pages in
one call. Programs like Whatsup is VERY slow at paging and chews
up a lot of calls sending a couple of pages.

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:

sleep 60
radlogin daler blah
goto result%ERRORLEVEL%

echo "Good"
goto top

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.