Monitoring the sg email server

Discussion re sg development. You don't have to be a developer.

Monitoring the sg email server

Postby SysKoll » Thu Apr 29, 2004 1:08 am

Now that we have a test machine outside HE, I was thinking that we could easily run a small monitoring script on it (call it "sgping"). I plan on writing a script that does this:

  • First, define an sg monitoring account that forwards to the test machine, to the user ID under which sgping will run.
  • Every 15 mins, sgping wakes up or is launched by cron.
  • It sends an email to that sg monitoring account.
  • It checks emails received on the test machine (forwarded by sg). These received emails are the "pings" sent by the script to sg and forwarded back by sg.
  • The sgping script maintains a table of the last N received ping emails (N=100 is enough for a day).
  • If no ping has come back for a few hours (say 3 hours), we can assume there is a bad problem. sgping then informs the developers with a non-sg email.
  • In any case, sgping sends the developers a status email every 24 h. The email could contain various stats.


This wouldn't be too hard to code. Josh, Amit, do you see a problem with this? Anything else this monitoring script should do?
-- SysKoll
SysKoll
 
Posts: 893
Joined: Thu Aug 28, 2003 9:24 pm

Postby maratheamit » Thu Apr 29, 2004 11:49 am

That's a nice idea. In addition to what Syskoll suggests we can also special case the sgping user on the main server and thus have spameater.pl send some actual stats back in the forwarded reply.
maratheamit
 
Posts: 82
Joined: Fri Aug 29, 2003 2:35 pm


Return to Developers

Who is online

Users browsing this forum: No registered users and 15 guests

cron