From 31a443aa7e5be59c454e7ce4e7954e55a8a9deb7 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 5 Feb 2020 22:59:24 +0100 Subject: [PATCH] Don't skip local node in PVE nodes discovery --- zabbix_scripts/disco_pve_sudo | 1 - 1 file changed, 1 deletion(-) diff --git a/zabbix_scripts/disco_pve_sudo b/zabbix_scripts/disco_pve_sudo index 699eb3e..e1ac4f3 100644 --- a/zabbix_scripts/disco_pve_sudo +++ b/zabbix_scripts/disco_pve_sudo @@ -31,7 +31,6 @@ if ($what eq 'nodes'){ my $cluster_status = from_json(qx($pvesh get /cluster/status $pvesh_opt 2>/dev/null)); foreach my $item (@{$cluster_status}){ next if ($item->{type} ne 'node'); - next if ($item->{name} eq hostname()); push @{$json->{data}}, { '{#PVE_NODE_NAME}' => $item->{name}, '{#PVE_NODE_IP}' => $item->{ip},