Pingdom Home

US + international: +1-212-796-6890

SE + international: +46-21-480-0920

Business hours 3 am-11:30 am EST (Mon-Fri).

Pingdom Blog

Royal Pingdom

Ramblings from the Pingdom team about the Internet and web tech

RSS Feed

New Pingdom feature: Custom monitoring type

What if you could have a type of monitoring that would store a value of your choosing, and a status of your choosing, based on a script on your servers? A kind of “universal” check type that you can customize as you wish on your end. Well, now you can.

Pingdom custom monitoring

We have added a new, customizable check type to the Pingdom uptime monitoring service, called simply “HTTP custom”. It expects a formatted XML response with a status (OK/not OK) and a value (a number). This value replaces the “response time” value in the Pingdom graphs, and the status (OK or not) replaces the UP or DOWN status.

Pingdom custom monitoring setup

Since you are returning a value and a status every time your XML page is accessed (for example once a minute), you will be able to see this data in the graphs in the Pingdom control panel, and of course be sent alerts just as with any other Pingdom check.

This may all sound a bit abstract, so let’s look at some examples of how this new check type can be used.

  • Monitor the amount of free RAM or HD space on your server.
  • Monitor the CPU load on your server.
  • Monitor the number of active connections to your web server.
  • And any other monitoring type you can imagine…

All you need is a script that performs some form of task on your end and sends back the status and value of the operation in the specified XML format. Your script decides what is considered UP (i.e. OK), so you have full control over thresholds and what is tested on your end.

Of course, nothing stops you from performing more advanced tasks than the ones we mentioned above. The imagination is the limit here. What we do on our end is simple, we just get this XML file from you. How you generate it is completely up to you.

We hope you will find good use for this new functionality. As always, we welcome any feedback you may have!

Note: This check will time out if it cannot read the XML file within 30 seconds, which counts as a “down” on Pingdom’s end. So if you decide to create a really elaborate, time-consuming script on your end, you may be best off letting it run separately and just have it continuously update a status page (the XML file) that is accessed by Pingdom.

Also, if the server your script runs on (or rather the XML file) is unreachable for some reason, this will also count as a “down” on Pingdom’s end, so make sure your script runs on a reliable server with a good Internet connection.

Want to test your site every minute?








You will get an email with your login information.

8 Comments

that wasn’t possible before?
like:

* i settup my script to stamp in a page “ok”
* i go to pingdom and configure it to check for this webpage and check also if “check for string on page:”
* and select “it contains ok”

then pingdom will check if is ok/not ok just like what i understand in this post

i don’t know if is the same, but point me if it isn’t

Hi Jardel,

You could indeed set up a check like the one you described. However, this new custom check type also allows you to return a custom value (which essentially replaces the response time data in Pingdom) in addition to the status.

The combination of status + a stored value is very useful, and you can examine it in our different reports (you can for example study how the value has changed in the response time report).

I hope that clarification helps.

oh, it clarifies a lot! Now i loved the service, i understood that i just show “ok/ not ok” when i submitted the last comment

now the possibilities are infinite, you could track even non-website things like setup your webcamera to detect movimments and return “robbed / not robbed”

Or setup an check to check your bank account funds

nah, kidding on the last one.

thanks!

Sounds great, one problem though a drunken mute chimp could code stuff like this better than me.

Do you have any code examples? Especially one to output “Used RAM” values?

So this whole feature appears to be a waste of time, a month later and still no idea how to use it. All i wanted to do is show RAM Consumption.

I guess it’s a good thing, saves me upgrading to Business to get more monitors in order to use the feature.

Meh!

Marco van den Berg

August 27th, 2008 at 5:55 am


This is really cool. What would make it even cooler: make the variable definable, not just response time. How about something like this:

OK
CPU temperature
Degrees C
31.4

That way, error messages can be reported more meaningful than currently (it’s kinda weird to see CPU temperature expressed in ms!).

Marco

@Troy: If you have any questions on how to use this monitoring option, please don’t hesitate to contact our support (support AT pingdom DOT com). It is intended to give you a flexible interface to scripts on your side, so it does require you to be able to do some coding, though.

@Marco: Great idea to have a customizable “unit” for the returned value. We may very well add this down the line, though at the moment it’s “ms” since it integrates with our regular response time reports.

@Pingdom – Thanks, but many people using Pingdom want to do 2 things.. Pay their money and monitor aspects of their website.

I’m sure having the ability to knock together custom scripts to measure this, connect to that then report XYZ might be trivial to some but not everyone can do this.

I just figured Pingdom would of provided working code examples so we could paste in Notepad, change our account number, save as XML and upload to get us started.

I know people are looking specifically for the ability to do things like “Monitor the amount of free RAM or HD space” and if i saw Pingdom could do this but it required paying a coder i’d move on and look for a more turnkey solution = Lost sales for Pingdom.

I’d really like to monitor “RAM Consumption” on my VPS, and thanks for the offer of support but i figured it would be easier to publish working code examples “once” to get everyone started rather then 100′s of times to individual support requests.

Anyhow keep up the good work.

Pingdom Podcast #6

Pingdom’s Podcast is a weekly show about Internet, web, security, and mobile stuff.

In this show, Saleh also gives us an update on the pending approval of his Carbon for Windows Phone Twitter client. We also talked about Nokia’s recent financial results, if Google Chrome can hit more than 50% market share this year, and the recent privacy-blunder by the guys behind the Path mobile app.

Read more

There’s no denying that Google Chrome continues to be the darling of the web browser market. And as we predicted in July last year, Chrome overtook Firefox around November 2011.

So now the question is, when will Google also wrestle down Internet Explorer, and become the undisputed king of the browser world? In December 2011, Chrome 15 became the most popular browser in the world, beating Internet Explorer 8, but if you combine all IE versions, Microsoft still holds the number 1 spot.

Equipped with the latest web browser statistics from StatCounter, we set out to see when Chrome is likely to achieve more than 50% market share.

Read more

Up or not? Keep track of your favorite US sports websites

Want to see how your favorite US sports site is doing, if it has a perfect 100% uptime score or not? If you want to check the latest scores and it isn’t working, could it be a problem with your computer or connection, or the site? We’ve got the solution for you!

For some time now we’ve been monitoring 34 major US sports and news sites related to sports. Our recent articles on the Super Bowl are a result of that monitoring.

Now you can look at how these sites are doing yourself on the public reports page for this list of US sports websites.

Read more

Google Maps turns 7 years old – amazing facts and figures

Who has not used Google Maps? Raise your hand! Since the launch 7 years ago, Google Maps has become the de facto map service that users around the world go to for all their mapping needs.

As we say Happy Birthday to Google Maps, read on to find out some of the critical milestones in its history, and some amazing numbers and statistics.

Read more

In 2010, there were just over 1 million secure Internet websites worldwide. Almost half of those, or 446,992 to be exact, were located in the United States.

But in which country can we find the most secure websites in relation to population? The answer may surprise you.

Read more