mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Management framework: enable stdout/stderr reporting
This uses the new frameworks/management/supervisor functionality to maintain stdout/stderr files, and hooks output context into set_configuration error results.
This commit is contained in:
parent
24a495da42
commit
f10b94de39
5 changed files with 34 additions and 17 deletions
|
@ -363,11 +363,15 @@ event Management::Agent::API::set_configuration_response(reqid: string, results:
|
|||
if ( Management::Request::is_null(req) )
|
||||
return;
|
||||
|
||||
# XXX the usual "any" handling needs to happen here if data is filled in
|
||||
|
||||
# Add this agent's results to the overall response
|
||||
for ( i in results )
|
||||
{
|
||||
# The usual "any" treatment to keep access predictable
|
||||
if ( results[i]?$data )
|
||||
results[i]$data = results[i]$data as Management::NodeOutputs;
|
||||
|
||||
req$results[|req$results|] = results[i];
|
||||
}
|
||||
|
||||
# Mark this request as done by removing it from the table of pending
|
||||
# ones. The following if-check should always be true.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue