Alarms

Hi Katy/Rapheal

Need your help for installing the Java notifier device. Could you please guide me the procedure to install ?

Thanks and Regards
TCS-GMRT Team

Hi Katy

Please guide me the procedure of installing Java notifier device version 3. Also how to do grouping in alarm table ?

Thanks and Regards
TCS-GMRT Team

Hi All

Is there any notification device available in Alarm tool GUI for sending messages/email ? If Yes, where to get that ?

Thanks and Regards
Kalyani

Hi Katy

I am having trouble while installing Java notifier device. I am unable to compile INotification.java. Following is the error coming:

INotification.java:20: error: cannot find symbol
void emit() throws NotificationException;
^
symbol: class NotificationException
location: interface INotification
1 error

Also what to define in Notification device class property in Alarm Manager ?

Any Help will be appreciated.

Thanks and Regards
TCS_GMRT Team

Hello Kalyani,
I let my colleague Gwenaelle Abeille answer to you.

Problably, we will publish our DevicesServers packaging as it is done for Archiving.

Best regards,

Katy

[quote=“TCS_GMRT”]Hi Katy

I am having trouble while installing Java notifier device. I am unable to compile INotification.java. Following is the error coming:

INotification.java:20: error: cannot find symbol
void emit() throws NotificationException;
^
symbol: class NotificationException
location: interface INotification
1 error

Also what to define in Notification device class property in Alarm Manager ?

Any Help will be appreciated.

Thanks and Regards
TCS_GMRT Team[/quote]

If you try to compile our Notifier device, you should use Maven 2 and lock after the following topics

But as I said, perhaps, she will publish our Devices package.

Concerning the AlarmManager, as it is explain in InstallationAlarmTool.txt in doc folder.
You have to device class property NotifierDevice the name of you notifier device.
Then in AlarmTool GUI :

  • you have to create mail contact,
  • and when you create a rule you have to activate mail notification

Best regards,

Katy

Hello Katy

I have many queries:

  1. How to do grouping of alarms in AlarmtoolGUI ?
  2. In my installed tool ,custom rule column is missing or disabled. Any Suggestions ?
  3. I am unable to send mail or message. I have already defined class property NotifierDevice as mentioned in Readme of AlarmTool Package.
  4. After acknowledging the alarm, it shouldn’t come back. But in my case it comes back again and again after acknowledging till I recover it. Where i have to modify these settings If I want any alarm once acknowledged shouldn’t come back ?
  5. I have to temporary suppress alarms and warnings. How could i achieve this ?

I have attached screenshot of Alarmtool GUI and Rule screenshot.

Also Thankyou very much for the reply to above queries.

Thanks and Regards
TCS-GMRT Team

[quote=“TCS_GMRT”]Hello Katy

I have many queries:

  1. How to do grouping of alarms in AlarmtoolGUI ?
    [/quote]

