I have not made any changes on Nagios XI...I base installed it as recommended and followed directions. The only thing that is different than usual is that I imported hosts from the old server over to this new one. Everything seems to be working except for the services monitoring.
I just added a new system to see if it syncs and configures correctly. I used the VMware configuration wizard and entered the IP, username, and passwords, and it seemed to set up correctly. However, the service checks are still "pending" and seem to be stuck, not working. This is what the other hosts seem to be doing.
Auth.txt Files Missing After Services Configs Imported
Re: Auth.txt Files Missing After Services Configs Imported
Which checks are in pending state - only the vmware checks or all checks?
Run all of the commands below, and show the output:
# to see if nagios can read the auth file
# to verify that nagios and apache users are not expired
Run all of the commands below, and show the output:
# to see if nagios can read the auth file
Code: Select all
sudo su nagios -c 'cat /usr/local/nagiosxi/etc/components/vmware/7.x.x.x_auth.txt'Code: Select all
chage -l nagios
chage -l apacheBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Auth.txt Files Missing After Services Configs Imported
I ran the first command (sudo su nagios -c 'cat /usr/local/nagiosxi/etc/components/vmware/7.x.x.x_auth.txt' and it returned the username and password (text inside the file).
Here are the results of the second command:
Here are the results of the second command:
Code: Select all
chage -l nagios
Last password changes :May 16, 2018
Password expires :never
Password inactive :never
Account expires :never
Minimum number of days between password change :0
Maximum number of days between password change :99999
Number of day of warning before password expires :7
chage -l apache
Last password changes :May 16, 2018
Password expires :never
Password inactive :never
Account expires :never
Minimum number of days between password change :-1
Maximum number of days between password change :-1
Number of day of warning before password expires :-1Re: Auth.txt Files Missing After Services Configs Imported
Okay guys, I spun up a new box and I started added individual hosts over to the new system, and everything is working correctly. So there must be something wrong with moving the old accounts over. Anyway, I think I'm done trying to figure that out and I am just going to manually add all the hosts in (which is going to take a long time). I think that in the future we will be more proactive in keeping our Nagios instance updated and we will keep a closer eye on server storage issues, etc.
Thanks for all of your attempted help and I will let you know if further complications arise.
Thanks for all of your attempted help and I will let you know if further complications arise.
Re: Auth.txt Files Missing After Services Configs Imported
This is very strange... It doesn't make any sense to be getting the "CHECK_ESX3.PL CRITICAL- Unable to open auth file "/usr/local/nagiosxi/etc/components/vmware/7.x.x.x_auth.txt"" error, when you can access/view the file as nagios user just fine. I am glad everything is working correctly on the new box. We will keep the post open for the time being in case you run into some complications. Thank you!Okay guys, I spun up a new box and I started added individual hosts over to the new system, and everything is working correctly. So there must be something wrong with moving the old accounts over.
Be sure to check out our Knowledgebase for helpful articles and solutions!