Nagios ESX VMware Monitoring Wizard error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
aajibad1
Posts: 36
Joined: Tue Nov 07, 2017 4:00 pm

Nagios ESX VMware Monitoring Wizard error

Post 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?
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios ESX VMware Monitoring Wizard error

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
aajibad1
Posts: 36
Joined: Tue Nov 07, 2017 4:00 pm

Re: Nagios ESX VMware Monitoring Wizard error

Post by aajibad1 »

I tried the wizard again, its giving me same error. Please find attached the latest snapshot command output.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios ESX VMware Monitoring Wizard error

Post 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
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
aajibad1
Posts: 36
Joined: Tue Nov 07, 2017 4:00 pm

Re: Nagios ESX VMware Monitoring Wizard error

Post by aajibad1 »

The snapshot didn't provide any config error information . Is there any other way , I could get the error information ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios ESX VMware Monitoring Wizard error

Post 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
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
aajibad1
Posts: 36
Joined: Tue Nov 07, 2017 4:00 pm

Re: Nagios ESX VMware Monitoring Wizard error

Post by aajibad1 »

I ma not sure if thats the problem because it didn't give me any error as attached
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios ESX VMware Monitoring Wizard error

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
aajibad1
Posts: 36
Joined: Tue Nov 07, 2017 4:00 pm

Re: Nagios ESX VMware Monitoring Wizard error

Post by aajibad1 »

Hi,

I followed your instructions. Please find attached
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios ESX VMware Monitoring Wizard error

Post 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?
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked