WebFaction
Community site: login faq
2
1

Hello, Can anyone suggest a good service or tool for monitoring the following on a webfaction server:

  • Memory usage (ideally on a sub-minute basis)
  • Processor usage (also on a sub-minute basis)
  • Whether or not the website is active (i.e., a watchdog service)
  • Number of hits (would be great it if integrated with Google Analytics)

Also, I'd like to be able to have e-mails or text messages sent in the case the server goes down or exceeds a certain memory or processor threshold.

Thanks in advance for your help.

asked 18 Feb '11, 12:12

Josh
2624
accept rate: 0%


I don't know of a single tool that will do all of that.

You can get your RAM usage with the following command:

ps -u $LOGNAME -o rss,command | grep -v peruser | awk '{sum+=$1} END {print sum/1024}'

You can get your total CPU usage with:

ps -u $LOGNAME -o pcpu | awk '{sum+=$1} END {print sum}'

If you want to be notified when either of those exceeds a certain value, then just write a script to do that for you and run that script via cron. Note that cron jobs can be run once per minute at most.

If you want something to notify when your site goes down, then I recommend an external monitoring service such as Pingdom.

If you want something that measures traffic and integrates with Google Analytics, that leaves me wondering why you wouldn't simply use Google Analytics itself.

permanent link

answered 18 Feb '11, 12:27

seanf
12.2k41836
accept rate: 37%

edited 18 Feb '11, 12:28

Thanks Sean. Really I'd like to have an integrated solution. I have to imagine that many have such a need, no? Regarding GA, it doesn't have processor and memory usage. It would be good to have all the information that GA offers alongside the CPU and memory usage.

(18 Feb '11, 12:37) Josh

Checkout www.verelo.com for sub-minute website monitoring.

permanent link

answered 02 Mar '12, 22:40

Andrew McGrath
1
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×87
×20
×9
×7

question asked: 18 Feb '11, 12:12

question was seen: 6,085 times

last updated: 02 Mar '12, 22:40

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM