|
|
|
|
|
|
|
|
|
|
This device server is used as a alarm logger, it connects to the list of attributes provided and verifies its values.
Its focused on notifying Alarms by log files, Mail, SMS and (some day in the future) electronic logbook.
You can acknowledge these alarms by a proper command.
Format of alarms will be:
TAG1:LT/VC/Dev1 TAG2:LT/VC/Dev1/State TAG3:LT/VC/Dev1/Pressure > 1e-4
NOTE: This property was previously called AlarmsList?; it is still loaded if AlarmList? is empty for backward compatibility
Description to be included in emails for each alarm. The format is:
TAG:AlarmDescription...
NOTE: Special Tags like $NAME (for name of PyAlarm device) or $TAG (for name of the Alarm) will be automatically replaced in description.
TAG1:vacuum@accelerator.es,SMS:+34935924381,file:/tmp/err.log vacuum@accelerator.es:TAG1,TAG2,TAG3
File where alarm receivers aliases are declared; e.g. User:user@accelerator.es;SMS:+34666555666 Default: $HOME/var/alarm_phone_book.log If User and Operator are defined in phonebook AlarmsList can be:
TAG2:User,Operator
AlarmList -> DEBUG:True AlarmDescriptions -> DEBUG:The PyAlarm Device $NAME has been restarted
It is done if you put directly the name of the device or its State as a condition by itself:
PRESSURE:SR/VC/VGCT/Pressure > 1e-4 STATE_AND_PRESSURE:SR/VC/VGCT and SR/VC/VGCT/Pressure > 1e-4
In the second case and alarm will be triggered either if the Pressure is above threshold or the device is not reachable.
It's a bit hackish
PERIODIC:(FrontEnds/VC/Elotech-01/Temperature and FrontEnds/VC/VGCT-01/P1 and (1920<(now%3600)<3200)) or (ResetAlarm('PERIODIC') and False)
(In future releases these properties could be individually configurable for each alarm)
File where alarms are logged Default: "/tmp/alarm_$NAME.log"
File where a 1 or 0 value will be written depending if theres active alarms or not.\n<br>This file can be used by other notification systems. Default: "/tmp/alarm_ds.nagios"
Periode in ms. in which all attributes not event-driven will be polled. Default: 60000
Max Number of Alarms to be sent each day to the same receiver. Default: 3
Min number of consecutive Events/Pollings that must trigger an Alarm. Default: 3
Address that will appear as Sender in mail and SMS Default: "controls"
Arguments for sendSMS command Default: ":"
A message is sent if an alarm is active but the conditions of the attributes return to a safe value. To enable the message the content of this property must contain 'email', 'sms' or both.
To avoid the previous property to send a lot of messages continuously this property has been added to limit the maximum number of messages to be sent each time that an alarm is enabled/recovered/reset.
#---------------------------------------------------------
# SERVER PyAlarm/AssemblyArea, PyAlarm device declaration
#---------------------------------------------------------
PyAlarm/AssemblyArea/DEVICE/PyAlarm: "LAB/VC/Alarms"
# --- LAB/VC/Alarms properties
LAB/VC/Alarms->AlarmDescriptions: "OVENPRESSURE:The pressure in the Oven exceeds Range",\
"ADIXENPRESSURE:The pressure in the Roughing Station exceeds Range",\
"OVENTEMPERATURE:The Temperature of the Oven exceeds Range",\
"DEBUG:Just for debugging purposes"
LAB/VC/Alarms->AlarmReceivers: OVENPRESSURE:somebody@cells.es,someone_else@cells.es,SMS:+34999666333,\
ADIXENPRESSURE:somebody@cells.es,someone_else@cells.es,SMS:+34999666333,\
OVENTEMPERATURE:somebody@cells.es,someone_else@cells.es,SMS:+34999666333,\
DEBUG:somebody@cells.es
LAB/VC/Alarms->AlarmsList: "OVENPRESSURE:LAB/VC/BestecOven-1/Pressure_mbar > 5e-4",\
"OVENRUNNING:LAB/VC/BestecOven-1/MaxValue > 70",\
"ADIXENPRESSURE:LAB/VC/Adixen-01/P1 > 1e-4 and OVENRUNNING",\
"OVENTEMPERATURE:LAB/VC/BestecOven-1/MaxValue > 220",\
"DEBUG:OVENRUNNING and not PCISDOWN"
LAB/VC/Alarms->PollingPeriod: 30
LAB/VC/Alarms->SMSConfig: ...
Subject: LAB/VC/Alarms: Alarm RECOVERED (OVENTEMPERATURE)
Date: Wed, 12 Nov 2008 11:52:39 +0100
TAG: OVENTEMPERATURE
LAB/VC/BestecOven-1/MaxValue > 220 was RECOVERED at Wed Nov 12 11:52:39 2008
Alarm receivers are:
somebody@cells.es
someone_else@cells.es
Other Active Alarms are:
DEBUG:Fri Nov 7 18:37:35 2008:OVENRUNNING and not PCISDOWN
OVENRUNNING:Fri Nov 7 18:37:17 2008:LAB/VC/BestecOven-1/MaxValue > 70
Past Alarms were:
OVENTEMPERATURE:Fri Nov 7 20:49:46 2008
Subject: LAB/VC/Alarms: Alarm RECOVERED (OVENTEMPERATURE)
Date: Wed, 12 Nov 2008 11:52:39 +0100
TAG: OVENTEMPERATURE
LAB/VC/BestecOven-1/MaxValue > 220 was RECOVERED at Wed Nov 12 11:52:39 2008
Alarm receivers are:
somebody@cells.es
someone_else@cells.es
Other Active Alarms are:
DEBUG:Fri Nov 7 18:37:35 2008:OVENRUNNING and not PCISDOWN
OVENRUNNING:Fri Nov 7 18:37:17 2008:LAB/VC/BestecOven-1/MaxValue > 70
Past Alarms were:
OVENTEMPERATURE:Fri Nov 7 20:49:46 2008
TANGO is an open source project hosted by :
|
Core and Tools :
CVS repository on
tango-cs project
Device Servers : CVS repository on tango-ds project |