diff --git a/agent/src/collectors/service.rs b/agent/src/collectors/service.rs index bf6462d..f80902c 100644 --- a/agent/src/collectors/service.rs +++ b/agent/src/collectors/service.rs @@ -446,7 +446,7 @@ impl ServiceCollector { async fn get_ssh_active_users(&self) -> Option { // Use ss to find established SSH connections on port 22 - let output = Command::new("ss") + let output = Command::new("/run/current-system/sw/bin/ss") .args(["-tn", "state", "established", "sport", "= :22"]) .stdout(Stdio::piped()) .stderr(Stdio::piped()) @@ -701,8 +701,9 @@ impl ServiceCollector { // Check which sites are actually accessible let mut accessible_sites = Vec::new(); for site in sites { - // Temporarily disable accessibility check - show all parsed sites - accessible_sites.push(site); // Remove checkmark - status will be shown via sub_service row status + if self.check_site_accessibility(&site).await { + accessible_sites.push(site); // Remove checkmark - status will be shown via sub_service row status + } } // Limit to reasonable number @@ -766,7 +767,7 @@ impl ServiceCollector { match tokio::time::timeout( Duration::from_secs(5), - Command::new("curl") + Command::new("/run/current-system/sw/bin/curl") .args(["-s", "-I", "--max-time", "3", &url]) .stdout(Stdio::piped()) .stderr(Stdio::piped())