plugin_flowview icon indicating copy to clipboard operation
plugin_flowview copied to clipboard

Invalid paths in flowview/service/flow-capture and flowview/service/flowview-capture.service

Open gcrumb opened this issue 5 months ago • 4 comments

Describe the bug Function get_cacti_base() at line 113 includes this list of base directories:

$cacti_bases = array(
	'/var/www/html/cacti',
	'/usr/local/share/cacti',
	'/usr/share/cacti',
	'/var/www/html',
	'/opt/cacti'
);

The second entry is incorrect in Cacti v 1.2.27 as packaged in Debian Trixie. The actual path is:

	'/usr/local/share/cacti/site',

A second issue, which made diagnosis harder, is that /var/log/cacti/poller.log is owned by root, but the flowview-capture service runs as the website user (changed to www-data in this installation).

To Reproduce Steps to reproduce the behavior:

  1. Install Cacti from Debian packages on debian Trixie
  2. Pull Flowview from git
  3. Install and configure the flowview-capture service:
  4. Update the flowview-capture.service paths to the correct script location.
  5. Update the flowview-capture.service user to 'www-data'
  6. Add and configure a new listener
  7. Listener shows status 'Down'.

Expected behavior Correct Debian path should be included in the array of potential paths.

Plugin (please complete the following information): [info] name = flowview version = 4.8 longname = FlowView author = The Cacti Group email = [email protected] homepage = http://www.cacti.net compat = 1.2.28 capabilities = online_view:0, online_mgmt:0, offline_view:0, offline_mgmt:0, remote_collect:0

Desktop (please complete the following information):

  • OS: trixie/sid

gcrumb avatar Sep 18 '24 22:09 gcrumb