====== Qnaplog plugin ====== This plugin reads the Qnap logs (connections or events). The plugin dont disturb the standby of the Qnap. Only when the log files are changed, the plugin reads the sqlite database. ---- ===== Settings ===== Plugin QnapLog { # database '/etc/logs/conn.log' # if none, /etc/logs/conn.log is assumed } Will be implemented in the future. ===== Functions ===== |qnaplog::conn(f)|call qnaplog::conn() and return field | |qnaplog::event(f)|call qnaplog::event() and return field | The field 'fconn' can have the following values: |**Field**|**Description**| |ressource|description of ressource (filename etc.| |ip|ip address of the user| |type|type like Information, Warning, Error| |action|action like Read, Write, Add, Delete| |serv|connection like HTTP, Samba, SSH| |user|name of the user| |computer|name of the connected computer| |time|access time| |date|access date| The field 'fevent' can have the following values: |**Field**|**Description**| |user|name of the user| |computer|name of the connected computer| |description|description of the event| |ip|ip address of the user| |type|type like Information, Warning, Error| |time|access time| |date|access date| ---- ===== Examples ===== Widget QnaplogActionFile { class 'Text' expression qnaplog::conn('action').': '.qnaplog::conn('ressource') width 20 foreground '0000bbff' align 'M' speed 200 update 1000 } Example result: 'Read: home/data/file.txt' Widget QnaplogDate { class 'Text' expression qnaplog::conn('date') prefix 'Date: ' width 20 foreground '0000bbff' align 'L' update 1000 } Example result: 'Date: 2009-04-25' Widget QnapEventDesc { class 'Text' expression qnaplog::event('description') prefix 'Event: ' width 20 foreground '0000bbff' align 'M' speed 200 update 1000 } Example result: 'Event: HDD SMART: HDD 1 Quick Test started.' ----