monitoring

Monitoring DAHDI channels on an Asterisk system with Xymon

With the severe thunderstorms and tornado warnings we have been recently subjected to, we inevitably end up having problems with the POTS lines connected to our Asterisk system. The problems have been due to either a physical issue between our office and the CO which the phone company has to repair, or a simple issue of forgetting to plug the POTS lines back into the analog card once the storms had passed.

The up side to this is that we have a very quiet morning with no ringing phones the day after a major storm, however the reality is that we may be missing important phone calls from our clients!

Monitoring Quantum Superloader Tape Libraries with Xymon

For the past several years Quantum's "Superloader3" tape libraries have been our device of choice when specifying a tape backup library solution for our clients.

The Superloaders are easy to set up and have proven to be one of the most reliable devices we have had the pleasure of working with - and when it comes to backups, reliability is key.

Regardless of the reliability of the tape library itself, there are other factors that can adversely affect your backups, including drives that require cleaning, bad or broken tapes or other miscellaneous issues.

When these issues occur it pays to be proctive by monitoring your tape library so that you may be made aware of these types of things as quickly as possible.

With Xymon being our preferred monitoring solution, naturally we would write a Xymon script to monitor our Superloader tape libraries. Our xymon_quantumsuperloader_check.sh script reports quite a bit of information about the Superloader including the library's time, autoloader & drive status and firmware versions.

In addition to this basic informational reporting, the script can also report the barcodes of the tapes in each slot of the Superloader's two removable magazines and can set an alert on any drive or tape errors reported.

The latest version of this script and instructions to install it on your Xymon server may be found HERE.

posted from my Nokia N900

Monitoring m0n0wall firewalls with Xymon

At Reverse Polarity, we have been installing, configuring, managing and supporting m0n0wall firewalls since we found the m0n0wall firewall project in 2005.

From the m0n0wall website: "m0n0wall is a project aimed at creating a complete, embedded firewall software package that, when used together with an embedded PC, provides all the important features of commercial firewall boxes (including ease of use) at a fraction of the price (free software)."

With so many of our managed m0n0wall firewalls installed it is only sensible to assume that we would know the status (including version, platform and uptime) of them. That would be a good assumption. :)

For quite some time now, we have been monitoring our clients' networks and servers with Xymon so it only makes sense that we would use Xymon to monitor our clients' firewalls as well.

We have recently posted our xymon_m0n0CFG.rb script which reports back to our Xymon server the version, platform, uptime, last config change, and notes fields of each of our managed m0n0wall firewalls. In addition to simply reporting back these informational fields, the script will also set a yellow alert if a firewall has been up for less than 24 hours, or if the configuration has been recently modified.

Instructions for installing the xymon_m0n0CFG.rb script, as well as the latest version of the script may be found HERE.

posted from my Nokia N900

Useful Scripts


Purpose

This page is a central location where we will try to gather all of the the scripts we have written that we think may be useful to others.

Xymon Scripts

The following scripts are for use with the Xymon Monitoring Server:

  • xymon_quantumsuperloader_check.sh - Monitor Quantum Superloader 3 Tape Libraries and report the device's information back to a Xymon Monitoring Server. Alert if there are Tape Alert Flags reported or other errors detected.
  • xymon_m0n0CFG.rb - Monitor m0n0wall firewalls and report back the m0n0wall's version, platform, uptime, last config change date/time, and notes fields to a Xymon Monitoring Server. Alert if the firewall has been up less than 24 hours and alert if the configuration has been modified.
  • xymon_cbw_temp.sh - Monitor and graph a ControlByWeb module's temperature readings on a Xymon Monitoring Sever. Monitor and alert for temperatures increasing, decreasing, or outside of a range. Also you may simply graph the temperature readings without alerting.
  • xymon_cbw_relay.sh - Control the relays on a ControlByWeb module during a Xymon alert.
  • xymon_bacula_check.sh - Monitor a Bacula Backup server and alert when jobs have failed or when a job requires operator attention.
  • xymon_nut_*.sh - Monitor UPS readings - AC input/output voltages, battery voltage, battery charge %, and UPS load % from a NUT (Network UPS tools) server and report the readings back to a Xymon monitoring server for logging, graphing and alerting.

Coraid Scripts

The following scripts are for use with Coraid AoE (ATA over Ethernet) storage devices:

  • aoe-chk-coraid.sh - Uses Coraid's aoe-stat and aoe-ping utilities to check the status of one or more Coraid lblades
  • cec-chk-coraid.sh - Uses expect and Coraid's cec program to check the status of one or more CoRAID shelves. Given a list of CoRAID shelves to check, this script will check the output of the expect script against known good output