From b287eb35fd9e7509a19282f32290af9f53a92ee4 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sun, 12 Oct 2025 16:23:22 +0200 Subject: [PATCH] Testing --- agent/src/collectors/service.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agent/src/collectors/service.rs b/agent/src/collectors/service.rs index c4dbe1e..2a902ea 100644 --- a/agent/src/collectors/service.rs +++ b/agent/src/collectors/service.rs @@ -638,8 +638,8 @@ impl ServiceCollector { tracing::debug!("Starting nginx site detection"); // For NixOS and other systems, get the actual running nginx config - let output = match Command::new("nginx") - .args(["-T"]) + let output = match Command::new("sudo") + .args(["nginx", "-T"]) .stdout(Stdio::piped()) .stderr(Stdio::piped()) .output() @@ -647,7 +647,7 @@ impl ServiceCollector { { Ok(output) => output, Err(e) => { - tracing::warn!("Failed to execute nginx -T: {}", e); + tracing::warn!("Failed to execute sudo nginx -T: {}", e); return None; } };