plugin_flowview
plugin_flowview copied to clipboard
Invalid paths in flowview/service/flow-capture and flowview/service/flowview-capture.service
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:
- Install Cacti from Debian packages on debian Trixie
- Pull Flowview from git
- Install and configure the flowview-capture service:
- Update the flowview-capture.service paths to the correct script location.
- Update the flowview-capture.service user to 'www-data'
- Add and configure a new listener
- 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