munin: configuration de l'envois de mail

This commit is contained in:
2017-02-25 20:52:20 +01:00
parent ba09f97684
commit e77df9816d
2 changed files with 4 additions and 1 deletions

3
public/munin-muttrc Normal file
View File

@@ -0,0 +1,3 @@
set copy=no
set realname = "Munin daemon"

View File

@@ -34,7 +34,7 @@ mkIf true {
address 127.0.0.1
'';
extraGlobalConfig = ''
contact.email.command mail -s "Munin notification for ''${var:host}" root@${config.networking.hostName}
contact.email.command ${pkgs.mutt}/bin/mutt -F /etc/nixos/base/public/munin-muttrc -s "Munin notification for ''${var:host}" jean-pierre@ocean.prunetwork.fr
'';
};