Page 2 of 3

Re: Auth.txt Files Missing After Services Configs Imported

Posted: Fri May 18, 2018 1:23 pm
by lmiltchev
You didn't say if you ran the command below:

Code: Select all

chmod ug+s /usr/local/nagiosxi/etc/components/vmware
Can you verify that the permissions on the vmware directory are set as the ones below?
drwsrwsr-x 2 apache nagios 4096 May 18 10:32 /usr/local/nagiosxi/etc/components/vmware
Do you have the link to the newest version that I could download?
If you are running Nagios XI 5.x, you can download the vmware wizard from here:
https://assets.nagios.com/downloads/nag ... vmware.zip

Don't unzip the file. Install the wizard by going to Admin > Manage Config Wizards > Browse > vmware.zip > Upload & Install. Make all of the necessary backups prior to updating the wizard.

Let us know if this helped.

Re: Auth.txt Files Missing After Services Configs Imported

Posted: Fri May 18, 2018 2:15 pm
by Sarg0n
I did run the chmod command, yes. The permissions are "drwsrwsrwx".

I also downloaded the vmware.zip but when I went to upload it from my desktop, it says "Wizard Upload Failed". LOL

Re: Auth.txt Files Missing After Services Configs Imported

Posted: Fri May 18, 2018 2:34 pm
by lmiltchev
Hmm, I didn't have any problems downloading and installing the vmware wizard...
example01.PNG
Have you made any major changes to Nagios XI, e.g. hardening the server prior to seeing this issue?

Is opening a new support ticket in our support center is an option for you?

https://support.nagios.com/tickets/

We may need to schedule a remote session to further troubleshoot this issue.

Re: Auth.txt Files Missing After Services Configs Imported

Posted: Fri May 18, 2018 2:45 pm
by Sarg0n
Support ticket is fine but remote access is not possible. It's on a secure network, meaning an offline network.

I was reading on forums where (in regards to wizard upload issue) it may be a php config setting. Do you know which php config file has the file size setting? It may need adjusted to a higher size.

Re: Auth.txt Files Missing After Services Configs Imported

Posted: Fri May 18, 2018 2:58 pm
by lmiltchev
You can increase the existing values under the resource limits section in the /etc/php.ini file.

Example:

Code: Select all

max_execution_time = 120
max_input_time = 240
memory_limit = 1024M
max_input_vars=100000
Make sure you don't have multiple directives with the same name.

Also, add the following line to the bottom of /etc/httpd/conf/httpd.conf:

Code: Select all

LimitRequestLine 100000
Restart apache:

Code: Select all

service httpd restart

Re: Auth.txt Files Missing After Services Configs Imported

Posted: Fri May 18, 2018 3:16 pm
by Sarg0n
I did all of that but it didn't do anything. The vmware.zip file won't upload. Do you know of a log that I can monitor to try to detect error messages? /var/log/messages doesn't say anything when I tail-f it. I'm not sure which log to watch for config wizard uploads.

Re: Auth.txt Files Missing After Services Configs Imported

Posted: Fri May 18, 2018 3:36 pm
by Sarg0n
OKAY...so I found another forum post with a similar issue and the guy did this:

Code: Select all

chmod -R g+w /usr/local/nagiosxi
I did this and it fixed the vmware wizard issue. I uploaded the vmware.zip file. But let me see if it fixes anything else before I move further...

Re: Auth.txt Files Missing After Services Configs Imported

Posted: Fri May 18, 2018 3:46 pm
by Sarg0n
So...after all of that, the auth.txt files still cannot be opened. Not sure where to go from here, but this may still be something to do with permissions. :(

Re: Auth.txt Files Missing After Services Configs Imported

Posted: Mon May 21, 2018 9:51 am
by lmiltchev
Not sure where to go from here, but this may still be something to do with permissions.
It is possible - I am not sure if you made any major changes to Nagios XI, e.g. hardening the server which may caused the error that you are seeing. What are the permissions of the plugin?

Code: Select all

ls -la /usr/local/nagios/libexec/check_esx3.pl
Is apache a member of the nagios and nagcmd groups?

Code: Select all

grep nag /etc/group
Is SELinux enabled?

Code: Select all

sestatus

Re: Auth.txt Files Missing After Services Configs Imported

Posted: Mon May 21, 2018 1:05 pm
by Sarg0n
Sorry for my delay, just getting back from weekend...

Here are the results of the last commands:

Code: Select all

ls -la /usr/local/nagios/libexec/check_esx3.pl
-rwxrwxrwx apache nagios 169540 May 18 21:37 /usr/local/nagios/libexec/check_esx3.pl

Code: Select all

grep nag /etc/group
nagios:x:1001:nagios,apache
nagcmd:x:1002:nagios,apache

Code: Select all

sestatus
SELinux Status:            disabled