Netflow plugins

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
anmomin1
Cacti User
Posts: 63
Joined: Mon May 29, 2017 4:14 pm

Netflow plugins

Post by anmomin1 »

Any recommendation for netflow puglins.. is there one for Free? or low cost ?
Can it be used as addons in cacti or weathermap?
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Netflow plugins

Post by cigamit »

netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Netflow plugins

Post by netniV »

If you are downloading from above, I would suggest that you use the released versions. The develop is under development.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
anmomin1
Cacti User
Posts: 63
Joined: Mon May 29, 2017 4:14 pm

Re: Netflow plugins

Post by anmomin1 »

@cigamit and @netniV

Thanks for your response..
https://github.com/cacti/plugin_flowview
i checked.. it says it will show report off of your netflow data.. so you need netflow collector separately?

@netniV
When you says released version what that means? latest stable version? is it 2.1 ?

Thanks.
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Netflow plugins

Post by cigamit »

If you use the master branch, it requires you use the flow-tools binaries and set it up to collect data. The development branch does it own processing, but as it is under active development, it is not ready for prime time just yet (lots of bugs).
darrenh
Posts: 3
Joined: Mon Mar 10, 2014 4:15 pm

Re: Netflow plugins

Post by darrenh »

Hi,
do you have explicit instructions for getting netflow working on cacti 1.x?
i am running .28 right now (second newest), and the port never opens up.
There is very limited instructions in the README file in the zip, it doesn't mention anything about using a third party collector anymore, and most of the config fields are missing from the new version (i assume because cacti is running the collector and not relying on flow-tools or similar to store it).

other than unzipping, installing and enabling through the web interface, is there anything else required as long as that port is open on the pc?

i tried unzipping the .tgz file for 0.8.8 master and it says the file is not complete download of version 1.1 regardless of how many times i download it or where i download it to, appears corrupt?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Netflow plugins

Post by TheWitness »

The 'develop' version is now safe. We would like more people to test it. The reporting is still pretty limited, but it's better than darkness.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
Jeeves
Cacti User
Posts: 91
Joined: Wed Jun 12, 2013 6:25 pm

Re: Netflow plugins

Post by Jeeves »

TheWitness wrote: Tue Mar 10, 2020 7:59 am The 'develop' version is now safe. We would like more people to test it. The reporting is still pretty limited, but it's better than darkness.
I decided to set this up for testing. tcpdump shows data incoming on the port but the Listener shows as down. Suggestions?

edit:
I personally have the same questions as above;
darrenh wrote: Wed Feb 12, 2020 11:57 am other than unzipping, installing and enabling through the web interface, is there anything else required as long as that port is open on the pc?
Looking through the install docs, I see nothing explaining the .sql file (does it need imported?) nor anything explaining how flow-capture gets kicked off.

edit2:
I poked around and fired up /flow-capture manually (/usr/bin/flow-capture -w /var/netflow/flows 0/0/2055 -S5 -V5 -z4).
However, when trying to create filters, I receive "SQL Save on table 'plugin_flowview_queries': Column 'device_id' does not exist, unable to save!"
Equally, nothing appears to be accumulating in /var/netflow/flows.
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Netflow plugins

Post by cigamit »

Did you setup the service? Also, just something to note until we fix it, the service file has a hard coded path to /var/www/html/cacti/ so you may have to fix that in your install.
User avatar
Jeeves
Cacti User
Posts: 91
Joined: Wed Jun 12, 2013 6:25 pm

Re: Netflow plugins

Post by Jeeves »

