Page 1 of 1

Issue with networking monitoring on VMWare 6

Posted: Wed Oct 25, 2017 6:39 am
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.

Re: Issue with networking monitoring on VMWare 6

Posted: Wed Oct 25, 2017 9:33 am
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.

Re: Issue with networking monitoring on VMWare 6

Posted: Thu Oct 26, 2017 3:20 am
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.

Re: Issue with networking monitoring on VMWare 6

Posted: Thu Oct 26, 2017 9:14 am
by kyang
@Ivajlo911, Thanks let us know your permissions.

Re: Issue with networking monitoring on VMWare 6

Posted: Thu Nov 02, 2017 5:00 am
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.

Re: Issue with networking monitoring on VMWare 6

Posted: Thu Nov 02, 2017 9:07 am
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!