Page 3 of 4

Re: Nagios crashed. Re-building again.

Posted: Wed Mar 18, 2015 5:18 pm
by prateekagr1988
Box293 wrote:
prateekagr1988 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.
Can you please post your /etc/php.ini

Also, what is the output of:

Code: Select all

ls -al /etc/localtime
lrwxrwxrwx 1 root root 36 Mar 18 00:59 /etc/localtime -> /usr/share/zoneinfo/Europe/Amsterdam
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!
Do you use a proxy server?

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

Re: Nagios crashed. Re-building again.

Posted: Wed Mar 18, 2015 5:26 pm
by prateekagr1988
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.

Re: Nagios crashed. Re-building again.

Posted: Wed Mar 18, 2015 5:27 pm
by Box293
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.

Re: Nagios crashed. Re-building again.

Posted: Wed Mar 18, 2015 5:30 pm
by prateekagr1988
Do you want entire /etc/php.ini? It's a huge file. :)

I have already reset the credentials, but still the same.

Re: Nagios crashed. Re-building again.

Posted: Wed Mar 18, 2015 5:32 pm
by Box293
prateekagr1988 wrote:Do you want entire /etc/php.ini? It's a huge file.
Yes, add it as an attachment please.

Re: Nagios crashed. Re-building again.

Posted: Wed Mar 18, 2015 5:44 pm
by prateekagr1988
I am unable to share it due to technical issues. :(
Would it be okay to share something specific you need?

Re: Nagios crashed. Re-building again.

Posted: Wed Mar 18, 2015 6:24 pm
by Box293

Code: Select all

grep timezone /etc/php.ini

Re: Nagios crashed. Re-building again.

Posted: Thu Mar 19, 2015 4:05 am
by prateekagr1988
[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

Re: Nagios crashed. Re-building again.

Posted: Thu Mar 19, 2015 10:49 am
by prateekagr1988
I still all XI System Component Status disabled except for monitoring engine, performance grapher and database backend.
Kindly suggest.

Re: Nagios crashed. Re-building again.

Posted: Thu Mar 19, 2015 11:57 am
by lmiltchev
In your initial post, you said:
Our Nagios XI 2012R1.2 server crashed, and we are re-building from scratch in a new server.
and later, when you were asked:
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?
you replied:
It's 2012R1.2, same as the earlier one.
We did not do a fresh install. We just restored the files.
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.

As for the time zone, in the "php.ini" file you have:

Code: Select all

;date.timezone = Europe/Amsterdam
If this is the correct timezone, please uncomment this line:

Code: Select all

date.timezone = Europe/Amsterdam
and restart apache so that changes can take effect:

Code: Select all

service httpd restart
Also, run the following commands and show us the output:

Code: 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_log