Network Interface Card (NIC) Team Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
svongor
Posts: 5
Joined: Thu Apr 15, 2021 4:01 pm

Network Interface Card (NIC) Team Monitoring

Post 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!
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Network Interface Card (NIC) Team Monitoring

Post 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
You do not have the required permissions to view the files attached to this post.
svongor
Posts: 5
Joined: Thu Apr 15, 2021 4:01 pm

Re: Network Interface Card (NIC) Team Monitoring

Post 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.
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Network Interface Card (NIC) Team Monitoring

Post 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
svongor
Posts: 5
Joined: Thu Apr 15, 2021 4:01 pm

Re: Network Interface Card (NIC) Team Monitoring

Post by svongor »

Thank you vtrac.

That was the solution to my problem.
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Network Interface Card (NIC) Team Monitoring

Post by vtrac »

Great!! .... may I lock / close this thread?

Best Regards,
Vinh
svongor
Posts: 5
Joined: Thu Apr 15, 2021 4:01 pm

Re: Network Interface Card (NIC) Team Monitoring

Post by svongor »

Yes.

Thank you.
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Network Interface Card (NIC) Team Monitoring

Post by vtrac »

Great!! .... locking thread ... :-)
Locked