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

Automate generates undefined index errors when communicating with remote pollers #3635

Closed
bmfmancini opened this issue Jun 23, 2020 · 4 comments
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@bmfmancini
Copy link
Member

Hey Everyone

I can across these errors today running Apply automation rules on a single device
The graphs were created as far as I can see

image

@bmfmancini bmfmancini added bug Undesired behaviour unverified Some days we don't have a clue labels Jun 23, 2020
@bmfmancini
Copy link
Member Author

Here is the full error

2020/06/23 09:58:36 - CMDPHP PHP ERROR NOTICE Backtrace: (/remote_agent.php[72]:run_remote_data_query(), /remote_agent.php[439]:run_data_query(), /lib/data_query.php[398]:automation_execute_data_query(), /lib/api_automation.php[2200]:create_dq_graphs(), /lib/api_automation.php[2512]:create_complete_graph_from_template(), /lib/template.php[1341]:api_plugin_hook_function(), /lib/plugins.php[114]:api_plugin_run_plugin_hook_function(), /lib/plugins.php[218]:thold_create_graph_thold(), /plugins/thold/setup.php[1432]:autocreate(), /plugins/thold/thold_functions.php[5220]:thold_raise_message(), /plugins/thold/thold_functions.php[4929]:raise_message(), /lib/functions.php[720]:cacti_session_start(), /lib/functions.php[5541]:CactiErrorHandler())

2020/06/23 09:58:36 - ERROR PHP NOTICE: Undefined index: cacti_session_name in file: /var/www/html/cacti/lib/functions.php on line: 5541

2020/06/23 09:58:35 - CMDPHP PHP ERROR WARNING Backtrace: (/remote_agent.php[72]:run_remote_data_query(), /remote_agent.php[439]:run_data_query(), /lib/data_query.php[398]:automation_execute_data_query(), /lib/api_automation.php[2200]:create_dq_graphs(), /lib/api_automation.php[2512]:create_complete_graph_from_template(), /lib/template.php[1341]:api_plugin_hook_function(), /lib/plugins.php[114]:api_plugin_run_plugin_hook_function(), /lib/plugins.php[218]:thold_create_graph_thold(), /plugins/thold/setup.php[1432]:autocreate(), /plugins/thold/thold_functions.php[5222]:thold_raise_message(), /plugins/thold/thold_functions.php[4929]:raise_message(), /lib/functions.php[720]:cacti_session_start(), /lib/functions.php[5543]:session_start(), CactiErrorHandler())

2020/06/23 09:58:35 - ERROR PHP WARNING: session_start() expects parameter 1 to be array, null given in file: /var/www/html/cacti/lib/functions.php on line: 5543

2020/06/23 09:58:35 - CMDPHP PHP ERROR NOTICE Backtrace: (/remote_agent.php[72]:run_remote_data_query(), /remote_agent.php[439]:run_data_query(), /lib/data_query.php[398]:automation_execute_data_query(), /lib/api_automation.php[2200]:create_dq_graphs(), /lib/api_automation.php[2512]:create_complete_graph_from_template(), /lib/template.php[1341]:api_plugin_hook_function(), /lib/plugins.php[114]:api_plugin_run_plugin_hook_function(), /lib/plugins.php[218]:thold_create_graph_thold(), /plugins/thold/setup.php[1432]:autocreate(), /plugins/thold/thold_functions.php[5222]:thold_raise_message(), /plugins/thold/thold_functions.php[4929]:raise_message(), /lib/functions.php[720]:cacti_session_start(), /lib/functions.php[5543]:CactiErrorHandler())

2020/06/23 09:58:35 - ERROR PHP NOTICE: Undefined index: cookie_options in file: /var/www/html/cacti/lib/functions.php on line: 5543

2020/06/23 09:58:35 - CMDPHP PHP ERROR WARNING Backtrace: (/remote_agent.php[72]:run_remote_data_query(), /remote_agent.php[439]:run_data_query(), /lib/data_query.php[398]:automation_execute_data_query(), /lib/api_automation.php[2200]:create_dq_graphs(), /lib/api_automation.php[2512]:create_complete_graph_from_template(), /lib/template.php[1341]:api_plugin_hook_function(), /lib/plugins.php[114]:api_plugin_run_plugin_hook_function(), /lib/plugins.php[218]:thold_create_graph_thold(), /plugins/thold/setup.php[1432]:autocreate(), /plugins/thold/thold_functions.php[5222]:thold_raise_message(), /plugins/thold/thold_functions.php[4929]:raise_message(), /lib/functions.php[720]:cacti_session_start(), /lib/functions.php[5541]:session_name(), CactiErrorHandler())

2020/06/23 09:58:35 - ERROR PHP WARNING: session_name(): session.name cannot be a numeric or empty '' in file: /var/www/html/cacti/lib/functions.php on line: 5541

2020/06/23 09:58:35 - CMDPHP PHP ERROR NOTICE Backtrace: (/remote_agent.php[72]:run_remote_data_query(), /remote_agent.php[439]:run_data_query(), /lib/data_query.php[398]:automation_execute_data_query(), /lib/api_automation.php[2200]:create_dq_graphs(), /lib/api_automation.php[2512]:create_complete_graph_from_template(), /lib/template.php[1341]:api_plugin_hook_function(), /lib/plugins.php[114]:api_plugin_run_plugin_hook_function(), /lib/plugins.php[218]:thold_create_graph_thold(), /plugins/thold/setup.php[1432]:autocreate(), /plugins/thold/thold_functions.php[5222]:thold_raise_message(), /plugins/thold/thold_functions.php[4929]:raise_message(), /lib/functions.php[720]:cacti_session_start(), /lib/functions.php[5541]:CactiErrorHandler())

