Nagios thinks 2 NICs are unplugged with Half-height blades

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
delite
Posts: 8
Joined: Fri Feb 26, 2016 4:40 pm

Nagios thinks 2 NICs are unplugged with Half-height blades

Post by delite »

:? Nagios thinks 2 NICs are unplugged with Half-height blades, but there are no NIC 2 or 3 :!:
I am running Nagios XI version 5.2.0 on a Cent-OS 4/5/6/ (32-bit) server.
My ESX servers are running on HP c7000 half-height server blades. Nagios continuously gives a Networking for VMHost service error.
"CHECK_ESX3.PL CRITICAL - net receive=3.00 KBps, send=63.00 KBps, 2/4 NICs are disconnected: , vmnic2 is unplugged, vmnic3 is unplugged"

I have not seen this issue listed in any of the forums, through I am new to Nagios. Is there a parameter that can be tweaked to fix this? Or maybe was it fixed in a different version? Thank you in advance for all the help. :mrgreen:
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios thinks 2 NICs are unplugged with Half-height blad

Post by rkennedy »

Can you post the related service definition for this so that we can see the full check_command?

Also - do you have all 4 NICs configured in ESXI?
Former Nagios Employee
delite
Posts: 8
Joined: Fri Feb 26, 2016 4:40 pm

Re: Nagios thinks 2 NICs are unplugged with Half-height blad

Post by delite »

Half-height server blades only have two built-in NICs. Though I do have some full-height server blades, also configured in ESXI, which are using all 4 of their built-in NICs.
Where would I be able to find the related service definition? :?:
delite
Posts: 8
Joined: Fri Feb 26, 2016 4:40 pm

Re: Nagios thinks 2 NICs are unplugged with Half-height blad

Post by delite »

Is below the service description you were looking for? :?


define service {
host_name server1.domain.name
service_description Networking for VMHost
use xiwizard_generic_service
check_command check_esx3_host!/usr/local/nagios/vmware/name.txt!NET!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contact_groups Linux Admins
_xiwizard vmware
register 1
}
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios thinks 2 NICs are unplugged with Half-height blad

Post by ssax »

After looking at the plugin it is actually the ESX host that is returning that data, please login to your ESX host with your vSphere client and then click on the host, then:
- Click the Configuration tab on the right
- Under Hardware on the left click on Network Adapters

How many vmnics are listed there?

Than you
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios thinks 2 NICs are unplugged with Half-height blad

Post by Box293 »

As an alternative, I suggest using the plugin box293_check_vmware as it does allow you to specify which nics you want to check.

box293_check_vmware can be downloaded here:
http://exchange.nagios.org/directory/Pl ... re/details

There is also a wizard for it:
http://exchange.nagios.org/directory/Ad ... rd/details
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
delite
Posts: 8
Joined: Fri Feb 26, 2016 4:40 pm

Re: Nagios thinks 2 NICs are unplugged with Half-height blad

Post by delite »

SAXX,
I went and checked and the servers are showing that vmnic2 and vmnic3 are down, within vSphere. BUT then why are not all of my half-height blades giving the same error, since I see all of them showing the same thing of those NICs as down? :?

Box293,
Thank you for the information. I am suggesting to management to setup a vMA server and use the box293_check_vmware plugin. It looks like it will fix this issue as well as a few others I haven't even started to research. :D
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios thinks 2 NICs are unplugged with Half-height blad

Post by rkennedy »

Are vmnic2/vmnic3 configured on this specific machine? I would think it's config related at that point.

Let us know if you have any questions with the box293_check_vmware plugin.
Former Nagios Employee
delite
Posts: 8
Joined: Fri Feb 26, 2016 4:40 pm

Re: Nagios thinks 2 NICs are unplugged with Half-height blad

Post by delite »

None of the half-height systems have the vmnic2/vmnic3 configured, so why would only 3 out of 8 be giving this error?
delite
Posts: 8
Joined: Fri Feb 26, 2016 4:40 pm

Re: Nagios thinks 2 NICs are unplugged with Half-height blad

Post by delite »

I am able to see the vSphere Distributed Switch showing that vmnic0 / vmnic1 are connected and vmnic2 / vmnic3 are disconnected. I have the option to remove those dvUplinks that are disconnected. Would doing that also be a way of resolving this error? (The nagios server was rebooted last night for monthly security patching and now I am not showing any of my half-height servers erroring with "2/4 NICs are disconnected". Though I don't expect it to stay that way forever since nothing had been changed.)
Locked