diff --git a/upstart-jobs/apache-httpd/zabbix.nix b/upstart-jobs/apache-httpd/zabbix.nix index c7f48fe7df6a..de597f6c4da4 100644 --- a/upstart-jobs/apache-httpd/zabbix.nix +++ b/upstart-jobs/apache-httpd/zabbix.nix @@ -20,6 +20,13 @@ in { + extraModules = [ + { name = "php5"; path = "${pkgs.php}/modules/libphp5.so"; } + ]; + + # !!! should also declare PHP options that Zabbix needs like the + # timezone and timeout. + extraConfig = '' Alias ${config.urlPrefix}/ ${zabbixPHP}/ @@ -35,6 +42,9 @@ in chown -R ${serverInfo.serverConfig.user} ${config.stateDir} ''; + # The frontend needs "ps" to find out whether zabbix_server is running. + extraServerPath = ["${pkgs.procps}/bin"]; + options = { urlPrefix = pkgs.lib.mkOption {