Perl

Fax tone parsing

A high level of quality assurance for fax reception is required at medical clinics since faxing is the primary technology used for communication between participant's pharmacies and their prescribing physician at the clinic. A combination of SpanDSP, Asterisk call files, Asterisk MixMonitor() application, and Nagios provides a solution.

The SpanDSP project offers a modem connect tone library capable of parsing individual fax tones from an audio stream. Using this library I was able to write a simple CED tone check for nagios (based on spandsp's fax_decode test).

A remote asterisk server, with PSTN connectivity provided by callcentric, generates a call file via cron which calls the target fax number, records both channels of the call, then processes the recording with the custom nagios CED tone check.

IT Manager

As the IT Manager of St. James Infirmary my responsibilities are IT asset management, network management, VoIP system management, and development and migration to OpenEMR.

Custom HA Uplink

Zocalo coffee shop migrated to digital registers with a solution from square. While these devices are able to process transactions off-line, some types of transactions need the square registers to be on-line. At the time the coffee shop had only one up-link provided by Comcast. Comcast was providing good service at the time, but with the increased demand for the registers to be on-line they needed higher availability.

Real-time Vhost monitoring with Nagios and Proc::Daemon

The task of monitoring all vhosts on a web-server in addition to the host and service statuses is necessary because vhosts can fail at the application level where the web-server is operational. In a web development shop like Radical Designs vhosts come up and are taken down all of the time, SLAs mandate that operations staff need to make sure certain HTTP response codes are returned and pages appropriately redirected when new redirects are added. Operations staff need to make sure specific vhosts and urls on those vhosts return specific content and assure all of these do not overwhelm the target web servers or Nagios. At Radical Designs we wanted the update status of web applications associated with vhosts integrated into Nagios. nagios_vhost.pl is capable of polling web servers for their current list of vhosts, vhost alias, comments that act as monitoring directives, and web application type and update status.

Wordpress trigger for Nagios on-call

Radical Designs needed a tool to update their rotating on-call list each month. The were already making use of WordPress for their internal documentation. To tie the two together A script was written to log into the WordPress site, parse a contact list, and then rotate and update the on-call list from the WordPress blog page managed by staff to the Nagios contact config. The on-call rotation was triggered throughout the day (in case a schedule was swapped by updating the WordPress page) via Cron.

Smart Shack

I live in a a really nice cottage behind the house of my roommates. When I moved in a lot needed to be done to modernize and I took the opportunity to learn more about general construction, electrical installations, and industrial wiring concepts.

Linux Kickstart installations

This solution was created to solve the problem of enabling hands free remote installations of Linux boxes [1]. The objects that implement this solution are; a kick-start server, a networked rpm based Linux box (client), and the kick-start rpm. The kickstart server is configured as described in the resources section. Some of the code and ideals here are from Gary [2], and Aaron Gowatch.

Nagios Plugins

"Nagios is the industry standard in enterprise-class monitoring. It allows you to gain insight into your network and fix problems before customers know they even exist. It's stable, scale-able, supported, and extensible ..."

I have found that having a Nagios environment is indispensable for keeping an eye on any distributed application or set of hosts I am responsible for.

Subscribe to RSS - Perl