Commit graph

496 commits

Author SHA1 Message Date
Simone Mainardi
0e4e4e5906 Implements flow alerts 2016-11-23 13:10:59 +01:00
Simone Mainardi
0c783fa0aa Code cleanup 2016-11-19 15:25:03 +01:00
Simone Mainardi
619f2f1ac4 Adds name resolutions to alerts stats 2016-11-18 20:59:41 +01:00
Simone Mainardi
129dc18210 Implements alerts origin/target 2016-11-18 18:22:30 +01:00
Simone Mainardi
5f6170627e Implements alerts dashboard (wip) 2016-11-16 19:18:34 +01:00
Simone Mainardi
86eceb6fe6 Implements AJAX Alerts Pie Charts 2016-11-15 18:52:03 +01:00
Simone Mainardi
6194dc955a Implements maximum alerts limit per alarmed entity 2016-10-18 17:44:35 +02:00
Simone Mainardi
dda9a2ea64 Visualization/Retrieval of Host Alerts 2016-10-08 22:07:51 +02:00
Simone Mainardi
db544882f1 Minor fix to release engaged alerts 2016-09-14 16:18:28 +02:00
Simone Mainardi
a280e53862 Completes the migration to the stateful alerts 2016-09-06 16:36:05 +02:00
Simone Mainardi
e255b5218b Implements the API for stateful interface alerts 2016-09-06 14:41:16 +02:00
Simone Mainardi
c3be02485f Handles refreshes of user-configured network alerts 2016-09-02 15:18:42 +02:00
Simone Mainardi
441857d34d Implements stateful network alerts 2016-09-02 14:59:54 +02:00
Simone Mainardi
12f24a87b4 Implements stateful alerts in C and sqlite 2016-08-11 19:56:49 +02:00
Simone Mainardi
12aa4c7399 Fixes after removal of the NetworkInterfaceView code 2016-08-10 11:21:08 +02:00
Simone Mainardi
431b0d96ed Implements a function to obtain suppressed alerts redis keys 2016-08-09 19:17:42 +02:00
Simone Mainardi
52abb7659a Handles per-interface alerts via the AlertsManager
This commit moves the global ntopng-wide alerts to
interfaces' AlertsManager s
2016-08-09 16:47:36 +02:00
Simone Mainardi
246c58c1ac Implements stateful threshold host alerts 2016-08-08 16:53:45 +02:00
Simone Mainardi
f1d3dbb455 Stateful host alerts now 'require' a lua API
This commit is a companion of professional version commit

commit 2b6e5358a71179a728edc0a8e591ffb883d626ab
Date:   Mon Aug 1 22:07:37 2016 +0200

    Refactors stateful host alerts to provide an API
2016-08-01 22:08:34 +02:00
Simone Mainardi
e674c73a2e Simplifies the API for stateful host alerts 2016-08-01 18:22:43 +02:00
Simone Mainardi
845250f5a0 Reworks thresholds alerts management to allow function override
Functions will be overridden in the professional version
2016-07-29 19:44:18 +02:00
Simone Mainardi
64e98766e7 Minor fix to improve robustness of alerts re arming 2016-07-28 16:01:05 +02:00
Simone Mainardi
2ec5c8e798 Replaces sub with gsub for string substitution 2016-07-28 15:48:41 +02:00
Simone Mainardi
a31225e2ab Sets vlan 0 to implicit for nagios alerts
This is to ensure backward compatibility with previous
nagios alert format.
2016-07-28 15:45:11 +02:00
Simone Mainardi
85c5beb545 Implements alerts on a per-interface per-vlan basis
Interfaces were handled globally before this commit. Now
alerts can be configured per-interface. So for example alerts
for the same host 193.168.2.1 can be handled differently on multiple interfaces.

Old alerts configured should be automatically migrated thanks to script startup.lua

