Add Status::Inactive for inactive services with empty circle display
All checks were successful
Build and Release / build-and-release (push) Successful in 1m12s

- Add new Status::Inactive variant to enum for better service state representation
- Agent now assigns Status::Inactive instead of Status::Warning for inactive services
- Dashboard displays inactive services with empty circle (○) icon in gray color
- User-stopped services still show as Status::Ok with green filled circle
- Inactive services treated as OK for host status aggregation
- Improves visual clarity between active (●), inactive (○), and warning (◐) states
This commit is contained in:
2025-11-18 17:54:51 +01:00
parent 0ca06d2507
commit d11aa11f99
10 changed files with 26 additions and 7 deletions

View File

@@ -372,7 +372,8 @@ impl SystemdCollector {
debug!("Service '{}' is inactive but marked as user-stopped - treating as OK", service_name);
Status::Ok
} else {
Status::Warning
debug!("Service '{}' is inactive - treating as Inactive status", service_name);
Status::Inactive
}
},
"failed" | "error" => Status::Critical,