ninurta: monitoring with munin
This commit is contained in:
parent
c66a0f847c
commit
0b874cf252
4 changed files with 47 additions and 0 deletions
28
nixos/ninurta/monitoring.nix
Normal file
28
nixos/ninurta/monitoring.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
services.nginx.enable = true;
|
||||
services.nginx.virtualHosts."ninurta.bs.dadada.li" = {
|
||||
addSSL = false;
|
||||
enableACME = false;
|
||||
root = "/var/www/munin/";
|
||||
locations = {
|
||||
"/" = {
|
||||
root = "/var/www/munin/";
|
||||
};
|
||||
};
|
||||
};
|
||||
services.munin-cron = {
|
||||
enable = true;
|
||||
hosts = ''
|
||||
[${config.networking.hostName}]
|
||||
address localhost
|
||||
|
||||
[surgat]
|
||||
address 10.3.3.1
|
||||
|
||||
[agares]
|
||||
address 192.168.101.1
|
||||
'';
|
||||
};
|
||||
services.munin-node.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue