Server rentals :: NFOservers.com

Forums

All times are UTC - 8 hours



Author Message
 Post subject: Server polling
PostPosted: Fri Apr 08, 2011 10:00 pm 
Offline
A semi-regular
A semi-regular

Joined: Thu Sep 03, 2009 12:47 am
Posts: 20
Every so often we have a server hang for whatever reason.

In the past we always relied on the polling service NFO offers to hosted gameservers. We were brainstorming about writing something in python to query the servers and grab their process ids with WMI, but I was curious if you had any other suggestions or possible insight you could lend into the way you go about it.

Other than registering it as a service as this still seems to not detect hangs as SRCDS reports the same cpu and ram usage during a hang even if it is for all intensive purposes dead to the world.

-Josh


Top
 Profile  
 
 Post subject: Re: Server polling
PostPosted: Fri Apr 08, 2011 10:09 pm 
Offline
Founder
Founder
User avatar

Joined: Thu Apr 18, 2002 11:04 pm
Posts: 9239
Location: Seattle
Running a local monitoring script that queries and restarts as needed, as you suggested, would probably be the easiest way to go. If you wanted to get one up with as little effort as possible, you could just write maybe a 10-line wrapper that uses a 3rd-party querying engine like qstat, and then kills the task with "taskkill /im" if the query fails. If following this method, you should rename or link the srcds.exe file to a different name for each server, so that they are easy to pick out.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
It is currently Thu May 23, 2013 8:40 am
Powered by phpBB® Forum Software © phpBB Group