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

Rebuild poller cache - Errors #98

Closed
interduo opened this issue Dec 28, 2016 · 7 comments
Closed

Rebuild poller cache - Errors #98

interduo opened this issue Dec 28, 2016 · 7 comments

Comments

@interduo
Copy link
Contributor

2016-12-28 12:11:46 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php: 38 repopulate_poller_cache)(/lib/utility.php: 43 update_poller_cache)(/lib/utility.php: 149 CactiErrorHandler)(/lib/functions.php: 4189 cacti_debug_backtrace)
2016-12-28 12:11:46 - ERROR PHP NOTICE: Undefined index: active in file: /var/www/html/cacti/lib/utility.php on line: 149
2016-12-28 12:11:46 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php: 38 repopulate_poller_cache)(/lib/utility.php: 43 update_poller_cache)(/lib/utility.php: 125 CactiErrorHandler)(/lib/functions.php: 4189 cacti_debug_backtrace)
2016-12-28 12:11:46 - ERROR PHP NOTICE: Undefined index: type_id in file: /var/www/html/cacti/lib/utility.php on line: 125
2016-12-28 12:11:46 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php: 38 repopulate_poller_cache)(/lib/utility.php: 43 update_poller_cache)(/lib/utility.php: 124 CactiErrorHandler)(/lib/functions.php: 4189 cacti_debug_backtrace)
2016-12-28 12:11:46 - ERROR PHP NOTICE: Undefined index: type_id in file: /var/www/html/cacti/lib/utility.php on line: 124
2016-12-28 12:11:46 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php: 38 repopulate_poller_cache)(/lib/utility.php: 43 update_poller_cache)(/lib/utility.php: 123 CactiErrorHandler)(/lib/functions.php: 4189 cacti_debug_backtrace)
2016-12-28 12:11:46 - ERROR PHP NOTICE: Undefined index: type_id in file: /var/www/html/cacti/lib/utility.php on line: 123
2016-12-28 12:11:31 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 76 CactiErrorHandler)(/lib/functions.php: 4189 cacti_debug_backtrace)
2016-12-28 12:11:31 - ERROR PHP NOTICE: Undefined variable: poller_id in file: /var/www/html/cacti/index.php on line: 76

@cigamit
Copy link
Member

cigamit commented Dec 28, 2016

Relative to this:
2016-12-28 12:11:31 - ERROR PHP NOTICE: Undefined variable: poller_id in file: /var/www/html/cacti/index.php on line: 76

Is $poller_id defined in config.php?

The rest here (as below) look like a damaged database. We will add some logging and work around this issue. You should re-install, and then try to find reproduce steps.

2016-12-28 12:11:46 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php: 38 repopulate_poller_cache)(/lib/utility.php: 43 update_poller_cache)(/lib/utility.php: 149 CactiErrorHandler)(/lib/functions.php: 4189 cacti_debug_backtrace)

@interduo
Copy link
Contributor Author

grep 'poller_id' ./include/config.php

the result is empty

@cigamit
Copy link
Member

cigamit commented Dec 28, 2016

Please review the config.php.dist and insure that you have everything set properly.

@interduo
Copy link
Contributor Author

interduo commented Dec 28, 2016

In DB there is only one poller in

SELECT * FROM poller

I did a git stash command so the config is the same.

cigamit added a commit that referenced this issue Dec 28, 2016
This will issue warning when a damaged data input method is found.  It
will not resolve the corruption.
@cigamit
Copy link
Member

cigamit commented Dec 28, 2016

Resolving currupt data input method issue here:

eec705d

The second issue should be clear. You must set the $poller_id in config.php.

@cigamit cigamit closed this as completed Dec 28, 2016
@interduo
Copy link
Contributor Author

So I think You should add $poller_id='1' in config.php

But in other hand there is a:

/* Set the poller_id */
if (isset($poller_id)) {
$config['poller_id'] = $poller_id;
}else{
$config['poller_id'] = 1;
}

In global.php.

So why this doesn't work?

@cigamit
Copy link
Member

cigamit commented Dec 28, 2016

That's a good point. I just finished an audit and $poller_id should no longer be mandated for the main pollers. It is for remote pollers though.

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

No branches or pull requests

2 participants