Don't skip local node in PVE nodes discovery

tags/zabbix-agent-addons-0.2.109-1
Daniel Berteaud 5 years ago
parent 493df17e76
commit 31a443aa7e
  1. 1
      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},

Loading…
Cancel
Save