Recent Articles

Server Monitor API In Coldfusion 8
In an earlier post I talked a bit about how the Admin API has been updated in ColdFusion 8. For folks who don't know what this is - it is a way to get into the internals of ColdFusion directly from CFML. It requires the ColdFusion Admin password, which may be a negative for...

Criteria For Non-Windows, VMware & Network...
With the announcement of the purchase of Engyro, Maarten from Techlog.org confirmed that the Engyro MPs were in fact pulled from the market. This put a crimp in the non-WIndows story for more than one person...

About Citrix MetaFrame Presentation Server
Citrix MetaFrame thin-client solution has provided help for administrators in managing applications from a central location and has granted users access to those applications from just about any location.

OSPF And Passive Interfaces
Your BSCI exam may well be the most challenging of the four exams you must pass to become a CCNP, so you have to have the details of every protocol on the exam mastered! Today, we'll look at the passive-interface...

Cisco CCIE Specializations Overview
The CCIE (Cisco Certified Internetwork Expert) is one of the most respected certifications in the IT industry. The CCIE is the highest level professional certification provided by Cisco that recognizes great expertise in performing a wide variety of operations with networks...

Fortinet Firewall Virtual IPs
I found this a little confusing, so am documenting it here in case you run into the same problem. The first task is to define a virtual IP. You give it a name, and its interface is "wan1" (or "wan2" of course). It's Static...



07.30.07


Server Monitor Alerts In ColdFusion 8

By Raymond Camden

So this isn't exactly old news, but while I've played quite a bit with the new Server Monitor in ColdFusion 8, I never really took a good look at the Alerts section.

This week I finally took some time to play with alerts. Alerts are a great way to monitor your box without having to have the Server Monitor constantly running in a browser window. As you can guess, alerts will monitor various different things on your server and let you know if something goes wrong.


Out of the box you can monitor the following:

  Unresponsive Server: Checks your server to see if it is acting up and not responding well.

  Slow Server: Lets you see if the average response time for a request is more than a threshold amount.

  JVM Memory: Let's you throw an alert if the amount of memory being used goes over a certain amount.

  Timeouts: This is an interesting one. It lets you fire an alert if you have X amount of timeouts within Y seconds.


When an alert is fired, you have a variety of options. Some of the alert types have slightly different options, but in general they all allow for:
  Sending an Email.

 Dumping a snapshot. This is the same as the manual snapshots you can perform in the Server Monitor.

  Kill threads that take longer than a certain amount.

 Reject new requests

There is also another option which is pretty darn cool. An alert can trigger an "Alert CFC." This is a CFC that you write that contains two methods: onAlertStart and onAlertEnd. This allows you to do any custom handling of the alert that you want. You could log to the database. You could use the Instant Messenger Event Gateway to send you an IM. You can send an SMS message. The point is - you aren't limited to the options listed above. You can basically handle the alert with anything ColdFusion can do.

You can browse alerts in the Server Monitor as well.

That screen shows that I have one alert. Double clicking on the alert lets me see the snapshot since I enabled that option. ColdFusion will also alert you when the status reverts to normal.

In order for snapshots to work, you must enable Server Monitoring, which as Charlie has blogged will add minimal overhead to your server. I also pinged Adobe about any impact from alerts in general and was told there was no impact that folks would need to be concerned about.

I'm currently using this myself - mainly to monitor the issues I've had lately with ColdFusionBloggers but also for curiosity's sake as well. Is anyone out there using this yet? Anyone written a custom alert CFC? (Would folks like to see an example of one?)

Comments


About the Author:
Raymond Camden, ray@camdenfamily.com
http://ray.camdenfamily.com

Raymond Camden is Vice President of Technology for roundpeg, Inc. A long time ColdFusion user, Raymond has worked on numerous ColdFusion books and is the creator of many of the most popular ColdFusion community web sites. He is an Adobe Community Expert, user group manager, and the proud father of three little bundles of joy.

About NetworkNewz
NetworkNewz editors, writers and contributors focus on both the big picture and the details of networking. At NetworkNewz our goal is to deliver to you The Key To Network Management.

NetworkNewz is brought to you by:

SecurityConfig.com NetworkingFiles.com
ITmanagementNews.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com ITmanagementNews.com


-- NetworkNewzis an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2007 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | newsletters | comments/feedback | submit article


The Keys To Network Management Ask Questions in the Networking Forum NetworkNewz News Archives About Us Feedback NetworkNewz Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact