1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="Title" CONTENT="SMS Server Tools 3">
<META NAME="Robots" CONTENT="INDEX,FOLLOW">
<META NAME="Language" CONTENT="English">
<title>SMS Server Tools 3</title>
<STYLE type="text/css">
h3 {
background-color: #DCDCFE;
}
blockquote {
background-color: #FFD;
font-size: 90%;
padding:5pt;
padding-top:1pt;
margin-bottom:5pt;
border-style: outset;
border-color: #aaaa99;
border-width: 0.05pt 2pt 2pt 0.05pt;
}
blockquote p:first-letter {
font-size: 110%;
font-weight: bold;
color: red;
}
</STYLE>
</head>
<body>
<h2><font color=blue>SMS Server Tools 3</font></h2>
<a href="index.html">Home</a
<h3>Alarm handler</h3>
<!-- START --><p>
The alarm handler is a program that smsd runs whenever an error occures.
<p>
Smsd gives the following arguments to the alarmhandler:
<p>
<ul>
<li>the keyword ALARM</li>
<li>a date in the format yyyy-mm-dd</li>
<li>a time in the format hh:mm:ss</li>
<li>the alarm severity (1 digit number)</li>
<li>the modem name or SMSD</li>
<li>the alarm text</li>
</ul>
<p>
Example:
<p><font face="Courier New, Courier, monospace">
#!/bin/sh<br>
# This is an example how to use an alarm handler with smsd.<br>
echo SMSD alarm: $5 $6<br></font>
<p>
This script displays a message for each alarm.
<blockquote><p>
The <a href="book.html" target="_blank">book</a> describes how to display alarms with colours for their severities in
a webbrowser.
</p></blockquote>
</body>
</html>
|