You should use expression with wildcard for that *
sample @(tango/tangotest//double_scalar).read > 10
Will group all the device that answer to the pattern tango/tangotest/
ex :
tango/tangotest/1, tango/tangotest/2, tango/tangotest/3 …
Under the group tango/tangotest/*

The wildcard can not be set in the attribute name and can be used only once in the expression I mean :
@(tango/tangotest//double_scalar).read > 10 && @(tango/tangotest//boolean_scalar).read OK because it is always the same patten.

But @(tango/tangotest//double_scalar).read > 10 && @(tango/tangotest/1/boolean_scalar).read KO

This part, can be done directly through the AlarmManager device command create Custom Rule…
This function was developped at the beginning for MaxIV, but finally, there give up the collaboration, so we removed the possibilty to defined custom rule in the GUI.

It is still possible directly with the devices provided, the goal is the following :

  • Developped your own ArchiverDevice, and call the AlarmManager RegisterArchiver command at the end of your initialisation device.
  • Make your own evaluation in your device. And insert information in Alarm Database throught the AlarmDataBaseAccess device.. It is completly open and you can create group, child defined your severity level… please read the document sent to MaxIV for this part attached to my post. (The document is also in the doc folder… please read it). _

Your Networks administrator, should open the SMTP port… and also defined properties in the Notifier device server.
EMailEmitter (mail adresse of the emitter, we set a no-reply for SOLEIL)
EMailServer Server mail of you company.

Then, you should test the device in standalone. If its work, it will work in AlarmTool…(Normally :slight_smile: )

Aknowledge an alarm, will closed a group. But if your device is still in alarm (the expression=true) it will generated a new alarm…If it is not the case, it is a bug… obviously, but it doesn’t happen at SOLEIL.

You can use filter if you want to hide the CLOSED alarmed (there is a shortcup in the menu of AlarmTool for that).

If you want to remove definitively, you have to click on Removed Closed Alarm. If you want to keep an event, you have to check the box on a specified event. So the group in wich there is a keep event will never removed.

[quote=“TCS_GMRT”]
I have attached screenshot of Alarmtool GUI and Rule screenshot.

Also Thankyou very much for the reply to above queries.

Thanks and Regards
TCS-GMRT Team[/quote]

For the moment we have a peak load on the development on several project at SOLEIL, We are understaffed and we have no time for developement for this part. Even answer some questions about all our developpement take time 0_o , we try to provide a maximum of documentation and user manual included in our package and behind the help of our applications :-P. But it is not perfect.
So if you want to collaborate on one of our development, it is very welcomed. The goal is to develop in the trunk and share the project (I mean a fork will be a waste of work…).

I can notice, that you post a lot of queries about our development, perhaps it should be better to organise a skype meeting, once and try to provide you information and try to use your work also in order to improve our documentation for exemple…

Please send me an email to organise that katy.saintin@synchrotron-soleil.fr

Best regards,

Katy

Hi,

The latest version of Soleil java device servers binaries are available here:
http://www-controle.synchrotron-soleil.fr:8001/packages/DeviceServers/java-15.3.2.zip

Best regards,

Gwenaëlle

Hi Katy

Thankyou for taking out time and replying to my queries after having so much workload. Also Thanks for considering me to help in your development project.

Yes, I do post lots of queries (some silly also), please don’t mind as I am new to Tango Framework and I will continue to ping you until I clear all my doubts :-).
Regarding skype meeting, That would be a great idea as I have lots of queries. I will prepare my list of queries related to archiving, databrowser and alarms and drop you a mail shortly for skype meeting. Thankyou again for replying to my queries.

Thanks and Regards
TCS-GMRT Team

Hi Katy

  1. Once alarm comes, it should beep in alarm and reminder states. I have check that button “BEEP On Alarm and Remainder States” in alarm and reminder state while defining rule. But the sound is not coming. Where should I make the changes ?

  2. My expression rule is true, now alarm comes and i acknowledge it. After acknowledment, alarm comes back again in few seconds as the rule is true. But I want to configure the time after which alarm comes back after acknowledgement. How could i achieve this ?

  3. I want to perform an automated action when alarm comes. How could i achieve that ?
    For Example:
    if(@(l/m/n/windspeed).read>@(l/m/n/windspeed).maxalarm becomes true I want to take some automated action, let say set attribute value of speed=10

  4. What is control viewer ? Whats the application of control viewer ?

Thanks and Regards
TCS-GMRT TEAM

[quote=“TCS_GMRT”]Hi Katy

  1. Once alarm comes, it should beep in alarm and reminder states. I have check that button “BEEP On Alarm and Remainder States” in alarm and reminder state while defining rule. But the sound is not coming. Where should I make the changes ?
    [/quote]

Hello :slight_smile: ,

So normally, if you check the box “Beep On ALARM and REMINDER states”, a beep sound on when a alarm change state RECOVER to ALARM or REMINDER, but there must be a state change.
I have just test the functionnality on Windows.

Other else, I have already encounter this problem before but here is the possible reason :
1 - When the GUI is running on a TX, the beep is done on the server that is not in the same room :).
2 - Or, my have my head phones plug on PC and I have turn on the sound, very stupid this one : )

As I answer before, as current state it is not possible to ignore the alarm event, during a period.
You can act on REMINDER state, and the severity. But at SOLEIL we usully do this ways :
1 - An alarm occure => An expression is true
2 - The operator fixe the problem on devices or facilities => The expression is false
3 - The alarm go to RECOVER state
4 - The operator aknowledge the alarm and it is not come back again…

Sometimes the operator, know that there will be an alarm, because there is installation.
So the operator stop the evaluation during this period.

You can, also specify a evaluation period (polling system) for a specific archiver instead of 1000 ms you can set your delay, in order to have a less frequency evaluation.

At last, we can add a functionnality for that, ‘alarm delay after aknowledgement…’, but for the moment it is not a priority. I can just set it in the roadmap and ask to our operator if it is interesting for SOLEIL.

In the futur version, we will add a automatic SnapShot on alarm event.
But what you can do, is that polling AlarmManager lastAlarmGroupUpdateTimeLong attribute.
If it change, it’s means that you have a alarm that change state.
Then you can use GetAlarmGroup command on AlarmDatabaseAccess device. You will see in the description of the command that the last answer is the status… It is enumeration value :
CLOSED = 0
FROZEN = 1
RECOVER = 2
ALARM = 3
REMINDER = 4

If you are in 3 level, you can execute your command or write an attribute.

The other solution, is to develop and client on AlarmToolAPI. the associated Jar is AlarmArchivingAPi. You can use the IAmarlArchivingAPI interface to see the Javadoc and to launch the API, your have to to do this :
FactoryProducer.getAlarmArchivingAPI();
FactoryProducer.getClientManager().startRefreshing();
And add a addGroupListener on it.

But I will advise you the first solution. Because the AlarmDatabaseAccess provide you all the necessary command you need to access the Alarm database. The source code is host on tango-cs http://sourceforge.net/p/tango-cs/code/HEAD/tree/archiving/api/AlarmArchivingApi/ for the API and http://sourceforge.net/p/tango-cs/code/HEAD/tree/archiving/tool/AlarmArchivingGUI/ for the GUI
[/quote]

Control viewer, is allow you to launch ATKPanel or an other generic GUI on a Tango device server that is defined in a rule.
1- Give the path of ATKPanel (sh or batch) in the Preferences → Options menu. (see my screen shot)
2 - Then when you click on control viewer menu, it will launch ATKPanel with the device name in argument.

I hope, my information was useful,
Best regards,

Katy

Hi Katy

Checked the box “Beep On ALARM and REMINDER states”, beep sound not coming. Also GUI and server running in same machine, still sound isn’t coming.

Thanks a lot

Do i have to specify evaluation period in Alarm Archiver device property ? what is the syntax ?
I have tried this one:
EvaluationPeriodInMS = 30000

It isn’t working. Alarm comes as soon as it is acknowledged ( expression is true ).

When you are releasing the next version ? Please share the link here once you release the next version.
Also whats the syntax of GetAlarmGroup command in AlarmDataBaseAccess ?

Thanks and Regards
TCS-GMRT Team