mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
log operation and minion target
This commit is contained in:
@@ -67,10 +67,10 @@ function manage_minion() {
|
|||||||
response=$(so-minion "-o=$op" "-m=$minion_id")
|
response=$(so-minion "-o=$op" "-m=$minion_id")
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
if [[ exit_code -eq 0 ]]; then
|
if [[ exit_code -eq 0 ]]; then
|
||||||
log "Successful command execution"
|
log "Successful '$op' command execution on $minion_id"
|
||||||
respond "$id" "true"
|
respond "$id" "true"
|
||||||
else
|
else
|
||||||
log "Unsuccessful command execution: $response ($exit_code)"
|
log "Unsuccessful '$op' command execution on $minion_id: $response ($exit_code)"
|
||||||
respond "$id" "false"
|
respond "$id" "false"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user