git.iko.soy/typeable/nixpkgs
on master help sign in
module zabbixProxy: server is a mandatory parameter
commit6e762653def5b5794c6ab75c5e55af95158ef0f0 authorMarek Mahut <marek.mahut@gmail.com> dateFri 26 Jul 2019, 15:49 (7 years ago) parent2a227c6
1 file changed+8
nixos/modules/services/monitoring/zabbix-proxy.nix+8
nixos/modules/services/monitoring/zabbix-proxy.nix+8
@@ -23,6 +23,7 @@ let
2323 LogType = console
2424 ListenIP = ${cfg.listen.ip}
2525 ListenPort = ${toString cfg.listen.port}
26+ Server = ${cfg.server}
2627 # TODO: set to cfg.database.socket if database type is pgsql?
2728 DBHost = ${optionalString (cfg.database.createLocally != true) cfg.database.host}
2829 ${optionalString (cfg.database.createLocally != true) "DBPort = ${cfg.database.port}"}
@@ -50,6 +51,13 @@ in
5051 services.zabbixProxy = {
5152 enable = mkEnableOption "the Zabbix Proxy";
5253
54+ server = mkOption {
55+ type = types.str;
56+ description = ''
57+ The IP address or hostname of the Zabbix server to connect to.
58+ '';
59+ };
60+
5361 package = mkOption {
5462 type = types.package;
5563 default =