Page MenuHomeVyOS Platform

Add feature event-handler
Needs testing, Requires assessmentPublicFEATURE 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)

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