User manual
28: Event system
_______________________________________________________________________________________________________
config target
option name logit
option enabled yes
option type exec
option cmd_template "logger -t eventer %{eventName}"
The table below describes exec target parameters.
Name Type Required Default Description
name String Yes None
Name of the target to be used in
the forwarding section
enabled Boolean Yes Yes Enable this target
type String Yes exec Must be exec for a exec target
cmd_template String Yes None
Template of the command to
execute
Table 34: Event system – exec target settings description
28.6.5 Example and export
As an example, the event system is configured to:
• Forward the “l2tp” event “CannotFindTunnel” with a severity between
debug and critical to a syslog server
• Forward all “mobile” events with a severity between notice and critical to
a SNMP trap manager
• Execute “logger -t eventer %{eventName}” when an “Ethernet” event
occurs
• Forward all “auth” events via email
• Connection to the SNMP and syslog server is checked by sending pings
• Connection to the smtp server is verified by checking the state of “eth0”
To view the configuration file, enter:
uci export va_eventd
root@test:~# uci export va_eventd
package va_eventd
config va_eventd 'main'
option enabled 'yes'
option event_queue_file '/tmp/event_buffer'
option event_queue_size '128K'
_______________________________________________________________________________________________________
© Virtual Access 2015
GW1000 Series User Manual
Issue: 2.4 Page 208 of 255