Connect to VMware
Connect to VMware
Arrggggggg.
I hope someone can assist me in what would appear to be a simple issue.....
Ive been trialling nagios for a few weeks.
I still don;t have the ability to monitor vmware.
I run the wizard:
I get this:
length() used on @array (did you mean "scalar(@array)"?) at /usr/lib64/perl5/IO/Compress/Zlib/Extra.pm line 198.
Error: Permission to perform this operation was denied.
I'm guessing I need to do something with vmware to make this work but I have not been able to figure out what and I do not have enough vmware expereince to feel confident about making changes.
Please could someone recommend something.
thanks
Chris
I hope someone can assist me in what would appear to be a simple issue.....
Ive been trialling nagios for a few weeks.
I still don;t have the ability to monitor vmware.
I run the wizard:
I get this:
length() used on @array (did you mean "scalar(@array)"?) at /usr/lib64/perl5/IO/Compress/Zlib/Extra.pm line 198.
Error: Permission to perform this operation was denied.
I'm guessing I need to do something with vmware to make this work but I have not been able to figure out what and I do not have enough vmware expereince to feel confident about making changes.
Please could someone recommend something.
thanks
Chris
Re: Connect to VMware
Can you verify what XI version you are using? I assume it is 5.4.13 since that is the latest but I want to make sure so we can test internally. The version number is in the lower-left corner of the interface after you log in.
Former Nagios employee
Re: Connect to VMware
Nagios XI 5.4.13
So desperate to find something which will monitor my environment - but getting more and more frustrated with nagios
thanks
So desperate to find something which will monitor my environment - but getting more and more frustrated with nagios
thanks
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Connect to VMware
When installing the SDK did you get all the way to the end with no errors?
Also can you share the command you are running that is failing?
Finally, does the vmware user you are using have administrative permissions?
Also can you share the command you are running that is failing?
Finally, does the vmware user you are using have administrative permissions?
Re: Connect to VMware
thanks for connecting with me
On install I get successful - no errors but a warning thus:
the following perl modules were found on the system but maybe too old to work with vsphere cli
Please bear in mind I have installed the OVA provided by nagios so Im guessing they are all going to actually work or the OVA would have been changed
The modules are:
MIME, TRy, LWP, Socket6 and IO
Everything else looks perfect and the wizard runs fine. I have logged in to my vmware vcentre server with the root credentials (want to try at the top level just to make it work. The credentials work fine.
I have then entered these same credentials into the wizard and I get an email back from the first check which says :
CHECK_ESX3.PL CRITICAL - Error: Permission to perform this operation was denied.
I must be doing something wrong - other people are using nagios so I know the problem must lie with me - but I am following the instructions as best I can.
In answer to your questions.
I am not running a command - it is GUI based wizard which is not showing any errors
I have full permissions myself and have tried with my login as well as several others in the hope something might work!!
thanks
On install I get successful - no errors but a warning thus:
the following perl modules were found on the system but maybe too old to work with vsphere cli
Please bear in mind I have installed the OVA provided by nagios so Im guessing they are all going to actually work or the OVA would have been changed
The modules are:
MIME, TRy, LWP, Socket6 and IO
Everything else looks perfect and the wizard runs fine. I have logged in to my vmware vcentre server with the root credentials (want to try at the top level just to make it work. The credentials work fine.
I have then entered these same credentials into the wizard and I get an email back from the first check which says :
CHECK_ESX3.PL CRITICAL - Error: Permission to perform this operation was denied.
I must be doing something wrong - other people are using nagios so I know the problem must lie with me - but I am following the instructions as best I can.
In answer to your questions.
I am not running a command - it is GUI based wizard which is not showing any errors
I have full permissions myself and have tried with my login as well as several others in the hope something might work!!
thanks
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Connect to VMware
Are you 100% sure you have the correct credentials?
Can you run this command replacing the IP and password
Can you run this command replacing the IP and password
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -H xxx.xxx.xxx.xxx -u root -p <root's password> -l CPU
Re: Connect to VMware
I have a vmware environment which has a vmware vcenter server as a virtual machine in the environment. That machine is a suse linux enterprise sever 64 bit
when I open the console it tells me it is a vmware vcenter appliance 6.0.0.10200
when I press f2 to "customize system" I can log in with root credentials and these are the credentials I am attempting to use in both the command line and the gui for nagios
I have attached screen shots in a PDF to this message
thanks again for your help
You do not have the required permissions to view the files attached to this post.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Connect to VMware
Open check_esx3.pl in a text editor, and add the following line on the top (below the comments):
Save, and exit. Test your check again. Did this change resolve your issue?
Code: Select all
$ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0;
Re: Connect to VMware
Hi Thanks for your response.
The line was already there just missing the single quote marks which I have added in (pls see attached)
I did an "apply configuration" from the GUI but unfortunately no different
I still get this when I look for guests within the GUI.
length() used on @array (did you mean "scalar(@array)"?) at /usr/lib64/perl5/IO/Compress/Zlib/Extra.pm line 198.
Error: Permission to perform this operation was denied.
Any other thoughts?
thanks
Chris
The line was already there just missing the single quote marks which I have added in (pls see attached)
I did an "apply configuration" from the GUI but unfortunately no different
I still get this when I look for guests within the GUI.
length() used on @array (did you mean "scalar(@array)"?) at /usr/lib64/perl5/IO/Compress/Zlib/Extra.pm line 198.
Error: Permission to perform this operation was denied.
Any other thoughts?
thanks
Chris
You do not have the required permissions to view the files attached to this post.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Connect to VMware
And do you still get the message like the other ?
This is the crux of the problem, the plugin cannot get the server version from the ESX server
Code: Select all
Server version unavailable at 'https://172.30.5.203:443/sdk/vimService.wsdl' at ....