Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wsrtinfo:sensoralarmdescription [2008/07/03 13:21] – arnoschoenmakers | wsrtinfo:sensoralarmdescription [2009/08/24 07:11] (current) – arnoschoenmakers | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Description of sensorAlarm ====== | ====== Description of sensorAlarm ====== | ||
- | SensorAlarm pools the database filled by '' | + | Program '' |
===== Location of the code ===== | ===== Location of the code ===== | ||
- | The code for sensorAlarm can be found in CVS, in the module '' | + | The code for '' |
* '' | * '' | ||
* '' | * '' | ||
Line 11: | Line 11: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | |||
+ | The program can be started by executing '' | ||
===== Component description ===== | ===== Component description ===== | ||
Line 30: | Line 32: | ||
* Setting the alarmstatus of all the associated sensors to '' | * Setting the alarmstatus of all the associated sensors to '' | ||
- | Before obtaining the values, we first check if the sensor database values are recent enough to trust. This limit is set at 10 minutes, i.e., only if the database contains values less than 10 minutes old, the alarmconditions will be evaluated. All values are taken from the local MySQL database (the one running on wop33, that is). | + | Before obtaining the values, we first check if the sensor database values are recent enough to trust. This limit is set at 10 minutes, i.e., only if the database contains values less than 10 minutes old, the alarmconditions will be evaluated. All values are taken from the local MySQL database (the one running on wop10, that is). |
In the '' | In the '' | ||
Line 80: | Line 82: | ||
* Wait until the next requested checktime. | * Wait until the next requested checktime. | ||
+ | ==== Used Python modules ==== | ||
+ | For '' | ||
+ | * For string handling: '' | ||
+ | * For date and time issues: '' | ||
+ | * For system calls and such : '' | ||
+ | * For signal handling (timeouts): '' | ||
+ | * For parsing commandline options: '' | ||
+ | * For MySQL connections: | ||
+ | |||
+ | |||
+ | ==== The configuration file ==== | ||
+ | |||
+ | The '' | ||
+ | |||
+ | ... | ||
+ | CONSwarm > 27.0 # 5 # sendMail obs ' | ||
+ | CONSwarm > 30.0 # 5 # sendMail obs ' | ||
+ | CONSwarm < 15.0 # 5 # sendMail obs ' | ||
+ | ... | ||
+ | Sup-He-RT0 + Ret-He-RT0 < 15 # 5 # sendMail stiepel ' | ||
+ | Sup-He-RT1 + Ret-He-RT1 < 15 # 5 # sendMail stiepel ' | ||
+ | Sup-He-RT2 + Ret-He-RT2 < 15 # 5 # sendMail stiepel ' | ||
+ | ... | ||
+ | </ | ||
+ | \\ | ||
Line 100: | Line 127: | ||
===== Alarmconditions ===== | ===== Alarmconditions ===== | ||
- | This is the Alarm conditions table that is used in the software. It originates from the file ''/ | + | This is the Alarm conditions table that is used in the software. It originates from the file ''/ |
^ Sensor ^ Type/Unit^ Alarm Condition(s) ^ Nr. of samples ^ Mail/SMS who ^ (Software) Action ^ | ^ Sensor ^ Type/Unit^ Alarm Condition(s) ^ Nr. of samples ^ Mail/SMS who ^ (Software) Action ^ |