2020/06/23 09:58:35 - ERROR PHP NOTICE: Undefined index: cacti_session_name in file: /var/www/html/cacti/lib/functions.php on line: 5541

2020/06/23 09:58:35 - CMDPHP PHP ERROR WARNING Backtrace: (/remote_agent.php[72]:run_remote_data_query(), /remote_agent.php[439]:run_data_query(), /lib/data_query.php[398]:automation_execute_data_query(), /lib/api_automation.php[2200]:create_dq_graphs(), /lib/api_automation.php[2512]:create_complete_graph_from_template(), /lib/template.php[1341]:api_plugin_hook_function(), /lib/plugins.php[114]:api_plugin_run_plugin_hook_function(), /lib/plugins.php[218]:thold_create_graph_thold(), /plugins/thold/setup.php[1432]:autocreate(), /plugins/thold/thold_functions.php[5222]:thold_raise_message(), /plugins/thold/thold_functions.php[4929]:raise_message(), /lib/functions.php[720]:cacti_session_start(), /lib/functions.php[5543]:session_start(), CactiErrorHandler())

2020/06/23 09:58:35 - ERROR PHP WARNING: session_start() expects parameter 1 to be array, null given in file: /var/www/html/cacti/lib/functions.php on line: 5543

2020/06/23 09:58:35 - CMDPHP PHP ERROR NOTICE Backtrace: (/remote_agent.php[72]:run_remote_data_query(), /remote_agent.php[439]:run_data_query(), /lib/data_query.php[398]:automation_execute_data_query(), /lib/api_automation.php[2200]:create_dq_graphs(), /lib/api_automation.php[2512]:create_complete_graph_from_template(), /lib/template.php[1341]:api_plugin_hook_function(), /lib/plugins.php[114]:api_plugin_run_plugin_hook_function(), /lib/plugins.php[218]:thold_create_graph_thold(), /plugins/thold/setup.php[1432]:autocreate(), /plugins/thold/thold_functions.php[5222]:thold_raise_message(), /plugins/thold/thold_functions.php[4929]:raise_message(), /lib/functions.php[720]:cacti_session_start(), /lib/functions.php[5543]:CactiErrorHandler())

2020/06/23 09:58:35 - ERROR PHP NOTICE: Undefined index: cookie_options in file: /var/www/html/cacti/lib/functions.php on line: 5543

2020/06/23 09:58:35 - CMDPHP PHP ERROR WARNING Backtrace: (/remote_agent.php[72]:run_remote_data_query(), /remote_agent.php[439]:run_data_query(), /lib/data_query.php[398]:automation_execute_data_query(), /lib/api_automation.php[2200]:create_dq_graphs(), /lib/api_automation.php[2512]:create_complete_graph_from_template(), /lib/template.php[1341]:api_plugin_hook_function(), /lib/plugins.php[114]:api_plugin_run_plugin_hook_function(), /lib/plugins.php[218]:thold_create_graph_thold(), /plugins/thold/setup.php[1432]:autocreate(), /plugins/thold/thold_functions.php[5222]:thold_raise_message(), /plugins/thold/thold_functions.php[4929]:raise_message(), /lib/functions.php[720]:cacti_session_start(), /lib/functions.php[5541]:session_name(), CactiErrorHandler())

2020/06/23 09:58:35 - ERROR PHP WARNING: session_name(): session.name cannot be a numeric or empty '' in file: /var/www/html/cacti/lib/functions.php on line: 5541

2020/06/23 09:58:35 - CMDPHP PHP ERROR NOTICE Backtrace: (/remote_agent.php[72]:run_remote_data_query(), /remote_agent.php[439]:run_data_query(), /lib/data_query.php[398]:automation_execute_data_query(), /lib/api_automation.php[2200]:create_dq_graphs(), /lib/api_automation.php[2512]:create_complete_graph_from_template(), /lib/template.php[1341]:api_plugin_hook_function(), /lib/plugins.php[114]:api_plugin_run_plugin_hook_function(), /lib/plugins.php[218]:thold_create_graph_thold(), /plugins/thold/setup.php[1432]:autocreate(), /plugins/thold/thold_functions.php[5222]:thold_raise_message(), /plugins/thold/thold_functions.php[4929]:raise_message(), /lib/functions.php[720]:cacti_session_start(), /lib/functions.php[5541]:CactiErrorHandler())

2020/06/23 09:58:35 - ERROR PHP NOTICE: Undefined index: cacti_session_name in file: /var/www/html/cacti/lib/functions.php on line: 5541

TheWitness added a commit that referenced this issue Jun 27, 2020
- Backtrace Errors attempting to run AUTOM8 to Remote Data Collector
- Duplicate Entry error when updating Device
- This missed a new option to limit device sync to single, or multiple hosts
@TheWitness
Copy link
Member

@bmfmancini, if you can update lib/api_device.php and include/global.php and test again. The remote_agent.php was being denied a session due to a setting in global.php, which caused this error.

@TheWitness TheWitness added resolved A fixed issue and removed unverified Some days we don't have a clue labels Jun 27, 2020
@TheWitness TheWitness added this to the 1.2.13 milestone Jun 27, 2020
@bmfmancini
Copy link
Member Author

Hey Larry so far this is looking good in the Lab no errors popping up however my lab only has a few devices so not a large scale
would this only come up under a certain condition on my lab v1.2.12 before the update was applied I ran autom8 no backtrace errors came up

However I still went ahead and applied the new commits just to make sure nothing else broke

I will apply this to our production system soon which is where I saw the original issue

Thanks !

@bmfmancini
Copy link
Member Author

This looks good as well!

Thanks

@netniV netniV changed the title cacti V1.2.12 Backtrace errors running AUTOM8 Automate generates undefined index errors when communicating with remote pollers Jul 12, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 11, 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