1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00
nixpkgs/nixos/tests/munin.nix

33 lines
765 B
Nix
Raw Normal View History

2013-10-20 20:16:13 +01:00
# This test runs basic munin setup with node and cron job running on the same
# machine.
import ./make-test.nix {
2014-06-28 15:04:49 +01:00
name = "munin";
nodes = {
2013-10-20 20:16:13 +01:00
one =
{ config, pkgs, ... }:
{
2013-10-20 20:16:13 +01:00
services = {
munin-node.enable = true;
munin-cron = {
enable = true;
hosts = ''
[${config.networking.hostName}]
address localhost
'';
};
};
systemd.services.munin-node.serviceConfig.TimeoutStartSec = "3min";
2013-10-20 20:16:13 +01:00
};
};
2013-10-20 20:16:13 +01:00
testScript = ''
startAll;
2013-10-20 20:16:13 +01:00
$one->waitForUnit("munin-node.service");
$one->waitForFile("/var/lib/munin/one/one-uptime-uptime-g.rrd");
$one->waitForFile("/var/www/munin/one/index.html");
'';
}