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

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

Open
gcrumb opened this issue Sep 18, 2024 · 4 comments
Labels

Comments

@gcrumb
Copy link

gcrumb commented Sep 18, 2024

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
@TheWitness
Copy link
Member

Were you going to propose a pull request?

@gcrumb
Copy link
Author

gcrumb commented Sep 18, 2024

Sorry I don't have a devel environment set up. I'm not (currently) a software dev. Just trying to get a local device working.

TheWitness added a commit that referenced this issue Sep 19, 2024
@TheWitness
Copy link
Member

@gcrumb, check the update flow-capture service and let us know if it's better after you follow the remainder of the install process now.

@TheWitness TheWitness added the bug label Sep 19, 2024
@gcrumb
Copy link
Author

gcrumb commented Sep 20, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants