Page 2 of 3
Re: VMware problem
Posted: Tue Aug 10, 2010 10:21 am
by mmestnik
What we have been trying to say is that the check command that does the monitoring of your server is used to check if the SDK is installed. If the check command can't load the SDK then even if we did "fix/correct" the wizard you would only find yourself with another application asking you to install the SDK.
"You _*-"MUST"-*_ satisfy this condition."
You have not correctly installed the SDK, our instructions are only intended to be a working example they are not able to function in every environment. In the event our instructions are fine, we can't help for the SDK to function.
Re: VMware problem
Posted: Thu Aug 12, 2010 3:40 am
by Mark de Bokx
Reinstalled the SDK
"This installer has successfully installed both vSphere CLI and the vSphere SDK
for Perl." Enjoy, --the VMware team
So I guess that went well ... Still have the guest tab greyed-out though in the Wizard

Re: VMware problem
Posted: Thu Aug 12, 2010 7:05 am
by Mark de Bokx
Found sh: /usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl: Permission denied in apache / httpd log while calling the guest tab.
This does seem to point to an error in the rights used in the wizard?
Funny thing is though that getguest.pl has the same permissions as growguest.pl.
-rw-r--r-- 1 nagios nagios 5187 May 17 11:56 getguests.pl
-rw-r--r-- 1 nagios nagios 5187 May 25 15:36 growguest.pl
I will try and get the stuff sorted and will post the solution, if I can find it

Any help is appreciated.
Re: VMware problem
Posted: Thu Aug 12, 2010 7:56 am
by Mark de Bokx
Rrrrright, lets set the x bit for guests.pl and try and execute the script on cmdline
./getguests.pl -H esxhost -u user -p password
and guess what, that works as a dream I can see all the guests on the Vmhost.
Now what does that tell me ...
Re: VMware problem
Posted: Thu Aug 12, 2010 9:21 am
by Mark de Bokx
It probably tells me to wait for the next issue
And yes, again an issue ...
Error: The description string for service 'hostname (SkySales ontw) CPU Usage' on host 'esxhost' contains one or more illegal characters.
Error: The description string for service 'hostname (SkySales ontw) Input / Output' on host 'esxhost' contains one or more illegal characters.
Error: The description string for service 'hostname (SkySales ontw) Memory' on host 'esxhost' contains one or more illegal characters.
Error: The description string for service hostname (SkySales ontw) Networking' on host 'esxhost' contains one or more illegal characters.
Error: The description string for service 'hostname (SkySales ontw) VM Status' on host 'esxhost' contains one or more illegal characters.
So ermm let me guess, its the () in the VM description Nagios doesnt like? Or the spaces? Or the fact that the Guests living on the EsxHost dont have a FQDN as description?
Re: VMware problem
Posted: Thu Aug 12, 2010 12:39 pm
by mmestnik
I'm glad you discovered the problem. This didn't show up in testing, but these files do come from a permission-less zip file so anything is possible.
What distribution are you running, perhaps this is something particular with your OS?
Can you find the wizard you uploaded and read it's comment(or tell me if there is no comment). This should indicate who built the zip and details about the build process.
Wikipedia documents the file format and shows the comment section, but I was unable to locate an application that would display the comment. I'd imagine winzip or windows properties should display it, the zip utility in linux prints it...
Re: VMware problem
Posted: Fri Aug 13, 2010 7:04 am
by Mark de Bokx
I'm running RHEL5.x
I now know that if I install the ESX wizard I have to take a good look at the permissions being set correctly.
And ermm its a ""dirty" testmachine I'm testing nagiosXI on, so who knows what caused the problem.
I also found out that the illegal charsets I get when trying to read the ESX Guests has to do with the way the names have been set on our ESX guests. If we're going to use Nagios we just have change these to FQDN or something, without exotic chars like ( / * or # and it will work.
I would be a nice thing if linux in general wouldn't be so sensitive about chars in strings though

Re: VMware problem
Posted: Mon Aug 16, 2010 3:01 pm
by mmestnik
We just need to look into this further, we have other wizards having the same problem.
The solution to this "Error" is to change the Nagios service display name of each "record". This is not done by default because we wanted admins to know what the name was originally and we wanted to let admins decide how the translation would happen.
As for linux in general, that doesn't apply this is Nagios's special name space for host names and service descriptions. There is another topic that outlines in great detail the Five things that are allowed, 1. letters(both cases) 2. numbers 3. space...
Linux in general can accept any ASCII string as a file name, from 0x01 to 0xff is the range of allowed data noting that '/' is used as a directory separator. This is much greater then what other popular operating systems allow. The issue enters into play when one wants to make use of a shell, the trade off here is power over flexibility. Once you understand the power aspects the loss in flexibility is non-existent.
The solution to hope for is a "passive" shell that favors flexibility over power, though this would only stunt the growth of new users... If that's want they would like.
Re: VMware problem
Posted: Tue Aug 17, 2010 2:21 am
by Mark de Bokx
Thanks! I'll take a llok if I can find some more info on the namespaces. As of now, I will just change the names of the ESX guests .. no biggy
Re: VMware problem
Posted: Wed Aug 25, 2010 12:15 am
by jay2679
Guys,
I am having a similar issue with VM Guests , Once I go to the Guests Selection under the nagios xi vm wizard it states "It appears as though the VMware SDK has not yet been installed on your Nagios XI server. You must install the SDK before you are able to use this wizard" , tailing http logs Im seeing Error connecting to server at '
https://192.168.1.100/sdk/webService': Connection refused which is the vm guest as soon i add the ip. Any ideas why this would be ? all plugins and modules installed per instructions located at
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf