Archive for the 'LSUCS' Category

Bash Linux server monitoring script

Part of my day-job is based around monitoring a business critical group of servers at work, so it seemed natural to try and implement some monitoring on a server I help look after for LSU CompSoc.

Given the major differences between the two environments and their importance, I thought a basic shell script should do the job for now (tested on Ubuntu 8.04.3 LTS).  The check’s I’ve implemented are Disk space checks, NIC errors, user changes (add/delete), package check, and checks for apache & mysql.  Also I’ve made sure that the script will run as a normal user so no need for sudo access to anything.

I’ve attached the script incase anyone else finds it of use  (You’ll need to modify the settings section as appropriate for your own server and create the relevant paths referenced in the settings.  The script is also dependent on this Perl SMTP CLI mailer (you’ll need to download a copy onto your server).  I plan to modify the script to support other mail methods but at present it just does what I needed from it.

I’ve also got another script to notify of any reboots and will add that here shortly.

Bash Monitoring Script (53)

Drupal Modules

I thought I might as well ‘publish’ two Drupal modules that I’ve been working on.

Account Reactivation (Drupal 5)
This was created for LSU CompSoc’s new site, to enable members to request that their account is re-activated at the start of the new year, once they have signed up again.

Download the module here: Drupal Account Reactivation Module

Timetable (Drupal 6)
This is a basic module I created as a test module to get back into Drupal development. It creates a timetable, with the ability to add and remove items via a form, and to set the slots available during the day on the timetable.

Download the module here: Drupal Timetable Module

————————————————————-

Please note that both these modules are provided ‘as is’ and may not be completely stable/include bugs . Do not use on a production site without first testing thoroughly.

However I will provide help/improvements/fixes if time allows for the modules.