Open MegaAndrey opened 2 years ago
strace the binary.
Seems like it stops on collect_pppoe_users_api($host); API user with read only permissions configured and connected.
If I comment this section it works normally
if (runCollector($start, $queues_lastrun, $queues_freq)) {
collect_queues($host);
# collect_pppoe_users_api($host);
}
btw maybe you can help me with wrong queues statistics? As I see it's incorrect counting.
And this happening with all queues graphs.
What Time Zone are you in?
Cacti on GMT+4:30. in php.ini date.timezone = "Asia/Kabul"
But I'm on another TZ.
2022-03-15 08:07:21 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php[33]:include_once(), /lib/timespan_settings.php[38]:initialize_timespan(), /lib/timespan_settings.php[59]:set_preset_timespan(), /lib/timespan_settings.php[182]:get_timespan(), /lib/time.php[58]:strtotime(), CactiErrorHandler()) 2022-03-15 08:07:21 - ERROR PHP WARNING: strtotime(): Invalid date.timezone value 'TZ=GMT-4:30', we selected the timezone 'UTC' for now. in file: /usr/share/cacti/lib/time.php on line: 58 2022-03-15 08:07:21 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php[27]:include(), /include/auth.php[130]:check_auth_cookie(), /lib/auth.php[111]:cacti_log(), /lib/functions.php[1268]:cacti_browser_zone_set(), /lib/functions.php[6899]:ini_set(), CactiErrorHandler()) 2022-03-15 08:07:21 - ERROR PHP WARNING: ini_set(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. in file: /usr/share/cacti/lib/functions.php on line: 6899 2022-03-15 08:07:21 - CMDPHP PHP ERROR NOTICE Backtrace: (/graph_view.php[27]:include(), /include/auth.php[130]:check_auth_cookie(), /lib/auth.php[109]:set_auth_cookie(), /lib/auth.php[74]:cacti_cookie_session_set(), /lib/functions.php[6864]:CactiErrorHandler()) 2022-03-15 08:07:21 - ERROR PHP NOTICE: Undefined variable: nssecret in file: /usr/share/cacti/lib/functions.php on line: 6864 2022-03-15 08:07:21 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php[27]:include(), /include/auth.php[130]:check_auth_cookie(), /lib/auth.php[109]:set_auth_cookie(), /lib/auth.php[74]:cacti_cookie_session_set(), /lib/functions.php[6852]:CactiErrorHandler()) 2022-03-15 08:07:21 - ERROR PHP WARNING: Missing argument 3 for cacti_cookie_session_set(), called in /usr/share/cacti/lib/auth.php on line 74 and defined in file: /usr/share/cacti/lib/functions.php on line: 6852
Poller process stops and completely overload CPU.
When I try to run poller with --debug option this is the last message DEBUG: Elapsed: 93, Message: Key:'DroppedOut', Orig:'.1.3.6.1.4.1.14988.1.1.2.1.1.15.1266', Val:'0', Index:'1266', Base:'.1.3.6.1.4.1.14988.1.1.2.1.1.15'