Lightweight Health Monitor

Categories

Component ID

2470381

Component name

Lightweight Health Monitor

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Organizations that are new to Drupal or don't have much Drupal infrastructure often monitor Drupal by periodically pulling down the home page and checking that they got an HTTP 200 response. However, many Drupal error pages will return a 200, so this isn't a reliable way to check the health of a Drupal site. The Lightweight Health Monitor provides a more informative set of tests with a minimum of setup.

The Lightweight Health Monitor is intended for people who are just getting started with automated monitoring of their drupal sites. It provides a few basic stats: whether cron has run recently, whether User 1 is active, and whether the devel module is enabled. In my experience, these are the three mistakes I make most commonly when promoting a new site to production.

LHM comes with two interfaces: a GUI and a simple JSON output. The JSON is suitable for monitoring by Op Manager using Op Manager's Content Match feature.

Getting the module:

git clone --branch 7.x-1.x http://git.drupal.org/sandbox/ldpm/2470381.git lightweight_health_monitor
cd lightweight_health_monitor

Alternatives

  • If you are using Nagios, you might be better off with the very fine Nagios module here on d.o.
  • If you require a lot more parameters to be monitored, you might be better off with the also very fine Monitoring module here on d.o.
  • If, on the other hand, your needs are modest, or you aren't yet sure what you need but you know that just looking for an HTTP 200 response isn't good enough, Lightweight Health Monitor could be for you.