Checks the link-state of net-ports.
$ check_netapp_netport -H <host> [--ok-state=<regex>] [...] [--help]
This plugin checks each net-ports link-state. Alarms if link-state is not up (default).
sim96cluster::> network port show
Node: sim96cluster-01
Speed(Mbps) Health
Port IPspace Broadcast Domain Link MTU Admin/Oper Status
--------- ------------ ---------------- ---- ---- ----------- --------
e0a Default Default up 1500 auto/1000 healthy
e0b Default Default down 1500 auto/- -
e0c Default Default up 1500 auto/1000 healthy
e0d Default Default up 1500 auto/1000 healthy
4 entries were displayed.
./check_netapp_netport -H sim96
NETAPP_PRO NETPORT OK - 4 netports checked
sim96cluster-01.e0b.physical (enabled, state: up)
sim96cluster-01.e0d.physical (enabled, state: up)
sim96cluster-01.e0c.physical (enabled, state: up)
sim96cluster-01.e0a.physical (enabled, state: up)
Checks all net-ports. Would return CRITICAL if the state is not ‘up’
./check_netapp_netport -H sim96
NETAPP_PRO NETPORT CRITICAL - 4 netports checked, 1 CRITICAL
sim96cluster-01.e0b.physical (CRITICAL) (enabled, state: down)
sim96cluster-01.e0d.physical (enabled, state: up)
sim96cluster-01.e0c.physical (enabled, state: up)
sim96cluster-01.e0a.physical (enabled, state: up)
Same as above - but one of the ports is down.
./check_netapp_netport -H sim96
NETAPP_PRO NETPORT CRITICAL - 4 netports checked, 1 CRITICAL
sim96cluster-01.e0b.physical (CRITICAL) (disabled, state: down)
sim96cluster-01.e0d.physical (enabled, state: up)
sim96cluster-01.e0c.physical (enabled, state: up)
sim96cluster-01.e0a.physical (enabled, state: up)
One of the ports is still down but disabled as well. This allows to skip it by means of the --ignore-disabled
switch:
./check_netapp_netport -H sim96 --ignore-disabled
NETAPP_PRO NETPORT OK - 3 netports checked
sim96cluster-01.e0d.physical (enabled, state: up)
sim96cluster-01.e0c.physical (enabled, state: up)
sim96cluster-01.e0a.physical (enabled, state: up)
With --exclude
and --include
ports can be excluded or included depending on their name. Since these parameters expect a regular expression also specific nodes can be tested.
./check_netapp_netport -H sim96 --include=e0a
NETAPP_PRO NETPORT OK - 1 netport checked
sim96cluster-01.e0a.physical (enabled, state: up)
Checks exactly one net-port.
./check_netapp_netport -H mycluster --include="^mycluster-01\."
NETAPP_PRO NETPORT OK - 4 netports checked
mycluster-01.e0b.physical (enabled, state: up)
mycluster-01.e0d.physical (enabled, state: up)
mycluster-01.e0c.physical (enabled, state: up)
mycluster-01.e0a.physical (enabled, state: up)
Checks only the net-ports on node “01”.
./check_netapp_netport -H cluster1
NETAPP_PRO NETPORT CRITICAL - 9 net-ports checked, 1 critical and 0 warning.
cluster1-01.e0a.physical: up
cluster1-01.e0b.physical: up
cluster1-01.e0c.physical: up
cluster1-01.e0d.physical: up
cluster1-02.e0a.physical: up
cluster1-02.e0b.physical: up
cluster1-02.e0c.physical: up
cluster1-02.e0d.physical: up
cluster1-01.g0a.if_group: down (CRITICAL)
Interfacegroups can be excluded and than checked by it’s own:
./check_netapp_netport -H cluster1 --exclude="if_group$"
NETAPP_PRO NETPORT OK - 8 net-ports checked
No SVC-ACK relevant changes in reason.
cluster1-01.e0a.physical: up
cluster1-01.e0b.physical: up
cluster1-01.e0c.physical: up
cluster1-01.e0d.physical: up
cluster1-02.e0a.physical: up
cluster1-02.e0b.physical: up
cluster1-02.e0c.physical: up
cluster1-02.e0d.physical: up
./check_netapp_netport -H cluster1 --include="if_group$"
NETAPP_PRO NETPORT OK - 1 net-port checked
cluster1-01.g0a.if_group: down (CRITICAL)