Skip to content

Commit cd87c72

Browse files
committed
added TPC rule
1 parent 647c5e0 commit cd87c72

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/o2-infologger-alert

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# - filter out self log messages
1313
# - extra rules
1414
# v1.3.1 01/10/2025 - adding detector field in alert message
15+
# - extra rules
1516

1617
set cfg(TelegrafSocket) "/tmp/telegraf.sock"
1718
set cfg(TelegrafBucket) "InfologgerAlerts"
@@ -869,6 +870,24 @@ registerAlarm \
869870
"2025-08-20 04:45"
870871

871872

873+
#ex: 2025-05-05 15:00 CEST
874+
# /opt/o2-InfoLogger/bin/o2-infologger-log -oFacility=readout -oDetector=TPC -oSeverity=E -oErrorCode=3241 "Equipment equipment-roc-1 : first HB orbit of link 0 is different from first link(15): 0x0 != 0x446FE40"
875+
# /opt/o2-InfoLogger/bin/o2-infologger-browser -- -f "readout" -d "TPC" -tmin "2025-05-05 15:00 CEST" -tmax "2025-05-05 15:01 CEST" -s "E F" -query
876+
877+
registerAlarm \
878+
22001 \
879+
"TPC FLP readout fatal" \
880+
"Restart the run, if it happens again call TPC on-call: first HB orbit mismatch." \
881+
{
882+
("$field(ErrCode)" == "3241")
883+
&& ("$field(Severity)" == "E")
884+
&& ("$field(Detector)" == "TPC")
885+
&& ("$field(Facility)" == "readout")
886+
&& (
887+
[string match "Equipment * first HB orbit * different *" "$field(Message)"]
888+
)
889+
} \
890+
"2025-05-05 15:00"
872891

873892

874893

0 commit comments

Comments
 (0)