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}++; }