Submitted by mig5 on Wed, 28/09/2011 - 12:39
I've recently been doing some very innovative work for the very clever gents at Code Enigma, where I've been working on some interesting projects:
1. an automated 'zero-touch' dev/stage/live deployment system for their enterprise Drupal applications (developers no longer need to ssh in to servers to do deployments)
2. automatic 'one-touch' provisioning and configuration of new hosting cloud services.
(More on the dev/stage/live zero-touch deployment soon :) )
Submitted by mig5 on Tue, 29/09/2009 - 14:45
So at work they implemented some 'SMS Squelching' methods to interact with a 'mail > sms' gnokii script to try and 'squelch' megaloads of SMSs that come through from Nagios all at once. It's a bunch of perl and very much specific to working with a serial-attached Nokia and gnokii. The way it essentially worked was that if an SMS got queued to mail2smsgnokii/gsm's spool, the timestamp was compared with the last sms that got sent and if the length of time in between SMS was inside a threshold (say 30 minutes), the SMS would not be sent.
Submitted by mig5 on Mon, 14/09/2009 - 15:38
Here's a simple perl script that uses curl to search for a regex pattern on a website.
It returns status values that are Nagios compatible. This means you can write a command definition for Nagios that looks like this:
# regex check
define command{
command_name check_regex
command_line /usr/lib/nagios/plugins/check_regex $ARG1$ $ARG2$
}
And write a couple of service definitions like this:
define service {
host_name foo
service_description foo regex