Skip to content

Commit

Permalink
Changed criteria for connection validation. New criteria works even f…
Browse files Browse the repository at this point in the history
…or long term running agents
  • Loading branch information
manuelbcd committed Nov 26, 2024
1 parent 88c02cf commit df34652
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ data:
pods=($(kubectl get pod -l app=sysdig-agent -n sysdig -o jsonpath="{.items[*].metadata.name}"))
for pod in "${pods[@]}"; do
logs=$(kubectl logs -n sysdig $pod --tail -1)
if grep "Communication with server successful" <<< "$logs"
if grep "to collector at host" <<< "$logs"
then
echo -e "\n # Sysdig Agent connection with server was success #"
# Let's generate events
Expand Down

0 comments on commit df34652

Please sign in to comment.