/******************************************************************************
 *   fscsyl-sens - Small userspace tool to get temperature and fan speeds 
 *                 from Fujitsu Siemens Celsius Computers
 *
 *   Copyright (C) 2010 Lars Michelsen <lm@mathias-kettner.de>
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *   MA 02110-1301 USA.
 *****************************************************************************/

This small tool has been built to read to contents of the SEL (System Event
Log) on Fujitsu Siemens Celsius m470 computers. 

The intend to build this was the ability to monitor ECC memory errors on 
Fujitsu Siemens Celsius m470 computers. The problem is that those errors are
not raised to the operating system level and not available via IPMI since
the m470 does not provide an IPMI interface.

This program may not be limited to be used on Celsius m470 systems but is has
only be tested and implemented on those systems.

The program can be called as follows:

# ./fsc-celsius-m470-sel 0xFFF04E5F 508

Where the first parameter "0xFFF04E5F" is the address of the SEL in the memory
and the second parameter is the length of the SEL as reported by dmidecode.

There is a wrapper script which uses some detail information from dmidecode to
ensure the binary is compatible and can be used on the current system.

The output is optimized for being a check_mk local plugin. Simply drop the 
wrapper script fsc-celsius-m470-sel.sh in the local check plugin directory
(e.g. /usr/lib/check_mk_agent/local) on the machine to be monitored. Then copy
the binary to some place on your system and configure th path in the wrapper
script.

After that simply refresh the inventory the host again. Take a look at the
documentation on <http://www.mathias-kettner.de/checkmk_localchecks.html>.
