xymon

Monitoring Samba users, shares, and connections with Xymon

I thought it would be a good idea to monitor some basic stats from the Samba servers that we manage and maintain. It would be nice, for example, to know the total number of users in the domain (LDAP, or tbd), the total number of machines in the domain, the number of currently connected users, the number of currently opened shares, and total number of open files.

Of course, if we have all of this information, we are going to graph it too!

Below is a short Xymon external script (bash shell script) which gathers this information using pdbedit, smbldap-userlist, and smbstatus and reports the information back to the Xymon server.

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