- cp ${zfsPlugin} $out/check_zpool.sh && chmod +x $out/check_zpool.sh
- cp ${megaCliPlugin}/check_megaraid_sas $out/
- cp ${./plugins}/* $out/
- patchShebangs $out
- wrapProgram $out/check_command --prefix PATH : ${config.security.wrapperDir}
- wrapProgram $out/check_zpool.sh --prefix PATH : ${lib.makeBinPath [
- pkgs.which pkgs.zfs pkgs.gawk
- ]}
- wrapProgram $out/send_nrdp.sh --prefix PATH : ${lib.makeBinPath [
- pkgs.curl pkgs.jq
- ]}
- wrapProgram $out/check_mem.sh --prefix PATH : ${lib.makeBinPath [
- pkgs.gnugrep pkgs.gawk pkgs.procps-ng
- ]}
- wrapProgram $out/check_postgres_replication --prefix PATH : ${lib.makeBinPath [
- postgresqlBinary
- ]}
- wrapProgram $out/check_redis_replication --prefix PATH : ${lib.makeBinPath [
- pkgs.gnugrep pkgs.coreutils pkgs.redis
- ]}
- wrapProgram $out/check_mysql_replication --prefix PATH : ${lib.makeBinPath [
- pkgs.gnugrep pkgs.gnused pkgs.coreutils pkgs.mariadb
- ]}
- wrapProgram $out/check_openldap_replication --prefix PATH : ${lib.makeBinPath [
- pkgs.gnugrep pkgs.gnused pkgs.coreutils pkgs.openldap
- ]}
- wrapProgram $out/check_emails --prefix PATH : ${lib.makeBinPath [
- pkgs.openssh send_mails
- ]} --prefix PERL5LIB : ${pkgs.perlPackages.makePerlPath [
- pkgs.perlPackages.TimeDate
- ]}
- wrapProgram $out/check_ftp_database --prefix PATH : ${lib.makeBinPath [
- pkgs.lftp
- ]}
- wrapProgram $out/check_git --prefix PATH : ${lib.makeBinPath [
- pkgs.git pkgs.openssh
- ]}
- wrapProgram $out/check_imap_connection --prefix PATH : ${lib.makeBinPath [
- pkgs.openssl
- ]}
- wrapProgram $out/check_eriomem --prefix PATH : ${lib.makeBinPath [
- pkgs.s3cmd pkgs.python3
- ]}
- makeWrapper $out/check_backup_age $out/check_backup_eriomem_age --prefix PATH : ${lib.makeBinPath [
- pkgs.duplicity
- ]} --set SECRETS_PATH ${lib.optionalString cfg.master config.secrets.fullPaths."eriomem_access_key"}
- makeWrapper $out/check_backup_age $out/check_backup_ovh_age --prefix PATH : ${lib.makeBinPath [
- pkgs.duplicity
- ]} --set SECRETS_PATH ${lib.optionalString cfg.master config.secrets.fullPaths."ovh_access_key"}
- wrapProgram $out/notify_by_email --prefix PATH : ${lib.makeBinPath [
- pkgs.mailutils
- ]}
- wrapProgram $out/notify_by_slack --prefix PATH : ${lib.makeBinPath [
- pkgs.curl pkgs.jq
- ]}
- wrapProgram $out/notify_eban_url --prefix PATH : ${lib.makeBinPath [
- pkgs.curl
- ]}
- wrapProgram $out/check_ovh_sms --prefix PATH : ${lib.makeBinPath [
- (pkgs.python3.withPackages (ps: [ps.ovh]))
- ]}
- wrapProgram $out/check_bandwidth --prefix PATH : ${lib.makeBinPath [
- pkgs.iproute pkgs.bc
- ]}