Project

General

Profile

Bug #9807

Updated by Jonathan CLARKE almost 7 years ago

In the case where an agent When end report is in changes only mode, but *does* output some messages (repaired, errors, or just the heartbeat), the output from "rudder agent run" is fine. 

 However, is the agent isn't due to send a heartbeat, and there a re no repaired/error messages, there is exactly 0 lines of output from the agent run. In this case, 'rudder agent run' outputs missing, an error saying "error: Rudder agent was interrupted during execution by a fatal error." 

 This is because the reports.awk script looks for the "end run" message, but never finds it. 

 We should detect the reporting mode and use this in the awk script to check if we're in changes only mode, and output an info message instead that says something like 'This agent is in changes only mode - no components caused repairs or errors, so no output statistics can be reported. Run with -i to see log messages.'

Back