diff --git a/zabbix_scripts/disco_pve_sudo b/zabbix_scripts/disco_pve_sudo index e350d90..b232042 100644 --- a/zabbix_scripts/disco_pve_sudo +++ b/zabbix_scripts/disco_pve_sudo @@ -51,7 +51,7 @@ if ($what eq 'nodes'){ push @{$json->{data}}, { '{#PVE_STOR_ID}' => $store->{storage}, '{#PVE_STOR_TYPE}' => $store->{type}, - '{#PVE_STOR_STATUS}' => ($store->{disabled} || 0), + '{#PVE_STOR_STATUS}' => (($store->{disable}) ? 0 : 1), '{#PVE_STOR_SHARED}' => ($store->{shared} || 0), '{#PVE_STOR_CONTENT}' => $store->{content} };