Icinga / Icinga/icinga-powershell-plugins
Invoke-IcingaCheckNetworkInterface 1.5.0 - missing some NICs
Open
@LordHepipud is already working on this.
Since Jun 4, 2021.
bug
- Dominant language
- PowerShell
- Stars
- 55
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
the check doesn't show all NCIs (only 4 of 7)
here an example:
PS C:\Windows\system32> Invoke-IcingaCheckNetworkInterface -Verbosity 3
[OK] Network Device Package: 4 Ok (All must be [OK])
\_ [OK] Interface Ethernet (All must be [OK])
\_ [OK] eth 7: AdminLocked: False
\_ [OK] eth 7: bytes received/sec: 44.28409B
\_ [OK] eth 7: bytes sent/sec: 172.3303B
\_ [OK] eth 7: bytes total/sec: 216.6663B
\_ [OK] eth 7: Interface AdminStatus: Up
\_ [OK] eth 7: Interface OperationalStatus: Up
\_ [OK] eth 7: LinkSpeed: 425.984Mbit
\_ [OK] eth 7: NetConnectionStatus: Connected
\_ [OK] eth 7: packets outbound discarded: 0c
\_ [OK] eth 7: packets outbound errors: 0c
\_ [OK] eth 7: packets received discarded: 0c
\_ [OK] eth 7: packets received errors: 0c
\_ [OK] eth 7: packets received/sec: 0.722506c
\_ [OK] eth 7: packets sent/sec: 2.02299c
\_ [OK] eth 7: VlanID: 0
\_ [OK] Interface NIC2 switch b StorageSwitch (All must be [OK])
\_ [OK] eth 4: AdminLocked: False
\_ [OK] eth 4: bytes received/sec: 2.70MiB
\_ [OK] eth 4: bytes sent/sec: 0B
\_ [OK] eth 4: bytes total/sec: 2.69MiB
\_ [OK] eth 4: Interface AdminStatus: Up
\_ [OK] eth 4: Interface OperationalStatus: Up
\_ [OK] eth 4: LinkSpeed: 10Gbit
\_ [OK] eth 4: NetConnectionStatus: Connected
\_ [OK] eth 4: packets outbound discarded: 0c
\_ [OK] eth 4: packets outbound errors: 0c
\_ [OK] eth 4: packets received discarded: 0c
\_ [OK] eth 4: packets received errors: 0c
\_ [OK] eth 4: packets received/sec: 2047.793c
\_ [OK] eth 4: packets sent/sec: 328.4474c
\_ [OK] eth 4: VlanID: 0
\_ [OK] Interface SLOT 1 Port 1 switch a StorageSwitch (All must be [OK])
\_ [OK] eth 5: AdminLocked: False
\_ [OK] eth 5: bytes received/sec: 2.41MiB
\_ [OK] eth 5: bytes sent/sec: 0B
\_ [OK] eth 5: bytes total/sec: 2.50MiB
\_ [OK] eth 5: Interface AdminStatus: Up
\_ [OK] eth 5: Interface OperationalStatus: Up
\_ [OK] eth 5: LinkSpeed: 10Gbit
\_ [OK] eth 5: NetConnectionStatus: Connected
\_ [OK] eth 5: packets outbound discarded: 0c
\_ [OK] eth 5: packets outbound errors: 0c
\_ [OK] eth 5: packets received discarded: 0c
\_ [OK] eth 5: packets received errors: 0c
\_ [OK] eth 5: packets received/sec: 1977.203c
\_ [OK] eth 5: packets sent/sec: 363.4281c
\_ [OK] eth 5: VlanID: 0
\_ [OK] Interface SLOT 1 Port 2 switch b ComputeSwitch (All must be [OK])
\_ [OK] eth 2: AdminLocked: False
\_ [OK] eth 2: bytes received/sec: 20.67KiB
\_ [OK] eth 2: bytes sent/sec: 0B
\_ [OK] eth 2: bytes total/sec: 20.67KiB
\_ [OK] eth 2: Interface AdminStatus: Up
\_ [OK] eth 2: Interface OperationalStatus: Up
\_ [OK] eth 2: LinkSpeed: 10Gbit
\_ [OK] eth 2: NetConnectionStatus: Connected
\_ [OK] eth 2: packets outbound discarded: 0c
\_ [OK] eth 2: packets outbound errors: 0c
\_ [OK] eth 2: packets received discarded: 0c
\_ [OK] eth 2: packets received errors: 0c
\_ [OK] eth 2: packets received/sec: 68.06094c
\_ [OK] eth 2: packets sent/sec: 57.22137c
\_ [OK] eth 2: VlanID: 0
| 'eth_2_bytes_sentsec'=0B;;;0;1250000000 'eth_2_bytes_receivedsec'=21164.24B;;;0;1250000000 'eth_2_packets_receivedsec'=68.06094c;; 'eth_2_packets_received_discarded'=0c;;;0;68.06094 'eth_2_packets_outbound_discarded'=0c;;;0;57.22137 'eth_2_packets_received_errors'=0c;;;0;68.06094 'eth_2_packets_sentsec'=57.22137c;; 'eth_2_bytes_totalsec'=21165.71B;;;0;1250000000 'eth_2_packets_outbound_errors'=0c;;;0;57.22137 'eth_4_packets_outbound_discarded'=0c;;;0;328.4474 'eth_4_packets_receivedsec'=2047.793c;; 'eth_4_packets_sentsec'=328.4474c;; 'eth_4_packets_received_discarded'=0c;;;0;2047.793 'eth_4_packets_outbound_errors'=0c;;;0;328.4474 'eth_4_packets_received_errors'=0c;;;0;2047.793 'eth_4_bytes_receivedsec'=2829076B;;;0;1250000000 'eth_4_bytes_sentsec'=0B;;;0;1250000000 'eth_4_bytes_totalsec'=2818835B;;;0;1250000000 'eth_7_packets_receivedsec'=0.722506c;; 'eth_7_bytes_totalsec'=216.6663B;;;0;53248000 'eth_7_packets_outbound_errors'=0c;;;0;2.02299 'eth_7_bytes_receivedsec'=44.28409B;;;0;53248000 'eth_7_packets_sentsec'=2.02299c;; 'eth_7_packets_outbound_discarded'=0c;;;0;2.02299 'eth_7_packets_received_errors'=0c;;;0;0.722506 'eth_7_bytes_sentsec'=172.3303B;;;0;53248000 'eth_7_packets_received_discarded'=0c;;;0;0.722506 'eth_5_linkspeed'=10000000000;; 'eth_4_linkspeed'=10000000000;; 'eth_7_linkspeed'=425984000;; 'eth_2_linkspeed'=10000000000;; 'eth_5_packets_received_errors'=0c;;;0;1977.203 'eth_5_packets_sentsec'=363.4281c;; 'eth_5_packets_outbound_discarded'=0c;;;0;363.4281 'eth_5_packets_received_discarded'=0c;;;0;1977.203 'eth_5_bytes_sentsec'=0B;;;0;1250000000 'eth_5_bytes_totalsec'=2617938B;;;0;1250000000 'eth_5_packets_outbound_errors'=0c;;;0;363.4281 'eth_5_bytes_receivedsec'=2522080B;;;0;1250000000 'eth_5_packets_receivedsec'=1977.203c;;
0
this server has 7 physical NICs and 3 vNICs (using Switch-Embedded-Teaming)
PS C:\Windows\system32> Get-NetAdapter|select Name, InterfaceDescription, ifIndex, Status, LinkSpeed | ft
Name InterfaceDescription ifIndex Status LinkSpeed
---- -------------------- ------- ------ ---------
NIC1 switch a ComputeSwitch Intel(R) Ethernet 10G 4P X710/I350 rNDC 27 Up 10 Gbps
SLOT 1 Port 1 switch a StorageSwitch Intel(R) Ethernet Converged Network Adapter X710 #2 26 Up 10 Gbps
NIC3-WAN Intel(R) Gigabit 4P X710/I350 rNDC #2 24 Not Present 0 bps
Ethernet Remote NDIS Compatible Device 23 Up 426.0 Mbps
NIC2 switch b StorageSwitch Intel(R) Ethernet 10G X710 rNDC 22 Up 10 Gbps
vEthernet (Management) Hyper-V Virtual Ethernet Adapter #3 21 Up 10 Gbps
vSMB2 Hyper-V Virtual Ethernet Adapter #2 11 Up 10 Gbps
vSMB1 Hyper-V Virtual Ethernet Adapter 10 Up 10 Gbps
SLOT 1 Port 2 switch b ComputeSwitch Intel(R) Ethernet Converged Network Adapter X710 7 Up 10 Gbps
NIC4 Intel(R) Gigabit 4P X710/I350 rNDC 2 Disconnected 0 bps
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.