sas-smart: use /run/wrappers/bin/sudo instead of Nix store sudo
The Nix store sudo binary lacks the setuid bit (Nix store is not
setuid-capable), so calling it as the telegraf user fails silently
with "must be owned by uid 0 and have the setuid bit set". This
caused the sas-smart exec to emit nothing and smart_sas data never
refreshed after the initial manual write.

Switch to the NixOS security wrapper at /run/wrappers/bin/sudo
which is the proper setuid wrapper.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent fabe4c4 commit 789049fcaa15d34269e1ffef5e7530b22d9b5fa0
@Dixiao-L Dixiao-L authored on 7 Apr
Showing 1 changed file
View
modules/monitoring.nix