Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to ntopng 4 #19

Merged
merged 13 commits into from
Jun 11, 2020
Merged

Upgrade to ntopng 4 #19

merged 13 commits into from
Jun 11, 2020

Conversation

gsanchietti
Copy link
Member

@gsanchietti gsanchietti commented Jun 3, 2020

  • Adapt configuration for the new release
  • Remove alerts property
  • Code cleanup

NethServer/dev#6199

Upstream packages available in nethserver-testing:

  • n2n-2.6.0-250.x86_64.rpm
  • ndpi-3.2.0-2477.x86_64.rpm
  • ntopng-4.0.200525-9255.x86_64.rpm
  • ntopng-data-4.0.200525-9255.noarch.rpm
  • pfring-7.6.0-3000.x86_64.rpm

Also:
- disable pfring
- disable cluster
ntopng now writes on a different directory, also the rotation should be
handled directly by the daemon
The same configuation should be done directly from ntopg UI
Fix upstream package which forcibly enable the default redis instance.
We do not need it, because we are using a custom redis instance.
@gsanchietti gsanchietti self-assigned this Jun 3, 2020
@nethbot
Copy link
Member

nethbot commented Jun 3, 2020

in 7.8.2003/autobuild:

@nethbot
Copy link
Member

nethbot commented Jun 4, 2020

in 7.8.2003/autobuild:

@gsanchietti
Copy link
Member Author

gsanchietti commented Jun 4, 2020

Added lua script for Cockpit dashboard.

Output example:

[
  {
    "key": "192__168__2__203",
    "flows": 40,
    "since": 15341,
    "throughput": 17982.580078125,
    "name": "test.nethserver.local",
    "ip": "192.168.2.203",
    "direction": "download",
    "traffic": 1257900282
  },
  {
    "key": "192__168__2__250",
    "flows": 1,
    "since": 2051897,
    "throughput": 7311.3701171875,
    "name": "t2.test.local",
    "ip": "192.168.2.250",
    "direction": "upload",
    "traffic": 446684482
  },
  ...
]

APIs:

  • Top local hosts: curl 'http://localhost:3000/lua/nethserver.lua?mode=local&currentPage=1&sortColumn=column_thpt&sortOrder=desc&long_names=1' | jq
  • Top remote hosts: curl 'http://localhost:3000/lua/nethserver.lua?mode=remote&currentPage=1&sortColumn=column_thpt&sortOrder=desc&long_names=1' | jq
  • Traffic for all interfaces: curl 'http://localhost:3000/lua/rest/get/interface/data.lua?ifid=1000' | jq
  • Traffic by protocol: curl 'http://localhost:3000/lua/if_stats_ndpi.lua?format=json' | jq

@nethbot
Copy link
Member

nethbot commented Jun 9, 2020

in 7.8.2003/autobuild:

Cockpit module for ntopng 4.

Pages:
- Dashboard
- Settings
- Logs
- About
@gsanchietti gsanchietti removed their assignment Jun 10, 2020
@gsanchietti gsanchietti marked this pull request as ready for review June 10, 2020 16:13
@nethbot
Copy link
Member

nethbot commented Jun 10, 2020

in 7.8.2003/autobuild:

@gsanchietti gsanchietti merged commit a2a8b5c into master Jun 11, 2020
@gsanchietti gsanchietti deleted the ntopng4 branch June 11, 2020 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants