Matthew Sheets wrote:
> This is a set of updates related to the installation of RaidMon, a
> RAID hard drive monitoring tool (sendEmail and beep are both used by
> raidmon). When enabled, RaidMon will beep when the RAID hard drives
> are out of sync or when one of the RAID members has failed. I have DL
> running as a file server in a K-12 computer lab, so having an audible
> alert is much more timely and requires less maintenance than firing
> off to a list of e-mail addresses (the lab monitor is different at
> different times and might not be monitoring e-mail closely). RaidMon
> does, though, have the capability to send e-mails using sendEmail.
Now that you send the patch, I realize that we're really missing this
> /From/ - http://freshmeat.net/projects/raidmon/; modified by me to run
> on DL (attached, but please see note on the "status" command below)
> /Description/ - "Raidmon is a shell script which runs as a daemon and
> monitors software RAID devices (Linux MD). It starts to beep when a
> disk fails or while a RAID device is resyncing after an unclean
> shutdown. Every event also triggers the email alert mechanism, which
> sends mail to one or more persons with the details of what's going
> on." Though posted as a src.rpm package, it builds to a noarch.rpm
> that simply adds the following files:
> - /usr/bin/raidmon (core script file; changed from being
> a link to /etc/init.d/raidmon)
> - /usr/share/doc/raidmon-1.4.3
> - /etc/cron.daily/raidmon
> - /etc/init.d/raidmon (modified to follow DL's start config
> format [see below for more details])
> - /etc/sysconfig/raidmon
> I did make a few changes from the original source file. It initially
> was in an RPM file and seemed to have some distribution-secific
> commands such as "action" and "status". The insserv and echo -n
> commands appear to replace the functionality of the "action" command,
> but I am not sure what the equivalent of the "status" command might
> be. I have commented out the status command in the updated files I
> have attached, so there is no way to query the status at this time.
You can leave something like status in there, it won't hurt.
> /From/ - http://freshmeat.net/projects/sendemail/
> /Description/ - Required by raidmon to provide e-mail notification
> alerts. This program consists of a Perl script file added to
> /usr/bin. ( Does need "chmod +x /usr/local/bin/sendEmail" )
I hope it can also reside in /usr/bin ?
> /From/ - http://freshmeat.net/projects/beep/
> /Description/ - Required by raidmon to provide the audible alerts. It
> appears the currently used version of beep in DL is 1.2.1. A version
> 1.2.2 has been released with the following ChangeLog notes (raidmon
> should work with either version):
> - Man pages now gzip -9 for better compression
> - Table of frequencies added to man page
> - Fix for platforms with unsigned chars
> - On ioctl() errors, beep will now do a printf("\a") so that, at very
> least, you get a beep. :)
An update won't hurt.
> The only diff to an existing DL file is /etc/sysconfig/config, where
> the following two lines need to be added (configured for the default
> # Start RAIDMON? (Disable by default; Change to "yes" to enable)
> To complete the configuration, insserv needs executed in order to
> register RaidMon as a service.
> I hope this is of benefit for inclusion in the next release of DL.
> This is my first submission, so I hope I'm following the submission
> process correctly. Since (except for /etc/sysconfig/config and
> running insserv) these were all script files that just needed copied,
> I wasn't sure that this necessarily fit into the standard DL build
> system. If I understand correctly, I just need to provide the
> location for finding the libraries to include, but if something more
> is needed, please let me know.
Actually we can't use the patch in its current form. Submitted patches
must be in a format, so we can apply them to our build system itself.
Consult our documentation on how to 'build' a DL system.