We have a custom zapi template for fcp port. It works well on our 4 node clusters. But on 2 node cluster it reports
│ 20:33:88:94:71:e5:ad:00" returned "flc2-02-prod-prt-storage 0f 10 20:00:88:94:71:e5:ad:00". Poller=flc2-prod-prt-storage collector=Zapi:Fcpport task=data```
Only works when one of the 2 nodes is down. Here is the template
```name: Fcp_Port
query: fcp-topology-port-get-iter
object: fcp_port
collect_only_labels: true
counters:
fcp-topology-port-info:
- ^^adapter => adapter
- ^^node => node
- ^port-attached-wwpn => port_attached_wwpn
- ^port-state => state
- ^^port-slot => port
- ^port-wwpn => port_wwpn
- ^switch-name => switch_name
- ^switch-release => switch_release
- ^switch-vendor => switch_vendor
- ^switch-wwn => switch_wwn
plugins:
LabelAgent:
# metric label zapi_value rest_value `default_value`
value_to_num:
- new_status state online online `0`
export_options:
instance_keys:
- node
- adapter
- port
instance_labels:
- switch_name
- port_attached_wwpn
- state
- port_wwpn
- switch_release
- switch_vendor
- switch_wwn
Any idea? Thanks!