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

When querying for diagnostic data, devices on remote pollers should proxy the request #2568

Closed
stefanbrudny opened this issue Mar 24, 2019 · 4 comments
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@stefanbrudny
Copy link

Describe the bug
when executing debug query on indexed interfaces on Central Cacti user is given no results. Same time, this query can be executed with success on remote Poller.

Workaround:
reindex interfces on remote hosts only?
cact

To Reproduce
Use central cacti to execute debug query for a device attached to remote poller.

Expected behavior
It is expected Central Cacti is able to execute debug query from remote host.

@cigamit
Copy link
Member

cigamit commented Mar 26, 2019

You mean a verbose query? It works for me. What are you getting back from the verbose query? Looks like maybe a communication issue between the primary server and the remote data collector. The primary/central server/collector uses the hostname in the remote data collector to communicate over port 80 or 443 to exchange debug. It could be that the hostname that you are using is not known to the main server, or port 80/443 are not open.

@cigamit cigamit added not a bug Not a bug as determined by dev question A question not a bug labels Mar 26, 2019
@stefanbrudny
Copy link
Author

Sorry, that was slightly in hurry.

Look, this is verbose query for a device belonging to remote poller, query is executed from main cacti:
image

All good. Let's add a bridge to the host and re-execute the query:

image

Now I have three interfaces but two available for Cacti.

Workaround: execute query from remote poller, and not exactly to which the device belongs to.

THis is further confirmed here:
image

Reload query doesn't work either.

@cigamit
Copy link
Member

cigamit commented Mar 27, 2019

grep for "remote_agent" and then "reload" in the apache access log on the remote data collector, let me know if it's running. Is the remote data collector in online mode? The fact that it's returning data means that it's working. The only reason it would not return results back to the main server through the mysql connection would be if the remote collector is in offline mode for some undefined reason.

@cigamit
Copy link
Member

cigamit commented Mar 27, 2019

On a hunch, I tested, and verified the issue.

@cigamit cigamit added bug Undesired behaviour and removed not a bug Not a bug as determined by dev question A question not a bug labels Mar 27, 2019
cigamit added a commit that referenced this issue Mar 27, 2019
Multi Poller: execute refresh or debug query works only on remote poller
@cigamit cigamit added the resolved A fixed issue label Mar 27, 2019
@cigamit cigamit closed this as completed Mar 27, 2019
@netniV netniV added this to the v1.2.3 milestone Mar 28, 2019
@netniV netniV changed the title Cacti 1.2.2: Multi Poller: execute refresh or debug query works only on remote poller When querying for diagnostic data, devices on remote pollers should proxy the request Mar 30, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

3 participants