@cryptotaxi247 / infra / commits / b218996c

svn path=/configurations/trunk/tud/; revision=33027

svn path=/configurations/trunk/tud/; revision=33027

Eelco Dolstra committed Mar 12, 2012 at 21:54 UTC b218996c648f5c55193f1e6df46dce63408dec72
1 file changed +16 -6
wendy.nix
+16 -6
@@ -71,15 +71,25 @@
71 max_connections = 250
72 '';
73 authentication = ''
74 - local all mediawiki ident map=mediawiki-users
75 - local all all ident
76 - host all all 127.0.0.1/32 md5
77 - host all all ::1/128 md5
78 - host all all 192.168.1.25/32 md5
79 - host all all 192.168.1.26/32 md5
74 + local all mediawiki ident map=mediawiki-users
75 + local all all ident
76 + host all all 127.0.0.1/32 md5
77 + host all all ::1/128 md5
78 + host all all 192.168.1.25/32 md5
79 + host hydra hydra 192.168.1.26/32 md5
80 + host hydra_test hydra 192.168.1.26/32 md5
81 + host mediawiki mediawiki 192.168.1.5/32 md5
82 + host zabbix zabbix 192.168.1.5/32 md5
83 '';
84 };
85
86 nixpkgs.config.packageOverrides = pkgs: { postgresql = pkgs.postgresql91; };
87
88 + services.zabbixAgent.extraConfig = ''
89 + UserParameter=hydra.queue.total,${pkgs.postgresql}/bin/psql hydra -At -c 'select count(*) from builds where finished = 0'
90 + UserParameter=hydra.queue.building,${pkgs.postgresql}/bin/psql hydra -At -c 'select count(*) from builds where finished = 0 and busy = 1'
91 + UserParameter=hydra.queue.buildsteps,${pkgs.postgresql}/bin/psql hydra -At -c 'select count(*) from BuildSteps s join Builds i on s.build = i.id where i.finished = 0 and i.busy = 1 and s.busy = 1'
92 + UserParameter=hydra.builds,${pkgs.postgresql}/bin/psql hydra -At -c 'select count(*) from Builds'
93 + '';
94 +
95 }