]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/monitoring/default.nix
Add mysql replication
[perso/Immae/Config/Nix.git] / modules / private / monitoring / default.nix
index 0259cbfbc7623d1ee6cad9c5b0acaf7553999780..baeebc9e5231583945300a7a9ccfbd73d8131ae8 100644 (file)
@@ -72,6 +72,13 @@ in
         users = [ "naemon" ];
         runAs = "postgres";
       }
+      {
+        commands = [
+          { command = "${myplugins}/check_last_file_date /backup2/*"; options = [ "NOPASSWD" ]; }
+        ];
+        users = [ "naemon" ];
+        runAs = "mysql";
+      }
       {
         commands = [
           { command = "${myplugins}/check_last_file_date /backup2/*"; options = [ "NOPASSWD" ]; }