Alarm servers written in perl
This directory contains a number of different
alarm servers for you to adapt to your application.
The alarm servers are written in Perl and their task
is to listen for incomming alarms from any alarming
ethernt board.
Once an alarm is received the alarm server will execute
the command "alarm_command_script". You can use this
to take some action (turn on or off something, send an
email, page the guard ...)
Three different alarm servers with different complexity
are available:
alarmsrv-basic -- very basic alarm server easy to understand
alarmsrv-multialarm -- alarm server that alarms only if it
gets multiple events from different boards
within a given time (made for earthquake monitoring).
alarmsrv-multi-hb -- same as the alarmsrv-multialarm but monitors in
addition each of the ethernet boards with a
heartbeat message to check that they are functional.
Because of the heartbeat feature you have to
configure all known ethernet board in the
server. This is done by editing the variable
$heartbeatclients
Just use an ediror and take a look at the code. I think you will
understand it more or less even if you are not that firm is perl
or shell scripting.
All of them are examples and you can adapt them to your needs.
Code written by Guido Socher (guidosocher@gmail.com)