35: Event system
_______________________________________________________________________________________________________
_____________________________________________________________________________________________________
© Virtual Access 2017
GW1000 Series User Manual
Issue: 1.9
Page 332 of 350
| ntp | 4 | QueryFailed | warning | NTP query
failed: %{p1}
35.8.2
Viewing the event system config
To view the event system configuration via UCI, enter:
root@VA_router:~# uci show va_eventd
To view the event system config via package options
root@VA_router:~# uci export va_eventd
Example of event system configuration
As an example, the event system can be 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”
Example of output event package configuration:
package va_eventd
config va_eventd 'main'
option enabled 'yes'
option event_queue_file '/tmp/event_buffer'
option event_queue_size '128K'
config forwarding
option enabled 'yes'
option className 'l2tp'
option eventName 'CannotFindTunnel'
option severity 'debug-critical'
option target 'syslog'
config forwarding
option enabled 'yes'
option className 'mobile'
option severity 'notice-critical'