read-file.rb has a syntax error: Check failed to run: wrong number of arguments (given 1, expected 0)Descriptionread-file.rb has a syntax issue, that can causes a the syntax error: e.g."output" : "Check failed to run: wrong number of arguments (given 1, expected 0), [\"/usr/share/servicenow/agent-client-collector/embedded/lib/ruby/gems/2.7.0/gems/sensu-sn-readfile-1.1.3/bin/read-file.rb:36:in `to_s'\", \"/usr/share/servicenow/agent-client-collector/embedded/lib/ruby/gems/2.7.0/gems/sensu-sn-readfile-1.1.3/bin/read-file.rb:36:in `run'\", \"/usr/share/servicenow/agent-client-collector/embedded/lib/ruby/gems/2.7.0/gems/sensu-plugin-1.4.7/lib/sensu-plugin/cli.rb:58:in `block in <class:CLI>'\"]\n"instead of the real "file not found" error. e.g. :"output" : "SensuSnReadFile WARNING: %ProgramData%\\ServiceNow\\agent-client-collector\\config\\acc.yml file not found\r\n"/usr/share/servicenow/agent-client-collector/embedded/lib/ruby/gems/2.7.0/gems/sensu-sn-readfile-1.1.3/bin/read-file.rbSteps to Reproduce The conditions to hit line 36 can be reproduced by:- Set Check Definition "config file reader" to exec mode "execv"- Click "Grab agent config (acc.yml)" on an Agent recordInspect the ecc_queue input:"output" : "Check failed to run: wrong number of arguments (given 1, expected 0), [\"/usr/share/servicenow/agent-client-collector/embedded/lib/ruby/gems/2.7.0/gems/sensu-sn-readfile-1.1.3/bin/read-file.rb:36:in `to_s'\", \"/usr/share/servicenow/agent-client-collector/embedded/lib/ruby/gems/2.7.0/gems/sensu-sn-readfile-1.1.3/bin/read-file.rb:36:in `run'\", \"/usr/share/servicenow/agent-client-collector/embedded/lib/ruby/gems/2.7.0/gems/sensu-plugin-1.4.7/lib/sensu-plugin/cli.rb:58:in `block in <class:CLI>'\"]\n"Add the space, and and what it means to say is seen:"output" : "SensuSnReadFile WARNING: %ProgramData%\\ServiceNow\\agent-client-collector\\config\\acc.yml file not found\r\n"WorkaroundThis problem is currently under review and targeted to be fixed in a future release. Subscribe to this Known Error article to receive notifications when more information will be available. The cause is a missing space between + and ' in line 36 of/usr/share/servicenow/agent-client-collector/embedded/lib/ruby/gems/2.7.0/gems/sensu-sn-readfile-1.1.3/bin/read-file.rbor C:\Program Files\ServiceNow\agent-client-collector\... Correct line 36 to:warning file_path.to_s + ' file not found' If you see this error, it means "file not found". It would be better to solve the root cause instead. The reason for that might be that the file truly isn't there, environment variables are missing, or permissions are hiding it, but it could also be:PRB1632856 ACC Check Definitions that don't explicitly state the Exec Mode, could default to the wrong one, and fail to run (e.g. "Grab agent config (acc.yml)" fails)Related Problem: PRB1632860