Creation of Alarm Archiving Devices for LINUX and Installation of Alarm Tool

Hi All

Could you please guide me how to create AlarmArchiver, AlarmManager, ALarmDatabaseaccess devices as there is no documentation given for the same for Linux Operating System ?

Thanks
Balkrishna
Edited 5 years ago
Hi All

Following is the error while executing AlarmManager

./AlarmManager ALARM
Error: Could not find or load main class fr.soleil.archiving.alarm.servers.archiver.AlarmManager

Any help will be appreciated as i am stuck for long time here.

Thanks
Sudeep
!!~Sudeep Roy~!!
Hello Balkrishna,

The AlarmTool included in the last delivered Archiving package which is 15.2.1 version is not up to date with the AlarmDatabaseAccess device script.

So the next Archiving package version 15.3.3 will be up to date. And it provide script for both platform linux and windows.

But untill then here is a AlarmTool stand alone package also producted (because the project was initialy developped for MaxIV and Soleil only). The last version is available here AlarmTool-1.1.7, all the documentation (readme.txt) is in the doc folder of the archive.

Please do not hesitate to contact me for more informations :

Cheers

Katy
katy.saintin@synchrotron-soleil.fr
In response to the sudeep post :
The script is wrong in the last version of Archiving package.
Please modify the main class in AlarmManager script with
fr.soleil.archiving.alarm.servers.manager.AlarmManager instead of fr.soleil.archiving.alarm.servers.archiver.AlarmManager it should be OK then.

Best regards,

Katy
In the last version, (1.1.7) you should update the database also. Because there is the notification service in addition. For that you must install Java Notifier device version 0.0.3.

Best regards,

Katy
Hi Katy,

Modified the script in Alarm Manager. I executed the script again and following are the errors coming:

./AlarmManager ALARM
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/835437/Documents/TANGO/ArchivingRoot-15.2.1/lib/java/ch.qos.logback-logback-classic-1.1.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/835437/Documents/TANGO/ArchivingRoot-15.2.1/lib/java/org.slf4j-slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
10:54:35,181 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [/home/835437/Documents/TANGO/ArchivingRoot-15.2.1/conf/linux/alarmdevice-logback.xml] at [file:/home/835437/Documents/TANGO/ArchivingRoot-15.2.1/conf/linux/alarmdevice-logback.xml]
10:54:35,257 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
10:54:35,263 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
10:54:35,272 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [CONSOLE]
10:54:35,357 |-WARN in ch.qos.logback.core.ConsoleAppender[CONSOLE] - This appender no longer admits a layout as a sub-component, set an encoder instead.
10:54:35,357 |-WARN in ch.qos.logback.core.ConsoleAppender[CONSOLE] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
10:54:35,357 |-WARN in ch.qos.logback.core.ConsoleAppender[CONSOLE] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
10:54:35,357 |-INFO in ch.qos.logback.core.joran.action.TimestampAction - Using current interpretation time, i.e. now, as time reference.
10:54:35,359 |-INFO in ch.qos.logback.core.joran.action.TimestampAction - Adding property to the context with key="bySecond" and value="20150522T105435" to the LOCAL scope
10:54:35,359 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
10:54:35,361 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
10:54:35,380 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPolicy@880ec60 - No compression will be used
10:54:35,393 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Active log file name: /home/835437/logs/AlarmDevices.log
10:54:35,393 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - File property is set to [/home/835437/logs/AlarmDevices.log]
10:54:35,395 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [ch.qos.logback] to DEBUG
10:54:35,395 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.jacorb] to ERROR
10:54:35,395 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.tango] to ERROR
10:54:35,395 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [fr.soleil.archiving.alarm] to INFO
10:54:35,395 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to ERROR
10:54:35,396 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [CONSOLE] to Logger[ROOT]
10:54:35,396 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]
10:54:35,396 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
10:54:35,397 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@3f3afe78 - Registering current configuration as safe fallback point

SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
device tango/admin/01hw341680 not defined in the database !
10:54:35.919 INFO main-f.s.a.alarm.api.FactoryProducer.getDefaultArchivingConfiguration:72 - No ManagerMode in argument
10:54:35.921 INFO main-f.s.a.alarm.api.FactoryProducer.getDefaultArchivingConfiguration:73 - ManagerMode set to default independent
10:54:35.923 INFO main-f.s.a.alarm.api.FactoryProducer.getDefaultArchivingConfiguration:85 - No ArchiverMode in argument
10:54:35.923 INFO main-f.s.a.alarm.api.FactoryProducer.getDefaultArchivingConfiguration:102 - No StorageMode in argument
10:54:35.923 INFO main-f.s.a.alarm.api.FactoryProducer.getDefaultArchivingConfiguration:103 - StorageMode set to default temporary
10:54:35.923 INFO main-f.s.a.alarm.api.FactoryProducer.getDefaultArchivingConfiguration:116 - No CollectorMode in argument
10:54:35.924 INFO main-f.s.a.alarm.api.FactoryProducer.getDefaultArchivingConfiguration:117 - CollectorMode set to default tango
10:54:35.945 INFO main-f.s.a.alarm.api.FactoryProducer.initialize:318 - Starting factory initialization…
10:54:35.948 INFO main-f.s.a.alarm.api.FactoryProducer.initialize:344 - Create Manager service LocalManager
10:54:35.950 INFO main-f.s.a.alarm.api.FactoryProducer.initialize:358 - Create Collector service TangoAttributeValuesCollector
10:54:35.958 INFO main-f.s.a.a.a.i.s.d.c.DatabaseConnection.setStorageInformation:130 - Connection information :
Connection driver : mysql
Database Scheme : alarmdb
Database User : root
Database Password :
Database Host : localhost
Database Name : alarmdb
10:54:36.268 INFO main-f.s.a.alarm.api.FactoryProducer.initialize:396 - Create Insertion service LocalAlarmDatabaseAccess
10:54:36.268 INFO main-f.s.a.alarm.api.FactoryProducer.initialize:400 - Create rule storage service DatabaseRuleStorage
10:54:36.268 INFO main-f.s.a.alarm.api.FactoryProducer.initialize:404 - Create alarm storage service DatabaseAlarmGroupStorage
10:54:36.271 ERROR main-f.s.a.a.servers.manager.AlarmManager.initDevice:252 - Connection failed :
DB_DRIVER = mysql
DB_HOST = localhost
DB_NAME = alarmdb
DB_SCHEMA = alarmdb

——- Started ————-


Thanks
Sudeep
!!~Sudeep Roy~!!
Edited 5 years ago
Hi Katy

Thanks for the fix. It worked.

Thanks
Sudeep
!!~Sudeep Roy~!!
 
Register or login to create to post a reply.