Page 2 of 4
Re: Your request was not processed in a timely manner...
Posted: Wed Sep 30, 2015 10:36 am
by hsmith
In /etc/httpd/conf.d/nagiosxi.conf are you forcing a redirect?
Re: Your request was not processed in a timely manner...
Posted: Fri Oct 09, 2015 6:32 am
by goldmund84
Yes, according to the manual -
https://assets.nagios.com/downloads/nag ... s%20XI.pdf
I have redirect:
Redirect permanent / https://<Your-XI-Server-Address-or-Hostname>
Re: Your request was not processed in a timely manner...
Posted: Fri Oct 09, 2015 9:12 am
by hsmith
Can you change
Redirect permanent / https://<Your-XI-Server-Address-or-Hostname>
to
Redirect permanent / https://<Your-XI-Server-Address-or-Hostname>/
And give it a whirl?
Thanks.
Re: Your request was not processed in a timely manner...
Posted: Thu Oct 22, 2015 6:51 am
by goldmund84
Hello, tryied, but with no result.
Re: Your request was not processed in a timely manner...
Posted: Thu Oct 22, 2015 11:08 am
by tgriep
Lets try and run the reconfigure script as the nagios user and see if we get any errors that could help on this issue.
Run the following in a shell and post the output here.
Code: Select all
cd /usr/local/nagiosxi/scripts
su nagios
./reconfigure_nagios.sh
Re: Your request was not processed in a timely manner...
Posted: Fri Oct 23, 2015 4:01 am
by goldmund84
Hello,
Done, log attached. There are some warnings, maybe that causes the problem.
Re: Your request was not processed in a timely manner...
Posted: Fri Oct 23, 2015 9:37 am
by tgriep
The warnings are not causing the issue.
Can you post all of the files in this folder?
Also, can you post the /etc/sudoers file?
Re: Your request was not processed in a timely manner...
Posted: Tue Oct 27, 2015 8:13 am
by goldmund84
Hello.
Here is the list of all files in apache configuration directory:
ls -la /etc/httpd/conf.d/
drwxr-xr-x. 2 root root 4096 Oct 22 14:51 .
drwxr-xr-x. 5 root root 4096 May 6 2014 ..
-rw-r--r-- 1 root root 1664 Nov 25 2014 cacti.conf
-rwxr-xr-x 1 root root 2201 May 6 2014 gestioip.conf
-rw-r--r--. 1 root root 330 Nov 12 2012 mrtg.conf
-rw-r--r--. 1 root root 1010 Aug 22 2013 nagios.conf
-rwxrwxrwx. 1 root root 601 Aug 22 2013 nagiosmobile.conf
-rw-r--r--. 1 root root 427 Aug 12 2014 nagiosql.conf
-rw-r--r-- 1 root root 848 Oct 22 14:51 nagiosxi.conf
-rw-r--r--. 1 apache apache 2148 Aug 22 2013 nagvis.conf
-rw-r--r--. 1 root root 344 Aug 22 2013 nrdp.conf
-rw-r--r-- 1 root root 1796 Apr 17 2014 perl.conf
-rw-r--r-- 1 root root 674 Aug 6 2014 php.conf
-rw-r--r--. 1 root root 392 Aug 13 2013 README
-rw-r--r-- 1 root root 9841 Sep 16 2014 ssl.conf
-rw-r--r--. 1 root root 9473 Aug 22 2013 ssl.conf.nagiosxibackup
-rw-r--r--. 1 root root 299 Aug 2 2013 welcome.conf
Or you want to see the contents of each file?
The part of sudoers file concerning nagiosxi:
User_Alias NAGIOSXI=nagios
User_Alias NAGIOSXIWEB=apache
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios checkconfig
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd status
NAGIOSXI ALL = NOPASSWD:/usr/bin/nmap *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/upgrade_to_latest.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/change_timezone.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/repair_databases.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/messages
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/httpd/error_log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/mysqld.log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/nmap *
NAGIOSXIWEB ALL = NOPASSWD:/etc/init.d/snmptt restart
Re: Your request was not processed in a timely manner...
Posted: Tue Oct 27, 2015 2:26 pm
by tgriep
Your /etc/sudoers file seems to be missing some entries. Can you update it to the included settings below and see if that resolves the issue?
Code: Select all
Defaults:nagios !requiretty
Defaults:apache !requiretty
nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_init_service
nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_linux_stats.pl
User_Alias NAGIOSXI=nagios
User_Alias NAGIOSXIWEB=apache
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios checkconfig
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd status
NAGIOSXI ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/upgrade_to_latest.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/change_timezone.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/reset_config_perms.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/messages
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/httpd/error_log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/mysqld.log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
NAGIOSXIWEB ALL = NOPASSWD:/etc/init.d/snmptt restart
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/repair_databases.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
Re: Your request was not processed in a timely manner...
Posted: Wed Oct 28, 2015 8:51 am
by goldmund84
Added missing lines but with no effect (((.