More box293_check_vmware fun

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: More box293_check_vmware fun

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
highness
Posts: 192
Joined: Thu May 01, 2014 4:25 pm

Re: More box293_check_vmware fun

Post 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
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: More box293_check_vmware fun

Post by cmerchant »

Just checking with the OP, did you have your issue resolved, can we close this? Thanks.
highness
Posts: 192
Joined: Thu May 01, 2014 4:25 pm

Re: More box293_check_vmware fun

Post 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.
highness
Posts: 192
Joined: Thu May 01, 2014 4:25 pm

Re: More box293_check_vmware fun

Post 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 :D

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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: More box293_check_vmware fun

Post 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 :D
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:

Code: Select all

tail -f /var/log/httpd/error_log
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
highness
Posts: 192
Joined: Thu May 01, 2014 4:25 pm

Re: More box293_check_vmware fun

Post 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:

Code: Select all

tail -f /var/log/httpd/error_log
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)
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: More box293_check_vmware fun

Post 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:

Code: Select all

grep max_input_vars /etc/php.ini
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

Code: Select all

service httpd restart
After doing this, try adding the single host again, while tailing the httpd/error_log and let us know how that goes.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
highness
Posts: 192
Joined: Thu May 01, 2014 4:25 pm

Re: More box293_check_vmware fun

Post 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 :D

So, it looks like we're good on this! THANK YOU!!!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: More box293_check_vmware fun

Post 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!
Former Nagios employee
Locked