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.
Issue with networking monitoring on VMWare 6
Re: Issue with networking monitoring on VMWare 6
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:
2. Download the file below, unzip it, and copy the new plugin (ver. 0.7.1) to the "/usr/local/nagios/libexec/" directory
3. Make sure the permissions are the same as on the "old" plugin. You will probably need to run:
4. Verify the version number:
5. Test your commands:
Let us know if this helped.
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.old3. 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.plCode: Select all
/usr/local/nagios/libexec/check_esx3.pl -VCode: 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"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!
Re: Issue with networking monitoring on VMWare 6
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.
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
@Ivajlo911, Thanks let us know your permissions.
Re: Issue with networking monitoring on VMWare 6
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.
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
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!
If you have any more questions, feel free to create another thread!
Thank you for using the Nagios Support Forum!