On Fri, Apr 16, 2010 at 10:56:07AM -0400, f0rkz wrote:
> How savvy are you with perl?
> 
> There is an rcon perl module that you can use to query 'status' on the
> server.  If it fails to return the server's status, have it shoot an
> email alert via sendmail.
> 
> Hope this helps.

There are also modules for other languages, for example Python.

http://github.com/frostschutz/SourceLib

It's unfinished but even so, the alpha1 version works okay. 

With that you can query, rcon, or even real time monitoring using the 
servers logging facility so if something's odd (such as all players 
dropped from the server) you could do something.

I'm currently using it to make Source TV demos for TF2. The standard 
autorecord feature records 24/7, which is not only a waste of disk 
space but also makes the things you're actually looking for hard 
to find, so instead I listen to the log to react on round starts, 
and final score, to make it record clan matches only. Makes nice 
demos that actually start as the match begins and stop as the match 
is over...

Of course, the information you get through logs is limited, so 
depending on what you want to do, making a server plugin would 
be a better solution. Although a plugin can't send mail if the 
server fails. ;)

Regards
frostschutz

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to