IntroductionI had written a BeBot module that monitors
http://probes.funcom.com/ao.xml for changes in an attempt to automate setting things such as my APF timer (web and BeBot versions). I've had it running for some time now and it seems to fairly accurately pick up AO server events, and thus server uptimes.
I decided I wanted this monitoring to be outside of the bot, and the result (so far) is this. Server events are logged to a SQLite database. I've also borrowed the get_site function from BeBot, thus you will need sockets to run the monitor.
The display is a separate PHP script that only needs SQLite.
DownloadAO Server Monitor 0.0.3Instructions:Extract. Run AOServerMonitor.php. The contents of public_html go on your webserver, edit aosmconf.php to point to your aosm.db file. Load up
http://yoursite.com/aosm.php.
It only displays No events logged. Help!This is normal. Until FunCom resets or patches the servers, or some other outage occurs, there will be no events logged. Until FunCom resets a server, this is boring.
Keeping the monitor runningI've included a bash (or sh) shell script that is intended to be called from cron on *NIX systems. The script requires GNU screen and grep. Edit aosm.cron to match your paths, then create a crontab entry as follows:
*/15 * * * * /home/user/AOServerMonitor/aosm.cron > /dev/null
Every 15 minutes cron will run the script and restart the monitor if it is not running. Thanks to N\D for the original cron script.
Public WebsitePublic display is now active at
http://zibby.isa-geek.net/aosmI think that's everything, enjoy.