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 remote host poll fails, poller ID may not be found and cause errors #4519

Closed
reubenfarrelly opened this issue Dec 31, 2021 · 2 comments
Closed
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@reubenfarrelly
Copy link

The following backtrace and errors are seen when a host poll fails. In this case to trigger this I shut down net-snmpd on the remote system - and on the next poll run the errors are showing. The host itself is still up but the SNMP check times out because snmpd is not running.

This is a Gentoo x86_64 with php-8.1.1 and cacti with git 1.2.x branch (fully up to date). If the remote check succeeds these errors are not seen.

31/Dec/2021 12:07:22 - POLLER: Poller[Main Poller] PID[353] WARNING: Invalid Response, Device[HOST - tornado] DS[HOST - tornado - CPU Usage - System] Graphs[HOST - tornado - CPU Usage] OID:.1.3.6.1.4.1.2021.11.52.0, output: U
31/Dec/2021 12:07:12 - POLLER: Poller[Main Poller] PID[353] WARNING: Invalid Response, Device[HOST - tornado] DS[HOST - tornado - CPU Usage - Nice] Graphs[HOST - tornado - CPU Usage] OID:.1.3.6.1.4.1.2021.11.51.0, output: U
31/Dec/2021 12:07:02 - CMDPHP SQL Backtrace: (/cmd.php[349]:ping_and_reindex_check(), /cmd.php[859]:db_execute_prepared())
31/Dec/2021 12:07:02 - CMDPHP ERROR: A DB Exec Failed!, Error: Column 'poller_id' cannot be null
31/Dec/2021 12:07:02 - CMDPHP PHP ERROR WARNING Backtrace: (/cmd.php[349]:ping_and_reindex_check(), /cmd.php[862]:CactiErrorHandler())
31/Dec/2021 12:07:02 - ERROR PHP WARNING: Undefined variable $poller_id in file: /var/www/cacti/htdocs/cmd.php on line: 862
31/Dec/2021 12:07:02 - POLLER: Poller[Main Poller] PID[353] Device[HOST - tornado] DQ[ucd/net - Get Monitored Partitions] RECACHE ASSERT FAILED '8869900<
31/Dec/2021 12:06:42 - CMDPHP SQL Backtrace: (/cmd.php[349]:ping_and_reindex_check(), /cmd.php[859]:db_execute_prepared())
31/Dec/2021 12:06:42 - CMDPHP ERROR: A DB Exec Failed!, Error: Column 'poller_id' cannot be null
31/Dec/2021 12:06:42 - CMDPHP PHP ERROR WARNING Backtrace: (/cmd.php[349]:ping_and_reindex_check(), /cmd.php[862]:CactiErrorHandler())
31/Dec/2021 12:06:42 - ERROR PHP WARNING: Undefined variable $poller_id in file: /var/www/cacti/htdocs/cmd.php on line: 862
31/Dec/2021 12:06:42 - POLLER: Poller[Main Poller] PID[353] Device[HOST - tornado] DQ[SNMP - Interface Statistics] RECACHE ASSERT FAILED '8869900<
31/Dec/2021 12:03:24 - AUTH LOGIN: User 'reuben' Authenticated via Authentication Cookie

@reubenfarrelly reubenfarrelly added bug Undesired behaviour unverified Some days we don't have a clue labels Dec 31, 2021
@TheWitness TheWitness changed the title Tracebacks and errors when remote host poll fails (php-8.1 related?) Tracebacks and errors when remote host poll fails Dec 31, 2021
TheWitness added a commit that referenced this issue Dec 31, 2021
Tracebacks and errors when remote host poll fails
@TheWitness TheWitness added resolved A fixed issue and removed unverified Some days we don't have a clue labels Dec 31, 2021
@TheWitness TheWitness added this to the v1.2.20 milestone Dec 31, 2021
@TheWitness
Copy link
Member

Confirming. Thanks for testing @reubenfarrelly!

@netniV
Copy link
Member

netniV commented Jan 3, 2022

this needs a better title.

@netniV netniV changed the title Tracebacks and errors when remote host poll fails When remote host poll fails, poller ID may not be found and cause errors Apr 3, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2022
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