What distro are you on?

Ubuntu has included a service manager (upstart) that mostly eliminates the
need for you to be informed of these things.  What I have is:
A pre-start stanza that does an update check
A run stanza using -autoupdate and _NOT_ using -restart
The "respawn" attribute set, so it will autorestart on crash/quit (and do an
update check at the same time - all I have to do to update a server is "rcon
quit" it)

That covers all cases except freeze, so if you really want you have your
monitor checking the run state, but killing the process rather than
notifying you, and if you really want you stick something in the pre-start
stanza to notify you every time the server's had to be started.

...though in my experience, it's mostly crashes, rather than freezes, so I
personally don't bother with the last bit... YMMV of course :)

> -----Original Message-----
> From: [email protected] [mailto:hlds_linux-
> [email protected]] On Behalf Of f0rkz
> Sent: 16 April 2010 15:56
> To: Half-Life dedicated Linux server mailing list
> Subject: Re: [hlds_linux] monitoring + email servers?
> 
> 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.
> 
> -f0rkz
> 
> On Fri, 2010-04-16 at 14:01 +0200, Eric Riemers wrote:
> > Since someone out there is bound to have something like this:
> >
> > I want to monitor my game servers, and if they dont respond to a
> normal
> > source query, that it will send out a sms/email about that server.
> > I know i can build something like nagios and then install some custom
> > scripts to check it but maybe there are easier/simpler sollution.
> >
> > We use sourcebans and that shows always nice if a server is up or
> down, but
> > it does not send out emails/sms.
> >
> > Any ideas on this?
> >
> > Eric
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list
> archives, please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> 
> 
> 
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux


_______________________________________________
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