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 boost does not find an initial time, numeric errors can be raised #3277

Closed
bmfmancini opened this issue Feb 21, 2020 · 2 comments
Closed
Assignees
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@bmfmancini
Copy link
Member

cacti 1.2.9

Seeing errors coming from Boost which I found is causing Boost to miss RRD updates

2020/02/21 11:00:09 - BOOST WARNING: RRD Update Warning '' for Local Data ID '4993'
2020/02/21 11:00:09 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[137]:output_rrd_data(), /poller_boost.php[312]:boost_process_local_data_ids(), /poller_boost.php[608]:boost_process_output(), /poller_boost.php[641]:boost_rrdtool_function_update(), /lib/boost.php[1194]:boost_rrdtool_function_create(), /lib/boost.php[1070]:CactiErrorHandler())
2020/02/21 11:00:09 - ERROR PHP WARNING: A non-numeric value encountered in file: /var/www/html/cacti/lib/boost.php on line: 1070
2020/02/21 11:00:09 - BOOST WARNING: RRD Update Warning '' for Local Data ID '4992'
2020/02/21 11:00:09 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[137]:output_rrd_data(), /poller_boost.php[312]:boost_process_local_data_ids(), /poller_boost.php[452]:boost_process_output(), /poller_boost.php[641]:boost_rrdtool_function_update(), /lib/boost.php[1194]:boost_rrdtool_function_create(), /lib/boost.php[1070]:CactiErrorHandler())
2020/02/21 11:00:09 - ERROR PHP WARNING: A non-numeric value encountered in file: /var/www/html/cacti/lib/boost.php on line: 1070

@bmfmancini
Copy link
Member Author

here is line 1070

/* back off the initial time to allow updates */
$initial_time -= 300;

@netniV
Copy link
Member

netniV commented Feb 21, 2020

That is the correct line. The reason is that initial time is actually initialised to '' rather than 0.

@netniV netniV changed the title cacti 1.2.9 Boost errors When boost does not find an initial time, numeric errors can be raised Feb 21, 2020
@netniV netniV added bug Undesired behaviour resolved A fixed issue labels Feb 21, 2020
@netniV netniV added this to the 1.2.10 milestone Feb 21, 2020
@netniV netniV closed this as completed Feb 21, 2020
@netniV netniV self-assigned this Feb 23, 2020
@github-actions github-actions bot locked 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

2 participants