Auth.txt Files Missing After Services Configs Imported

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Sarg0n
Posts: 39
Joined: Mon Jun 12, 2017 9:58 am

Re: Auth.txt Files Missing After Services Configs Imported

Post by Sarg0n »

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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Auth.txt Files Missing After Services Configs Imported

Post by lmiltchev »

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

Code: Select all

sudo su nagios -c 'cat /usr/local/nagiosxi/etc/components/vmware/7.x.x.x_auth.txt'
# to verify that nagios and apache users are not expired

Code: Select all

chage -l nagios
chage -l apache
Be sure to check out our Knowledgebase for helpful articles and solutions!
Sarg0n
Posts: 39
Joined: Mon Jun 12, 2017 9:58 am

Re: Auth.txt Files Missing After Services Configs Imported

Post by Sarg0n »

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:

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        :-1
Sarg0n
Posts: 39
Joined: Mon Jun 12, 2017 9:58 am

Re: Auth.txt Files Missing After Services Configs Imported

Post by Sarg0n »

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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Auth.txt Files Missing After Services Configs Imported

Post by lmiltchev »

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.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked