Issue with networking monitoring on VMWare 6

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Ivajlo911
Posts: 38
Joined: Thu Mar 23, 2017 3:19 am

Issue with networking monitoring on VMWare 6

Post by Ivajlo911 »

Hi,
we have the following problem:
When we try to monitor the network of a host of VMWare 6 via vCenter with version check_esx3.pl it produces an error:
/usr/local/nagios/libexec/check_esx3.pl -H "10.10.10.66" -f "/usr/local/nagiosxi/etc/components/vmware/vCenter_6_auth.txt" -l "net"
ESX3 CRITICAL - Can't call method "network" on an undefined value at /usr/local/nagios/libexec/check_esx3.pl line 858. | net_receive=0.00KB;; net_send=0.00KB;;

When we perform:
[root@l3cnagint libexec]# /usr/local/nagios/libexec/check_esx3.pl -D "10.10.10.66" -f "/usr/local/nagiosxi/etc/components/vmware/vCenter_6_auth.txt" -l "net"
ESX3 OK - net receive=0.00 KB/s, send=61.00 KB/s | net_receive=0.00KB;; net_send=61.00KB;;
works but does not give information on the attached network adapters as on VMWare 6.5.

If we try to monitor a specific host it also produces an error:
/usr/local/nagios/libexec/check_esx3.pl -D "10.10.10.66" -H 10.10.10.41 -f "/usr/local/nagiosxi/etc/components/vmware/vCenter_6_auth.txt" -l "net"
ESX3 CRITICAL - Can't call method "network" on an undefined value at /usr/local/nagios/libexec/check_esx3.pl line 858. | net_receive=0.00KB;; net_send=0.00KB;;

Plugin's version is:
./check_esx3.pl -V
check_esx3.pl 0.2.1

Details of our implementation:
CentOS Linux release 7.3.1611 64 bit
Manual Install of Nagios XI
No special configurations on our system, ie; is Gnome installed
We are not using a proxy
We are using Nagios XI 5.4.7.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issue with networking monitoring on VMWare 6

Post by lmiltchev »

Try using a newer version of the check_esx3 plugin to see if this is going to resolve the issue.

1. Make a backup of the original plugin:

Code: Select all

cp /usr/local/nagios/libexec/check_esx3.pl /usr/local/nagios/libexec/check_esx3.pl.old
2. Download the file below, unzip it, and copy the new plugin (ver. 0.7.1) to the "/usr/local/nagios/libexec/" directory
check_esx3.zip
3. Make sure the permissions are the same as on the "old" plugin. You will probably need to run:

Code: Select all

chown apache:nagios /usr/local/nagios/libexec/check_esx3.pl
chmod 775 /usr/local/nagios/libexec/check_esx3.pl
4. Verify the version number:

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl -V
5. Test your commands:

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl -H "10.10.10.66" -f "/usr/local/nagiosxi/etc/components/vmware/vCenter_6_auth.txt" -l "net"
/usr/local/nagios/libexec/check_esx3.pl -D "10.10.10.66" -f "/usr/local/nagiosxi/etc/components/vmware/vCenter_6_auth.txt" -l "net"
/usr/local/nagios/libexec/check_esx3.pl -D "10.10.10.66" -H 10.10.10.41 -f "/usr/local/nagiosxi/etc/components/vmware/vCenter_6_auth.txt" -l "net"
Let us know if this helped.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Ivajlo911
Posts: 38
Joined: Thu Mar 23, 2017 3:19 am

Re: Issue with networking monitoring on VMWare 6

Post by Ivajlo911 »

Hi,
we performed the update and Nagios returned another error:

[root@l3cnagint ~]# ./check_esx3.pl -D "10.10.10.66" -f "/usr/local/nagiosxi/etc/components/vmware/vCenter_6_auth.txt" -H 10.10.10.40 -l net CHECK_ESX3.PL CRITICAL - NIC data is not available.

Which is strange - we are taking a look if it is something with rights in vCenter.

Will update a bit later.
kyang

Re: Issue with networking monitoring on VMWare 6

Post by kyang »

@Ivajlo911, Thanks let us know your permissions.
Ivajlo911
Posts: 38
Joined: Thu Mar 23, 2017 3:19 am

Re: Issue with networking monitoring on VMWare 6

Post by Ivajlo911 »

Hi,
it turned out when looking closer into it - the ESX hosts had networking issues.

After rebooting the hosts, everything is fine now.

Thank you - you can close this one.
kyang

Re: Issue with networking monitoring on VMWare 6

Post by kyang »

Sounds great! I'll be closing this topic.

If you have any more questions, feel free to create another thread!

Thank you for using the Nagios Support Forum!
Locked