summary refs log tree commit diff
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2021-09-27 08:07:07 -0400
committerGitHub <noreply@github.com>2021-09-27 08:07:07 -0400
commitcdfe909dae4a14eeb33b54b9e6db382a24a367bb (patch)
treece64b0011167e9832d5c33984024d8385dcf63d0
parent5c4181fa0c09c82b07d53a3ab564deb16b1fa841 (diff)
parentd6069f5c5e12a8c8827748e9fa45635e3bd948e6 (diff)
downloadnixpkgs-cdfe909dae4a14eeb33b54b9e6db382a24a367bb.tar
nixpkgs-cdfe909dae4a14eeb33b54b9e6db382a24a367bb.tar.gz
nixpkgs-cdfe909dae4a14eeb33b54b9e6db382a24a367bb.tar.bz2
nixpkgs-cdfe909dae4a14eeb33b54b9e6db382a24a367bb.tar.lz
nixpkgs-cdfe909dae4a14eeb33b54b9e6db382a24a367bb.tar.xz
nixpkgs-cdfe909dae4a14eeb33b54b9e6db382a24a367bb.tar.zst
nixpkgs-cdfe909dae4a14eeb33b54b9e6db382a24a367bb.zip
Merge pull request #139357 from arezvov/zabbix_ipmi_support
zabbix: add IPMI support
-rw-r--r--pkgs/servers/monitoring/zabbix/server.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/servers/monitoring/zabbix/server.nix b/pkgs/servers/monitoring/zabbix/server.nix
index 03e9c1a867b..474cf82f7c1 100644
--- a/pkgs/servers/monitoring/zabbix/server.nix
+++ b/pkgs/servers/monitoring/zabbix/server.nix
@@ -6,6 +6,7 @@
 , sshSupport ? true, libssh2
 , mysqlSupport ? false, libmysqlclient
 , postgresqlSupport ? false, postgresql
+, ipmiSupport ? false, openipmi
 }:
 
 # ensure exactly one primary database type is selected
@@ -41,7 +42,8 @@ in
       ++ optional snmpSupport net-snmp
       ++ optional sshSupport libssh2
       ++ optional mysqlSupport libmysqlclient
-      ++ optional postgresqlSupport postgresql;
+      ++ optional postgresqlSupport postgresql
+      ++ optional ipmiSupport openipmi;
 
       configureFlags = [
         "--enable-server"
@@ -59,7 +61,8 @@ in
       ++ optional snmpSupport "--with-net-snmp"
       ++ optional sshSupport "--with-ssh2=${libssh2.dev}"
       ++ optional mysqlSupport "--with-mysql"
-      ++ optional postgresqlSupport "--with-postgresql";
+      ++ optional postgresqlSupport "--with-postgresql"
+      ++ optional ipmiSupport "--with-openipmi=${openipmi.dev}";
 
       prePatch = ''
         find database -name data.sql -exec sed -i 's|/usr/bin/||g' {} +