Page 1 of 2

Nagios ESX VMware Monitoring Wizard error

Posted: Tue Dec 05, 2017 6:45 pm
by aajibad1
Hi ,

I am using the configuration wizard to monitor VMware ESX. I have already provided the address, username and password . I selected Guest host, to monitor all the ESX host . However,I received an error when its completing the verification saying " Configuration failed to write to file" as attached . What file is it trying to write to?

Re: Nagios ESX VMware Monitoring Wizard error

Posted: Wed Dec 06, 2017 10:41 am
by npolovenko
Hello, @aajibad1. Can you run a different wizard to see if you'll get the same error? That will help us determine whether something is wrong with this particular wizard of with a core engine in general. Also, can you click on "View the latest configuration snapshots", find the failed one, click on "View command output" icon and post it's output here.
Thanks.

Re: Nagios ESX VMware Monitoring Wizard error

Posted: Wed Dec 06, 2017 11:26 am
by aajibad1
I tried the wizard again, its giving me same error. Please find attached the latest snapshot command output.

Re: Nagios ESX VMware Monitoring Wizard error

Posted: Wed Dec 06, 2017 3:42 pm
by lmiltchev
Can you run a different wizard to see if you'll get the same error? Can you apply configuration successfully?

Please show us the actual error (command output). You can obtain it under the Configuration Snapshots page.

Example:
example01.PNG

Re: Nagios ESX VMware Monitoring Wizard error

Posted: Wed Dec 06, 2017 4:37 pm
by aajibad1
The snapshot didn't provide any config error information . Is there any other way , I could get the error information ?

Re: Nagios ESX VMware Monitoring Wizard error

Posted: Wed Dec 06, 2017 5:29 pm
by lmiltchev
Go to the CCM > Tools > Config File Management, and click on "Write Configs", then on "Verify Files", showing the output after each click.

Example:
example01.PNG
example02.PNG

Re: Nagios ESX VMware Monitoring Wizard error

Posted: Wed Dec 06, 2017 6:54 pm
by aajibad1
I ma not sure if thats the problem because it didn't give me any error as attached

Re: Nagios ESX VMware Monitoring Wizard error

Posted: Thu Dec 07, 2017 11:22 am
by lmiltchev
OK, once we determined that you don't have any config errors, let's try to apply configuration.

1. Run the following commands:

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh &> reconfig.txt
2. Then also run the following command to begin capturing log output:

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> cmd.txt
Attempt to Apply Configuration from the web interface. After the browser has returned some output to the screen, press Ctrl+c to stop the log tail, and post the cmd.txt file and the reconfig.txt that were generated by the above instructions.

The content of the two files should give us an idea what the issue is.

Also, just by looking at one of your earlier screenshots, it seems that the apply configuration could be timing out. Please see our "Nagios XI - Apply Configuration Never Completes" KB article on the topic. You may need to tweak the sudoers, increase the resource limits in the php.ini. etc.

https://support.nagios.com/kb/article/n ... es-34.html

Re: Nagios ESX VMware Monitoring Wizard error

Posted: Mon Dec 11, 2017 11:51 am
by aajibad1
Hi,

I followed your instructions. Please find attached

Re: Nagios ESX VMware Monitoring Wizard error

Posted: Mon Dec 11, 2017 3:49 pm
by npolovenko
Hello, @aajibad1. Seems like you have some errors in your configuration files. Can you check the Host Escalations and Service Escalations in Core Configuration Manager? If you do have escalations please mark them as inactive(disable) and try to reapply the configuration in Tools/Config File Management(click on Write Configs, then Verify).
example.png
Then you can enable one escalation at a time, manually open and fix it in the etc folder and then click on Write Configs again.
Or one easier solution would be to revert to a previous working Configuration Snapshot in Core Configuration Manager. That's located in Configuration Snapshots menu.
After the config errors are fixed, you can try to rerun the wizard one more time.
What version of XI are you running? Have you upgraded recently?