ntopng/scripts/callbacks
Luca 686112d3eb Initial implementation of host check rules. This is work in progress and ** subject to change **
Under the network interface -> Wheel there's a new field named "JSON Host Rules"
that can accept JSON in the format below:

- target can be * (= all local hosts) or a specific IP address
- frequency can be hourly or daily and it specifies the timeperiod on which the condition is evaluated
- metric can be set to bytes, score or a L7 protocol supported in nDPI
- threshold is the numerical value over which the alert is triggered

[
{ "target": "*",  "frequency": "hourly", "metric": "bytes",  "threshold": 354333 },
{"target": "146.48.56.79","metric": "AmazonAWS","frequency": "daily","threshold": 5000 }
]
2022-11-02 19:00:45 +01:00
..
5minute (C) Update 2022-02-20 23:17:50 +01:00
5minute-delayed/interface Removed as it was not supposed to stay here 2022-03-26 09:15:32 +01:00
5second/system Renamed influxdb.lua -> upload_timeseries.lua as this file had nothing to do with influxDB 2022-07-06 00:12:39 +02:00
daily-delayed Initial implementation of host check rules. This is work in progress and ** subject to change ** 2022-11-02 19:00:45 +01:00
hourly/system Puttin script out of hour sync to avoid overload on speedtest servers (#6547) 2022-04-28 23:10:04 +02:00
hourly-delayed Initial implementation of host check rules. This is work in progress and ** subject to change ** 2022-11-02 19:00:45 +01:00
minute Removed unused require 2022-08-12 11:10:00 +02:00
minute-delayed/interface Moved to pro 2022-04-14 22:12:08 +02:00
second/system Copyright update (Lua) 2022-01-03 09:42:33 +01:00
system Skip connectivity check if forced offline 2022-05-12 11:45:53 +02:00