@ -3,7 +3,7 @@
let
inherit ( lib ) mkIf mkMerge mkThenElse ;
annuaire = config . r6d . machines ;
currentMachine = annuaire . " ${ config . networking . hostName } " ;
currentMachine = annuaire . " ${ config . networking . fqdn } " ;
flags = currentMachine . configurationFlags ;
in
@ -54,7 +54,7 @@ mkIf flags.munin {
services . munin-cron = {
enable = true ;
hosts = ''
[ $ { config . networking . hostName } ]
[ $ { config . networking . fqdn } ]
address 127 .0 .0 .1
df . _dev_sda2 . warning 35
use_node_name yes
@ -65,9 +65,9 @@ mkIf flags.munin {
# http://guide.munin-monitoring.org/en/latest/tutorial/alert.html#syntax-of-warning-and-critical
extraGlobalConfig = ''
#---
#contact.email.command ${pkgs.mutt}/bin/mutt -F /etc/nixos/base/services/munin-muttrc -s "Munin notification for ${config.networking. hostName }" root@ocean.prunetwork.fr
contact . email . command /run/current-system/sw/bin/mutt - F /etc/nixos/base/services/munin-muttrc - s " M u n i n n o t i f i c a t i o n f o r ${ config . networking . hostName } " root @ ocean . prunetwork . fr
contact . syslog . command /run/current-system/sw/bin/logger - p user . crit - t " M u n i n n o t i f i c a t i o n f o r ${ config . networking . hostName } "
#contact.email.command ${pkgs.mutt}/bin/mutt -F /etc/nixos/base/services/munin-muttrc -s "Munin notification for ${config.networking. fqdn }" root@ocean.prunetwork.fr
contact . email . command /run/current-system/sw/bin/mutt - F /etc/nixos/base/services/munin-muttrc - s " M u n i n n o t i f i c a t i o n f o r ${ config . networking . fqdn } " root @ ocean . prunetwork . fr
contact . syslog . command /run/current-system/sw/bin/logger - p user . crit - t " M u n i n n o t i f i c a t i o n f o r ${ config . networking . fqdn } "
#---
contact . email . always_send ok , warning , critical , unknown