1 # This test runs basic munin setup with node and cron job running on the same
4 import ./make-test-python.nix ({ pkgs, ...} : {
6 meta = with pkgs.lib.maintainers; {
7 maintainers = [ domenkozar ];
17 # disable a failing plugin to prevent irrelevant error message, see #23049
18 disabledPlugins = [ "apc_nis" ];
23 [${config.networking.hostName}]
29 # increase the systemd timer interval so it fires more often
30 systemd.timers.munin-cron.timerConfig.OnCalendar = pkgs.lib.mkForce "*:*:0/10";
37 with subtest("ensure munin-node starts and listens on 4949"):
38 one.wait_for_unit("munin-node.service")
39 one.wait_for_open_port(4949)
41 with subtest("ensure munin-cron output is correct"):
42 one.wait_for_file("/var/lib/munin/one/one-uptime-uptime-g.rrd")
43 one.wait_for_file("/var/www/munin/one/index.html")
44 one.wait_for_file("/var/www/munin/one/one/diskstat_iops_vda-day.png", timeout=60)