This commits also paves the way to introduce stateful alerts in the professional version
2016-07-27 22:10:17 +02:00
Simone Mainardi
106ba35d2c Removes redundant calls in alerts 2016-07-26 20:06:45 +02:00
Luca Deri
63879f9635 Added new alert to track idle hosts 2016-06-08 16:44:49 +02:00
Simone Mainardi
58bc707cd1 Minor fix for interface alerts 2016-06-06 21:45:25 +02:00
Simone Mainardi
95a4618c17 Fixes alert scan that was causing possible issues in periodic scripts
Method scanAlerts was called inside a loop over the interfaces in minute.lua.
Since scanAlerts was looping over the interfaces as well, this was causing
interfaces to be deselected from the outer loop.

This commit fixes the issues by forcing scanAlerts to receive an input interface.

Fixes #582
2016-06-04 18:22:13 +02:00
Luca
bc6a018415 Enhanced alerts: added alarm status on/off/permanent to handle in the future for counting pending issues 2016-04-19 10:51:53 +02:00
Simone Mainardi
6ce3ae37ee Fixes an 'expected string, got nil'
Fixes
[Lua.cpp:76] ERROR: ntop_get_file_dir_exists : expected string, got nil
2016-03-21 20:41:16 +01:00
Simone Mainardi
d89cde0409 Handles interface alerts with ids
The Interface Alerts toggle button was not working. This
commit fixes this bug as well.
2016-03-16 19:53:13 +01:00
Simone Mainardi
e6a8396795 Fixes a minor bug in interface alert re-arm 2016-02-16 17:33:43 +01:00
Simone Mainardi
03bfb38b3d Fixes a minor typo 2015-12-20 17:02:45 +01:00
Simone Mainardi
8b01d5b2c3 Adds nagios alert deactivation notifications
Nagios services are notified when ntopng
alerts are deactivated
2015-12-20 16:19:15 +01:00
Simone Mainardi
63bcbb12c7 Adds status information to nagios alerts
Alert status information is propagated together with nagios alerts.
This status will be used by nagios to handle service statuses.
2015-12-19 15:08:18 +01:00
Simone Mainardi
d0b580f934 Adds Re-Arm Time for Alerts
A re-arm period is added to alarms so that
back-to-back alarms can be silenced.
2015-12-18 19:59:03 +01:00
Simone Mainardi
b41f7c28b4 Implements the alerting system on a per-network basis
Multiple commits have been squashed here:
- Adds alert configuration page for local networks
- Cleans unused branch
- Adds alert settings for local networks
- Implements alerts for networks
2015-12-03 19:24:32 +01:00
Luca Deri
4dd80d4778 Partial rework of NetworkInterfaceView (work in progress) 2015-09-16 00:41:29 +02:00
Luca Deri
41fd595850 Fixed /json/ path (using numeric interface name)
Replaced "Home" in menu with an icon
2015-05-30 13:14:51 +02:00
Arianna Avanzini
6b3a99d841 alert_utils.lua: handle slashes in interface names
This commit lets the per-interface alert code handle weird interface
names, e.g. collector interface names which contain slashes.
2015-05-21 16:56:19 +02:00
Arianna Avanzini
1503b1f3c0 alert_utils.lua: handle non existance of last dump
This commit handles the case where the last dump used for
interface alerts does not exist.
2015-05-21 16:06:18 +02:00
Arianna Avanzini
f655cc2804 scripts/lua/if_stats.lua: implement per-interface alerts
This commit implements customizable threshold-based alerts which
are handled per-interface. Alerts are accessible via the alerts
tab of the interface menu of the web GUI.
This addresses issue #21.
2015-05-20 23:10:55 +02:00
Luca
a1cb0ac1c8 Added geohash mapping to flows 2015-05-15 17:56:04 +02:00
Luca
773383e48b Fixed bug in hosts alert generation: alerts were not generated due to invalid redis key 2015-05-11 16:05:55 +02:00
Luca
730d76b9f5 Initial import from SVN 2015-04-30 12:22:35 +02:00