Box293 wrote:Can you please post your /etc/php.iniprateekagr1988 wrote:I still get timezone errors in /var/log/httpd/error_log.
However, I noticed that the error says "We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead", where I am using Europe/Amsterdam.
Also, what is the output of:
lrwxrwxrwx 1 root root 36 Mar 18 00:59 /etc/localtime -> /usr/share/zoneinfo/Europe/AmsterdamCode: Select all
ls -al /etc/localtime
Do you use a proxy server?prateekagr1988 wrote:Would you know why I get the below?
# ./reconfigure_nagios.sh
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=************************' -O nagiosql.login--2015-03-18 22:39:00-- http://localhost/nagiosql/index.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2015-03-18 22:39:00 ERROR 500: Internal Server Error.
NAGIOSQL LOGIN FAILED!
No
Another thing to look at is proxy related, specifically needing a no_proxy entry in /etc/wgetrc. This article shows you the required steps:
http://support.nagios.com/wiki/index.ph ... th_Proxies
Nagios crashed. Re-building again.
-
prateekagr1988
- Posts: 62
- Joined: Fri Sep 26, 2014 7:21 pm
Re: Nagios crashed. Re-building again.
-
prateekagr1988
- Posts: 62
- Joined: Fri Sep 26, 2014 7:21 pm
Re: Nagios crashed. Re-building again.
Now we see the below issues:
- NRDS config manager does not load
- All XI System Component Status are disabled except for monitoring engine, performance grapher and database backend
KIndly suggest.
- NRDS config manager does not load
- All XI System Component Status are disabled except for monitoring engine, performance grapher and database backend
KIndly suggest.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Nagios crashed. Re-building again.
Can you please post your /etc/php.ini
Can you please go into Admin > System Config > Reset Security Credentials
Click Update settings and see if that works.
Can you please go into Admin > System Config > Reset Security Credentials
Click Update settings and see if that works.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
prateekagr1988
- Posts: 62
- Joined: Fri Sep 26, 2014 7:21 pm
Re: Nagios crashed. Re-building again.
Do you want entire /etc/php.ini? It's a huge file. 
I have already reset the credentials, but still the same.
I have already reset the credentials, but still the same.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Nagios crashed. Re-building again.
Yes, add it as an attachment please.prateekagr1988 wrote:Do you want entire /etc/php.ini? It's a huge file.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
prateekagr1988
- Posts: 62
- Joined: Fri Sep 26, 2014 7:21 pm
Re: Nagios crashed. Re-building again.
I am unable to share it due to technical issues. 
Would it be okay to share something specific you need?
Would it be okay to share something specific you need?
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Nagios crashed. Re-building again.
Code: Select all
grep timezone /etc/php.iniAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
prateekagr1988
- Posts: 62
- Joined: Fri Sep 26, 2014 7:21 pm
Re: Nagios crashed. Re-building again.
[wlsagent@sr1pmonpe10 logs]$ grep timezone /etc/php.ini
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.c ... e.timezone
;date.timezone = Europe/Amsterdam
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.c ... e.timezone
;date.timezone = Europe/Amsterdam
-
prateekagr1988
- Posts: 62
- Joined: Fri Sep 26, 2014 7:21 pm
Re: Nagios crashed. Re-building again.
I still all XI System Component Status disabled except for monitoring engine, performance grapher and database backend.
Kindly suggest.
Kindly suggest.
Re: Nagios crashed. Re-building again.
In your initial post, you said:
As for the time zone, in the "php.ini" file you have:
If this is the correct timezone, please uncomment this line:
and restart apache so that changes can take effect:
Also, run the following commands and show us the output:
and later, when you were asked:Our Nagios XI 2012R1.2 server crashed, and we are re-building from scratch in a new server.
you replied:What is the version of Nagios XI you are running on the new server?
Can you provide a screen shot of what is not running?
Is this a fresh install or not? If not, you may be inheriting the issues you had on the old server. In any case, we need to see a screenshot of the error that you are seeing in the web UI.It's 2012R1.2, same as the earlier one.
We did not do a fresh install. We just restored the files.
As for the time zone, in the "php.ini" file you have:
Code: Select all
;date.timezone = Europe/AmsterdamCode: Select all
date.timezone = Europe/AmsterdamCode: Select all
service httpd restartCode: Select all
service nagios status
service ndo2db status
service mysqld status
service crond restart
service crond status
ps -ef | grep cron
tail -20 /var/log/cron
chage nagios -l
chage apache -l
getenforce
ll /usr/local/nagiosxi/scripts/nagiosql*
tail -50 /var/log/httpd/error_logBe sure to check out our Knowledgebase for helpful articles and solutions!