initial working
This commit is contained in:
6
vm2/env/config.ini
vendored
Normal file
6
vm2/env/config.ini
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
[mysql]
|
||||
host = 192.168.1.210
|
||||
database = ase_lar
|
||||
user = root
|
||||
password = Ase@2025
|
||||
|
||||
16
vm2/env/db.ini
vendored
Normal file
16
vm2/env/db.ini
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# to generete adminuser password hash:
|
||||
# python3 -c 'from hashlib import sha256;print(sha256("????password???".encode("UTF-8")).hexdigest())'
|
||||
|
||||
[db]
|
||||
hostname = 192.168.1.210
|
||||
port = 3306
|
||||
user = root
|
||||
password = Ase@2025
|
||||
dbName = ase_lar
|
||||
maxRetries = 10
|
||||
|
||||
[tables]
|
||||
userTableName = virtusers
|
||||
recTableName = received
|
||||
rawTableName = RAWDATACOR
|
||||
nodesTableName = nodes
|
||||
20
vm2/env/elab.ini
vendored
Normal file
20
vm2/env/elab.ini
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
[logging]
|
||||
logFilename = /app/logs/elab_data.log
|
||||
|
||||
[threads]
|
||||
max_num = 10
|
||||
|
||||
[tool]
|
||||
# stati in minuscolo
|
||||
elab_status = active|manual upload
|
||||
|
||||
[matlab]
|
||||
#runtime = /usr/local/MATLAB/MATLAB_Runtime/v93
|
||||
#func_path = /usr/local/matlab_func/
|
||||
runtime = /app/matlab_runtime/
|
||||
func_path = /app/matlab_func/
|
||||
timeout = 1800
|
||||
error = ""
|
||||
error_path = /tmp/
|
||||
|
||||
|
||||
59
vm2/env/email.ini
vendored
Normal file
59
vm2/env/email.ini
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
[smtp]
|
||||
address = smtp.aseltd.eu
|
||||
port = 587
|
||||
user = alert@aseltd.eu
|
||||
password = Ase#2013!20@bat
|
||||
|
||||
[address]
|
||||
from = ASE Alert System<alert@aseltd.eu>
|
||||
to1 = andrea.carri@aseltd.eu,alessandro.battilani@gmail.com,alessandro.valletta@aseltd.eu,alberto.sillani@aseltd.eu,majd.saidani@aseltd.eu
|
||||
to = alessandro.battilani@aseltd.eu
|
||||
cc = alessandro.battilani@gmail.com
|
||||
bcc =
|
||||
|
||||
[msg]
|
||||
subject = ASE Alert System
|
||||
body = <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Alert from ASE</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
</head>
|
||||
|
||||
<body style="margin: 0; padding: 0;">
|
||||
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<img src="https://www2.aseltd.eu/static/img/logo_ASE_small.png" alt="ASE" style="display: block;" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h1 style="margin: 5px;">Alert from ASE:</h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h3 style="margin: 5px;">Matlab function {matlab_cmd} failed on unit => {unit} - tool => {tool}</h3>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h4 style="margin: 5px;">{matlab_error}</h4>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 20px; padding-bottom: 0px; color: red">
|
||||
{MatlabErrors}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 20px;">
|
||||
{MatlabWarnings}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
37
vm2/env/ftp.ini
vendored
Normal file
37
vm2/env/ftp.ini
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
# to generete adminuser password hash:
|
||||
# python3 -c 'from hashlib import sha256;print(sha256("????password???".encode("UTF-8")).hexdigest())'
|
||||
|
||||
[ftpserver]
|
||||
service_port = 2121
|
||||
firstPort = 40000
|
||||
proxyAddr = 0.0.0.0
|
||||
portRangeWidth = 500
|
||||
virtpath = /app/aseftp/
|
||||
adminuser = admin|87b164c8d4c0af8fbab7e05db6277aea8809444fb28244406e489b66c92ba2bd|/app/aseftp/|elradfmwMT
|
||||
servertype = FTPHandler
|
||||
certfile = /app/certs/keycert.pem
|
||||
fileext = .CSV|.TXT
|
||||
defaultUserPerm = elmw
|
||||
#servertype = FTPHandler/TLS_FTPHandler
|
||||
|
||||
[csvfs]
|
||||
path = /app/aseftp/csvfs/
|
||||
|
||||
[logging]
|
||||
logFilename = /app/logs/ftp_csv_rec.log
|
||||
|
||||
[unit]
|
||||
Types = G801|G201|G301|G802|D2W|GFLOW|CR1000X|TLP|GS1|HORTUS|HEALTH-|READINGS-|INTEGRITY MONITOR|MESSPUNKTEPINI_|HIRPINIA|CO_[0-9]{4}_[0-9]|ISI CSV LOG
|
||||
Names = ID[0-9]{4}|IX[0-9]{4}|CHESA_ARCOIRIS_[0-9]*|TS_PS_PETITES_CROISETTES|CO_[0-9]{4}_[0-9]
|
||||
Alias = HEALTH-:SISGEO|READINGS-:SISGEO|INTEGRITY MONITOR:STAZIONETOTALE|MESSPUNKTEPINI_:STAZIONETOTALE|CO_:SOROTECPINI
|
||||
|
||||
[tool]
|
||||
Types = MUX|MUMS|MODB|IPTM|MUSA|LOC|GD|D2W|CR1000X|G301|NESA|GS1|G201|TLP|DSAS|HORTUS|HEALTH-|READINGS-|INTEGRITY MONITOR|MESSPUNKTEPINI_|HIRPINIA|CO_[0-9]{4}_[0-9]|VULINK
|
||||
Names = LOC[0-9]{4}|DT[0-9]{4}|GD[0-9]{4}|[0-9]{18}|MEASUREMENTS_|CHESA_ARCOIRIS_[0-9]*|TS_PS_PETITES_CROISETTES|CO_[0-9]{4}_[0-9]
|
||||
Alias = CO_:CO|HEALTH-:HEALTH|READINGS-:READINGS|MESSPUNKTEPINI_:MESSPUNKTEPINI
|
||||
|
||||
[csv]
|
||||
Infos = IP|Subnet|Gateway
|
||||
|
||||
[ts_pini]:
|
||||
path_match = [276_208_TS0003]:TS0003|[Neuchatel_CDP]:TS7|[TS0006_EP28]:=|[TS0007_ChesaArcoiris]:=|[TS0006_EP28_3]:=|[TS0006_EP28_4]:TS0006_EP28_4|[TS0006_EP28_5]:TS0006_EP28_5|[TS18800]:=|[Granges_19 100]:=|[Granges_19 200]:=|[Chesa_Arcoiris_2]:=|[TS0006_EP28_1]:=|[TS_PS_Petites_Croisettes]:=|[_Chesa_Arcoiris_1]:=|[TS_test]:=|[TS-VIME]:=
|
||||
5
vm2/env/load.ini
vendored
Normal file
5
vm2/env/load.ini
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
[logging]:
|
||||
logFilename = /app/logs/load_raw_data.log
|
||||
|
||||
[threads]:
|
||||
max_num = 5
|
||||
5
vm2/env/send.ini
vendored
Normal file
5
vm2/env/send.ini
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
[logging]
|
||||
logFilename = /app/logs/send_data.log
|
||||
|
||||
[threads]
|
||||
max_num = 30
|
||||
Reference in New Issue
Block a user