Page MenuHomeVyOS Platform

Add feature event-handler
Closed, ResolvedPublicFEATURE REQUEST

Description

Event handler allows you to execute scripts when a string that matches a regex appears in a text stream (e.g. log file).
https://docs.vyos.io/en/latest/system/eventhandler.html

set system event-handler

And that feature was in the LTS release.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Internal change (not visible to end users)

Related Objects

Event Timeline

erkin set Issue type to Internal change (not visible to end users).Aug 29 2021, 12:13 PM
erkin removed a subscriber: Active contributors.

PR https://github.com/vyos/vyos-1x/pull/1340

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'
Viacheslav changed the task status from Open to Needs testing.Jun 8 2022, 10:54 AM
Viacheslav moved this task from Backlog to Finished on the VyOS 1.4 Sagitta board.
Viacheslav moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus (1.3.3) board.