https://github.com/perrywerneck/udjat-module-sqlite
SQLite module for libudjat
https://github.com/perrywerneck/udjat-module-sqlite
Last synced: 11 months ago
JSON representation
SQLite module for libudjat
- Host: GitHub
- URL: https://github.com/perrywerneck/udjat-module-sqlite
- Owner: PerryWerneck
- License: gpl-3.0
- Created: 2022-04-01T10:38:24.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-30T10:46:45.000Z (over 2 years ago)
- Last Synced: 2025-02-21T15:51:34.219Z (over 1 year ago)
- Language: C++
- Size: 104 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
# SQLite database module for udjat
Allow storing url based alerts in a sqlite database to avoid missing then in case of a network or server failure.
[](https://www.gnu.org/licenses/gpl-3.0)

[](https://build.opensuse.org/package/show/home:PerryWerneck:udjat/udjat-module-sqlite)
## Using agent
### Examples
[Udjat](../../../udjat) service configuration to store an [user module](../../../udjat-module-users) alert on sqlite database:
```xml
create table if not exists alerts (id integer primary key, inserted timestamp default CURRENT_TIMESTAMP, url text, action text, payload text)
insert into alerts (url,action,payload) values (?,?,?)
select id,url,action,payload from alerts limit 1
delete from alerts where id=?
select count (*) from alerts
{"user":"${username}","macaddress":"${macaddress}"}
```