cigamit wrote: Wed Mar 11, 2020 2:52 pm Did you setup the service? Also, just something to note until we fix it, the service file has a hard coded path to /var/www/html/cacti/ so you may have to fix that in your install.
I did the following:
- Uninstalled flow-tools
- Walked through the install steps (that I didn't know were there) - here.
-- Sidenote: There's a missed letter in the readme - Then, run 'systemtl enable flow-capture'
- Fixed hardcoded path
- setup the service via systemd.
- setup the 2 flowview options under misc.
- Listener is reported as up by both systemctl and Cacti

Code: Select all

systemctl status flow-capture
● flow-capture.service - Flow Capture Service for Cacti
   Loaded: loaded (/usr/lib/systemd/system/flow-capture.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2020-03-11 14:46:12 MDT; 8s ago
  Process: 61567 ExecStart=/usr/bin/php -q /usr/share/cacti/plugins/flowview/service/flow-capture --systemd (code=exited, status=0/SUCCESS)
 Main PID: 61570 (php)
   CGroup: /system.slice/flow-capture.service
           └─61570 /usr/bin/php -q /usr/share/cacti/plugins/flowview/flow_collector.php --listener-id=2

Mar 11 14:46:11 cacti systemd[1]: Starting Flow Capture Service for Cacti...
Mar 11 14:46:12 cacti php[61567]: NOTE: Starting Flow Collection
Mar 11 14:46:12 cacti php[61567]: NOTE: Launching cacti-flow-capture as '/usr/share/cacti/plugins/flowview/flow_collector.php --listener-id=2'
Mar 11 14:46:12 cacti systemd[1]: Started Flow Capture Service for Cacti.
Tried to setup filters;
- New Filter
- Change nothing, click save:
Image

My source is a v9 source, I do not see data anywhere and the obvious Cacti sql error seems to lead me to believe a table is missing.
User avatar
Jeeves
Cacti User
Posts: 91
Joined: Wed Jun 12, 2013 6:25 pm

Re: Netflow plugins

Post by Jeeves »

Followup;
And it's vomiting errors;
2020/03/11 16:02:06 - CMDPHP PHP ERROR NOTICE Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[647]:CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP NOTICE in Plugin 'flowview': Undefined offset: 1 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 647
2020/03/11 16:02:06 - CMDPHP PHP ERROR WARNING Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[513]:unpack(), CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP WARNING in Plugin 'flowview': unpack(): Type n: not enough input, need 2, have 0 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 513
2020/03/11 16:02:06 - CMDPHP PHP ERROR NOTICE Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[563]:CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP NOTICE in Plugin 'flowview': Undefined offset: 9 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 563
2020/03/11 16:02:06 - CMDPHP PHP ERROR NOTICE Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[563]:CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP NOTICE in Plugin 'flowview': Undefined offset: 9 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 563
2020/03/11 16:02:06 - CMDPHP PHP ERROR NOTICE Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[567]:CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP NOTICE in Plugin 'flowview': Undefined offset: 16 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 567
2020/03/11 16:02:06 - CMDPHP PHP ERROR NOTICE Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[567]:CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP NOTICE in Plugin 'flowview': Undefined offset: 16 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 567
2020/03/11 16:02:06 - CMDPHP PHP ERROR NOTICE Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[563]:CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP NOTICE in Plugin 'flowview': Undefined offset: 9 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 563
2020/03/11 16:02:06 - CMDPHP PHP ERROR NOTICE Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[567]:CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP NOTICE in Plugin 'flowview': Undefined offset: 16 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 567
2020/03/11 16:02:06 - CMDPHP PHP ERROR NOTICE Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[567]:CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP NOTICE in Plugin 'flowview': Undefined offset: 16 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 567
2020/03/11 16:02:06 - CMDPHP PHP ERROR NOTICE Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[563]:CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP NOTICE in Plugin 'flowview': Undefined offset: 9 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 563
2020/03/11 16:02:06 - CMDPHP PHP ERROR NOTICE Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[563]:CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP NOTICE in Plugin 'flowview': Undefined offset: 9 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 563
2020/03/11 16:02:06 - CMDPHP PHP ERROR NOTICE Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[563]:CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP NOTICE in Plugin 'flowview': Undefined offset: 9 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 563
2020/03/11 16:02:06 - CMDPHP PHP ERROR NOTICE Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[567]:CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP NOTICE in Plugin 'flowview': Undefined offset: 16 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 567
2020/03/11 16:02:06 - CMDPHP PHP ERROR NOTICE Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[567]:CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP NOTICE in Plugin 'flowview': Undefined offset: 16 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 567
2020/03/11 16:02:06 - CMDPHP PHP ERROR NOTICE Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[563]:CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP NOTICE in Plugin 'flowview': Undefined offset: 9 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 563
2020/03/11 16:02:06 - CMDPHP PHP ERROR NOTICE Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[567]:CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP NOTICE in Plugin 'flowview': Undefined offset: 16 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 567
2020/03/11 16:02:06 - CMDPHP PHP ERROR NOTICE Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[567]:CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP NOTICE in Plugin 'flowview': Undefined offset: 16 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 567
2020/03/11 16:02:06 - CMDPHP PHP ERROR NOTICE Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[563]:CactiErrorHandler())
2020/03/11 16:02:06 - ERROR PHP NOTICE in Plugin 'flowview': Undefined offset: 9 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 563
and
2020/03/11 16:58:28 - CMDPHP PHP ERROR WARNING Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[513]:unpack(), CactiErrorHandler())
2020/03/11 16:58:28 - ERROR PHP WARNING in Plugin 'flowview': unpack(): Type n: not enough input, need 2, have 0 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 513
2020/03/11 16:58:27 - CMDPHP PHP ERROR WARNING Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[513]:unpack(), CactiErrorHandler())
2020/03/11 16:58:27 - ERROR PHP WARNING in Plugin 'flowview': unpack(): Type n: not enough input, need 2, have 0 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 513
2020/03/11 16:58:26 - CMDPHP PHP ERROR WARNING Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[660]:process_v9_v10(), /var/lib/cacti/plugins/flowview/flow_collector.php[999]:CactiErrorHandler())
2020/03/11 16:58:26 - ERROR PHP WARNING in Plugin 'flowview': Division by zero in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 999
2020/03/11 16:58:26 - CMDPHP PHP ERROR WARNING Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[660]:process_v9_v10(), /var/lib/cacti/plugins/flowview/flow_collector.php[999]:CactiErrorHandler())
2020/03/11 16:58:26 - ERROR PHP WARNING in Plugin 'flowview': Division by zero in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 999
2020/03/11 16:58:26 - CMDPHP PHP ERROR WARNING Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[513]:unpack(), CactiErrorHandler())
2020/03/11 16:58:26 - ERROR PHP WARNING in Plugin 'flowview': unpack(): Type n: not enough input, need 2, have 0 in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 513
2020/03/11 16:58:25 - CMDPHP PHP ERROR WARNING Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[660]:process_v9_v10(), /var/lib/cacti/plugins/flowview/flow_collector.php[999]:CactiErrorHandler())
2020/03/11 16:58:25 - ERROR PHP WARNING in Plugin 'flowview': Division by zero in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 999
2020/03/11 16:58:24 - CMDPHP PHP ERROR WARNING Backtrace: (/var/lib/cacti/plugins/flowview/flow_collector.php[335]:process_fv9(), /var/lib/cacti/plugins/flowview/flow_collector.php[660]:process_v9_v10(), /var/lib/cacti/plugins/flowview/flow_collector.php[999]:CactiErrorHandler())
2020/03/11 16:58:24 - ERROR PHP WARNING in Plugin 'flowview': Division by zero in file: /var/lib/cacti/plugins/flowview/flow_collector.php on line: 999
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Netflow plugins

Post by Osiris »

Log this on GitHub please. Please also describe the source of the flow data too.
Before history, there was a paradise, now dust.
User avatar
Jeeves
Cacti User
Posts: 91
Joined: Wed Jun 12, 2013 6:25 pm

Re: Netflow plugins

Post by Jeeves »

Osiris wrote: Wed Mar 11, 2020 8:55 pm Log this on GitHub please. Please also describe the source of the flow data too.
Sure thing.
I am not a developer, so I am unsure if this is two bugs (SQL & v9 collector not working) or all related (SQL maybe?)
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Netflow plugins

Post by Osiris »

Looking at the output, whomever is supplying the v9 flow data, has inserted something into the stream that appears to not follow the v9 protocol as it's been implemented in Cacti.

That is why it's important that we know if this is Cisco, Mikrotik or some other vendors implementation of Netflow. So, make and model of the router and the software version would be helpful.
Before history, there was a paradise, now dust.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests