Assistance with Flowview

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
fiberplz
Posts: 2
Joined: Wed Nov 20, 2024 6:57 pm

Assistance with Flowview

Post by fiberplz »

Running flowview 4.8 from official github
Cacti 1.2.27

Fresh install on CentOS 9. Export sflow from hsflowd on another centos 9 vm. Traffic appears to be passing according to tcpdump.


I am getting the following error:

2024-11-20 19:31:25 - CMDPHP SQL Backtrace: (/plugins/flowview/flow_collector.php[797]:update_stream_stats(), /plugins/flowview/flow_collector.php[895]:flowview_db_execute_prepared(), /plugins/flowview/database.php[85]:db_execute_prepared())
2024-11-20 19:31:25 - CMDPHP ERROR: A DB Exec Failed!, Error: Column 'version' cannot be null
2024-11-20 19:31:25 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/flowview/flow_collector.php[797]:update_stream_stats(), /plugins/flowview/flow_collector.php[895]:CactiErrorHandler())
2024-11-20 19:31:25 - ERROR PHP WARNING in Plugin 'flowview': Undefined variable $db_version in file: /usr/share/cacti/plugins/flowview/flow_collector.php on line: 895
Attachments
Screenshot 2024-11-20 at 7.39.16 PM.png
Screenshot 2024-11-20 at 7.39.16 PM.png (176.8 KiB) Viewed 525 times
fiberplz
Posts: 2
Joined: Wed Nov 20, 2024 6:57 pm

Re: Assistance with Flowview

Post by fiberplz »

I updated to the version 1.2.x from github, still having errors, I added debug and increase the log verbosity and get this error:
Attachments
Screenshot 2024-11-20 at 9.19.01 PM.png
Screenshot 2024-11-20 at 9.19.01 PM.png (241.29 KiB) Viewed 521 times
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Assistance with Flowview

Post by macan »

It seems that your device sending something version other than 5,9 or 10.

Please edit file flow_collector.php on line 881

} elseif ($version == 10) {
$db_version = 'IPFIX';
}

$update_time = date('Y-m-d H:i:s');

to

} elseif ($version == 10) {
$db_version = 'IPFIX';
} else {
cacti_log('xxxxxx:' . $version . ':xxxxxx' , false, 'FLOWVIEW');
}

$update_time = date('Y-m-d H:i:s');

Restart flow collector and you should have in cacti log lines with xxxx. Please post here few lines.
Let the Cacti grow!
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Assistance with Flowview

Post by macan »

please post screenshot of console -> Flowview -> Listeners -> Templates tab (choose correct ex addr in filter)
Let the Cacti grow!
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Assistance with Flowview

Post by TheWitness »

Provide screen Shots of each template including all columns, most importantly the unsupported. Also, please describe the device model and vendor.
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests