Go to documentation repository
Previous page Next page
In Monitoring PSIM, you can generate a report on alarms as failures (see System failures) by specifying the beginning of the alarm, its ending, and its duration. For this, the alarms must have starting and finishing events. To generate such a report on alarms as failures, do the following:
Note
On the Control Server side, these alarms are registered as short-term.
Note
The button to add an entry appears only if you fill in all the data, and the description of the starting and finishing events contains the [<id>] - <name> template. Further, you can edit or remove the created entry.
Note
When you add the following entry, don't duplicate the values of the edited fields. If you try to enter a duplicate, the error message appears.
Generating a report on alarms as system failures is complete.
When you clear the Alarms as failures checkbox, the Failure type list displays standard failures.
When you set the Alarms as failures checkbox, the Failure type list displays failures described in the Alarm list window.
You can generate a report for all failures (Failure type=all failures) or several ones (in the Failure type field, select specific failure).
If the starting event is lost, the Alarms as failures incorrect report is created. To avoid this, we recommend using scripts on the Control Agent side to generate, for example, a starting or finishing event once a day, depending on the object's current state. For more details on how to create scripts, see Guide for creating scripts (programming).
Example of a script for a timer with number 1, which triggers once a day.
if (Event.SourceType=="TIMER" && Event.SourceId=="1" && Event.Action=="TRIGGER") { var msg = CreateMsg(); msg.StringToMsg(GetObjectIds("CAM")); var count = msg.GetParam("id.count"); var i; for(i = 0; i < count; i++) { if(GetObjectState("CAM", msg.GetParam("id." + i))=="DISARMED") { NotifyEventStr("CAM",msg.GetParam("id." + i),"DISARM",""); } else { NotifyEventStr("CAM",msg.GetParam("id." + i),"ARM",""); } } }