Page 3 of 3
Re: More box293_check_vmware fun
Posted: Fri Jan 23, 2015 7:34 pm
by Box293
OK so we're getting somewhere
highness wrote:I told Firefox to let the script continue, and it did finish a couple of minutes later.
So, it looks like it works
Just to confirm, the wizard correctly displayed all the guests after letting the script continue?
Honestly the results appeared pretty quickly for me, but I'm the only user on a test system which isn't really monitoring anything. I assume the PHP memory errors are because you have a more utilised Nagios XI system.
Out of curiosity, what are the specs (CPU, Memory) of your Nagios XI server and how many overall host and service checks do you have?
highness wrote:I'm concerned about the javascript error and wondering if we need to change that too?
I need to research if I can give JavaScript/Firefox a timeout. That message is just FireFox watching how long it takes to run a script and pausing it if it runs past a set timelimit it has. I suppose it's there to prevent malware/spyware from going un-noticed.
Re: More box293_check_vmware fun
Posted: Fri Jan 23, 2015 9:14 pm
by highness
Box293 wrote:Just to confirm, the wizard correctly displayed all the guests after letting the script continue?
It looks like it - I'll have to go back and count the number of hosts on all the ESX hosts (which I'll do when I'm back in the office on Monday), but at first glance, they appear to be there.
Box293 wrote:Out of curiosity, what are the specs (CPU, Memory) of your Nagios XI server and how many overall host and service checks do you have?
Hardware: HP ProLiant DL380p
CPU: Intel Xeon - CPU E5-2660 0 @ 2.20GHz 32 core
RAM: 198GB RAM
Hosts: 1350
Service Checks: 9750
Re: More box293_check_vmware fun
Posted: Mon Jan 26, 2015 11:52 am
by cmerchant
Just checking with the OP, did you have your issue resolved, can we close this? Thanks.
Re: More box293_check_vmware fun
Posted: Mon Jan 26, 2015 12:17 pm
by highness
cmerchant wrote:Just checking with the OP, did you have your issue resolved, can we close this? Thanks.
Nope. Not yet. Still got issues that I'll bring up in the next message post that I'm working on.
Re: More box293_check_vmware fun
Posted: Mon Jan 26, 2015 12:28 pm
by highness
Box293 wrote:Just to confirm, the wizard correctly displayed all the guests after letting the script continue?
Yes, it appears that all the hosts are displayed - maybe we could add a line to the bottom of the display that tells how many host(s) are displayed? It'd sure be quicker than counting the hosts manually
The next issue I've run into is that when I select a host from the guest list (on the vCenter server that has 1500+ guests) and try to add the vMA type checks (CPU / Memory / Storage / Snapshots) it makes one think that the checks have been added, but when you check that host out, the checks never get added.
UPDATE: This appears to happen only on the vCenter host with the metric-ton of hosts / guests. The other vCenter servers that have a reasonable amount of hosts / guests this appears to work fine.
Re: More box293_check_vmware fun
Posted: Mon Jan 26, 2015 5:10 pm
by Box293
highness wrote:Yes, it appears that all the hosts are displayed - maybe we could add a line to the bottom of the display that tells how many host(s) are displayed? It'd sure be quicker than counting the hosts manually

Good idea, I'll add that to the next version of the wizard.
highness wrote:The next issue I've run into is that when I select a host from the guest list (on the vCenter server that has 1500+ guests) and try to add the vMA type checks (CPU / Memory / Storage / Snapshots) it makes one think that the checks have been added, but when you check that host out, the checks never get added.
UPDATE: This appears to happen only on the vCenter host with the metric-ton of hosts / guests. The other vCenter servers that have a reasonable amount of hosts / guests this appears to work fine.
So when you do this for just one host, does the wizard complete and apply correctly?
But these services don't get added to CCM?
Are the host objects existing host objects or are you selecting to create new ones?
Can you tail the apache error log while reproducing this problem please:
Re: More box293_check_vmware fun
Posted: Mon Jan 26, 2015 5:57 pm
by highness
Box293 wrote:So when you do this for just one host, does the wizard complete and apply correctly?
But these services don't get added to CCM?
Are the host objects existing host objects or are you selecting to create new ones?
Even when I do it for a single host (again using the large vCenter cluster), it will not apply correctly.
Nope, the services do not get added to CCM
I've tried both existing and new - neither way do they get created
Box293 wrote:Can you tail the apache error log while reproducing this problem please:
Just sent it to you via PM.
I do see a reference in the error log to max_input_vars - we're running php version 5.3.3 (cli)
Re: More box293_check_vmware fun
Posted: Mon Jan 26, 2015 6:38 pm
by Box293
highness wrote:Even when I do it for a single host (again using the large vCenter cluster), it will not apply correctly.
When you say "it will not apply correctly", does that mean the "finishing of the wizard" when it is Applying Configuration fails?
Yes that max_input_vars error seems to be the likely culprit.
I've done some reading and this is a default php setting and is not defined in the ini file by default
Run this command:
If you get a result, edit /etc/php.ini and change it to a bigger number (like 3000).
If you don't get any result then we need to add it to the ini file.
These commands will add it to the ini file
Code: Select all
echo "" >> /etc/php.ini
echo "max_input_vars = 3000" >> /etc/php.ini
Now restart httpd
After doing this, try adding the single host again, while tailing the httpd/error_log and let us know how that goes.
Re: More box293_check_vmware fun
Posted: Tue Jan 27, 2015 10:29 am
by highness
I added the max_input_vars to the /etc/php.ini file and was able to add both a single host as well as multiple hosts! YAY!!!!
I also didn't see any errors in the logs that appear to be related to the box293_check_vmware
So, it looks like we're good on this! THANK YOU!!!
Re: More box293_check_vmware fun
Posted: Tue Jan 27, 2015 11:51 am
by tmcdonald
Yay!
Thank you tons, Box. Always appreciated.
I'll go ahead and lock this up now, but feel free to open another thread if you need anything in the future!