From f992b2bd230dd2f095258cfa70f1e14796f86b3b Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Wed, 15 Mar 2023 14:54:04 +0000 Subject: T3083: Add service event-handler Event-handler allows executing a custom script when detects some configured "pattern regex" set service event-handler event first filter pattern '.*ssh2.*' set service event-handler event first script arguments '192.0.2.5' set service event-handler event first script environment interface value 'eth0' set service event-handler event first script path '/config/scripts/hello.sh' It is the backport from 1.4 --- interface-definitions/service-event-handler.xml.in | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 interface-definitions/service-event-handler.xml.in (limited to 'interface-definitions/service-event-handler.xml.in') diff --git a/interface-definitions/service-event-handler.xml.in b/interface-definitions/service-event-handler.xml.in new file mode 100644 index 000000000..aef6bc1bc --- /dev/null +++ b/interface-definitions/service-event-handler.xml.in @@ -0,0 +1,70 @@ + + + + + + + Service event handler + + + + + Event handler name + + + + + Logs filter settings + + + + + Match pattern (regex) + + + + + Identifier of a process in syslog (string) + + + + + + + Event handler script file + + + + + Script arguments + + + + + Script environment arguments + + + + + Environment value + + + + + + + Path to the script + + + + + + + + + + + + + + -- cgit v1.2.3