From d53c726cbbc397cc500b1a3d94e21d53608059d6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 19 Nov 2007 15:31:28 +0000 Subject: [PATCH] * Make the Nagios configuration visible in /etc/nagios.cfg. svn path=/nixos/trunk/; revision=9753 --- upstart-jobs/nagios/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/upstart-jobs/nagios/default.nix b/upstart-jobs/nagios/default.nix index 0dc31feaf61..5cafee64375 100644 --- a/upstart-jobs/nagios/default.nix +++ b/upstart-jobs/nagios/default.nix @@ -58,6 +58,16 @@ in } ]; + extraPath = [pkgs.nagios]; + + # This isn't needed, it's just so that the user can type "nagiostats + # -c /etc/nagios.cfg". + extraEtc = [ + { source = nagiosCfgFile; + target = "nagios.cfg"; + } + ]; + # Run `nagios -v' to check the validity of the configuration file so # that a nixos-rebuild fails *before* we kill the running Nagios # daemon.