Page 1 of 1

Network Interface Card (NIC) Team Monitoring

Posted: Tue Apr 20, 2021 2:10 pm
by svongor
Hello,

I created a NIC team on my Windows 2019 Server but Nagios xi only sees the teamed group when I set up my host in the Windows Server Config Wizard under Network Interface Metrics. This means if one of my teamed cards goes down I can't monitor it because the connection will still be up!

I am new to this and I just began learning Nagios xi, so I'm sure I'm missing something.
Is there any way I can monitor both of my NIC teamed card in Nagios xi?

Any help would be much appreciated!

Re: Network Interface Card (NIC) Team Monitoring

Posted: Wed Apr 21, 2021 10:07 am
by vtrac
Hi,
NIC teaming is a feature of Windows Server that allows the grouping of NICs into teams.
Hence, NIC teaming maintains a connection to multiple physical switches but uses a single IP address.

On your Nagios XI command prompt, please run the below command:
NOTE: "x.x.x.x" is the remote windows server's IP address and "yourToken" is defined in your "ncpa.cfg" file.

Code: Select all

curl -k "https://x.x.x.x:5693/api/interface?token=yourToken"
The outputs of the above command will list all the interfaces that you can monitor.

I believe when running the "Windows Server Configuration Wizard", all of those interfaces should already be listed as well. You might have to click the "Show all interfaces" link.
W1.png
You can try re-ran the wizard again and see if those interfaces are listed.


Best Regards,
Vinh

Re: Network Interface Card (NIC) Team Monitoring

Posted: Wed Apr 28, 2021 4:57 pm
by svongor
Thank you vtrac.
I this we are heading in the right direction.

[root@localhost cfgprep]# curl -k "https://172.16.2.25:5693/api/interface? ... cijN4XpcS4"
{
"interface": {
"Server Network": {
"packets_sent": [
156263232,
"packets"
],
"dropin": [
0,
"packets"
],
"bytes_recv": [
182.85,
"GiB"
],
"packets_recv": [
273746508,
"packets"
],
"errin": [
0,
"errors"
],
"dropout": [
0,
"packets"
],
"bytes_sent": [
561.14,
"GiB"
],
"errout": [
0,
"errors"

When I use that command, I can see the interfaces; however, I get an error when I attempt to monitor it in the web interface.
I used -t 'myToken' -P 5693 -M 'interface/ServerNetwork/bytes_recv' -d -u M -w '10' -c '100'
I got:
UNKNOWN: The node (ServerNetwork) requested does not exist.

Please advise, thank you.

Re: Network Interface Card (NIC) Team Monitoring

Posted: Thu Apr 29, 2021 11:09 am
by vtrac
Hi,
Hope you are having a good day.

Looks like you were missing a "space" between "Server Network", please try this:

Code: Select all

cd /usr/local/nagios/libexec

./check_ncpa.py -H x.x.x.x -t "myToken" -P 5693 -M  "interface/Server Network/bytes_recv" d -u M -w '10' -c '100'
You can test that with curl, replace "%20" for each "space":

Code: Select all

curl -k "https://x.x.x.x:5693/api/interface/Server%20Network/bytes_recv?token=myToken"

Best Regards,
Vinh

Re: Network Interface Card (NIC) Team Monitoring

Posted: Mon May 03, 2021 10:04 am
by svongor
Thank you vtrac.

That was the solution to my problem.

Re: Network Interface Card (NIC) Team Monitoring

Posted: Mon May 03, 2021 10:50 am
by vtrac
Great!! .... may I lock / close this thread?

Best Regards,
Vinh

Re: Network Interface Card (NIC) Team Monitoring

Posted: Fri May 14, 2021 9:10 am
by svongor
Yes.

Thank you.

Re: Network Interface Card (NIC) Team Monitoring

Posted: Fri May 14, 2021 9:23 am
by vtrac
Great!! .... locking thread ... :-)