svn path=/configurations/trunk/tud/; revision=20175
svn path=/configurations/trunk/tud/; revision=20175
Eelco Dolstra committed
Feb 22, 2010 at 15:30 UTC
9732decfcc9ad346ecf8945f416fb3b8588f33e4
2 files changed
+16
-1
cartman.nix
+15
@@ -21,6 +21,12 @@ let
21
22
releasesCSS = /etc/nixos/release/generic-dist/release-page/releases.css;
23
24
+ ZabbixApacheUpdater = pkgs.fetchsvn {
25
+ url = https://www.zulukilo.com/svn/pub/zabbix-apache-stats/trunk/fetch.py;
26
+ sha256 = "1q66x429wpqjqcmlsi3x37rkn95i55nj8ldzcrblnx6a0jnjgd2g";
27
+ rev = 94;
28
+ };
29
+
30
in
31
32
rec {
@@ -121,6 +127,7 @@ rec {
127
(indexJob 05 "/data/webserver/dist" http://buildfarm.st.ewi.tudelft.nl/)
128
129
"00 03 * * * root ${pkgs.nixUnstable}/bin/nix-collect-garbage --max-atime $(date +\\%s -d '2 weeks ago') > /var/log/gc.log 2>&1"
130
+ "* * * * * root ${pkgs.python}/bin/python ${ZabbixApacheUpdater} -z 192.168.1.5 -c cartman"
131
];
132
};
133
@@ -171,6 +178,14 @@ rec {
178
AddType application/nix-package .nixpkg
179
180
SSLProtocol all -TLSv1
181
+
182
+ <Location /server-status>
183
+ SetHandler server-status
184
+ Allow from 127.0.0.1 # If using a remote host for monitoring replace 127.0.0.1 with its IP.
185
+ Order deny,allow
186
+ Deny from all
187
+ </Location>
188
+ ExtendedStatus On
189
'';
190
191
servedFiles = [
common.nix
+1
-1
@@ -20,5 +20,5 @@
20
'';
21
22
services.zabbixAgent.enable = true;
23
- services.zabbixAgent.server = "192.168.1.5";
23
+ services.zabbixAgent.server = "192.168.1.5,127.0.0.1";
24
}