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

Non device based Data Sources not being polled #4863

Closed
holm-informatik opened this issue Jul 15, 2022 · 14 comments
Closed

Non device based Data Sources not being polled #4863

holm-informatik opened this issue Jul 15, 2022 · 14 comments
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Milestone

Comments

@holm-informatik
Copy link

Describe the bug

Somewhere between 1.2.16 and 1.2.20, non device based data sources (Device: None) stopped being polled (no data collected and does not show up in the poller cache). It worked in 1.2.16 and older, it does not seem to work after upgrading to 1.2.20 (and 1.2.21).

Rebuilding the poller cache (tested web and cli) does not help.

Cacti is running on Debian 11, php 7.4

@holm-informatik holm-informatik added bug Undesired behaviour unverified Some days we don't have a clue labels Jul 15, 2022
@TheWitness
Copy link
Member

Hmm, do they exist in the poller cache? Can you confirm?

@holm-informatik
Copy link
Author

No, they do not.

@TheWitness
Copy link
Member

I have to setup a reproduce environment.

@TheWitness
Copy link
Member

Run this. I just set one up and it worked perfectly:

SELECT * FROM data_local WHERE host_id = 0;

@TheWitness
Copy link
Member

Also the following;

SELECT COUNT(*) FROM poller_item WHERE host_id = 0;

@TheWitness TheWitness added this to the v1.2.22 milestone Jul 20, 2022
@holm-informatik
Copy link
Author

holm-informatik commented Jul 20, 2022

SELECT * FROM data_local WHERE host_id = 0;

iddata_template_idhost_idsnmp_query_idsnmp_indexorphan
26256000
42856000
48356000
88756000

SELECT COUNT(*) FROM poller_item WHERE host_id = 0;

COUNT(*)
 4

@holm-informatik
Copy link
Author

Tbh, I would not be surprised if there is som database corruption going on (been thru many updates). However, it worked in 1.2.16 and if I assign one of the affected data sources to a host, it works.

@TheWitness
Copy link
Member

Is that them though? They are in the poller cache.

@holm-informatik
Copy link
Author

Yes, it's them.

It would seem so but they are not present when looking in Console > Utilities > View Poller Cache and I get no data UNLESS I assign the Data Source to a device (so I assume that there is no problem with the data source itself).

@TheWitness
Copy link
Member

Run this and show me the output:

./spine -R -V 5 -S -f 0 -l 0

Maybe it's spine.

@holm-informatik
Copy link
Author

No, I'm not using spine...

@TheWitness
Copy link
Member

TheWitness commented Jul 22, 2022

cmd.php is similar

php -q cmd.php --debug --first=0 --last=0 --poller=1

@holm-informatik
Copy link
Author

cacti$ php -q cmd.php --debug --first=0 --last=0 --poller=1
Total[0.0093] NOTE: There are no items in your poller for this polling cycle!
cacti$ 

TheWitness added a commit that referenced this issue Jul 22, 2022
Non device based Data Sources not being polled
@TheWitness TheWitness added resolved A fixed issue confirmed Bug is confirm by dev team and removed unverified Some days we don't have a clue labels Jul 22, 2022
@TheWitness
Copy link
Member

Okay, reproduced. Update your cmd.php from the 1.2.x branch. Thanks for sticking in there.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

2 participants