From 5ff7e2214c6d08ffd9530b0d7d2b21060a808ddf Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 14 Jan 2021 19:13:53 +0100 Subject: [PATCH] [check_samba_dc_sudo] Fix typo with GPO listing --- zabbix_scripts/check_samba_dc_sudo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zabbix_scripts/check_samba_dc_sudo b/zabbix_scripts/check_samba_dc_sudo index 347355a..63cf98e 100644 --- a/zabbix_scripts/check_samba_dc_sudo +++ b/zabbix_scripts/check_samba_dc_sudo @@ -134,7 +134,7 @@ if (defined $ou){ } # Get the number of GPO - foreach (qx($samba_tool gpo listall 2/dev/null)){ + foreach (qx($samba_tool gpo listall 2>/dev/null)){ next unless (/^GPO/); $json->{gpo}++; }