Nagios crashed. Re-building again.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
prateekagr1988
Posts: 62
Joined: Fri Sep 26, 2014 7:21 pm

Re: Nagios crashed. Re-building again.

Post 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
prateekagr1988
Posts: 62
Joined: Fri Sep 26, 2014 7:21 pm

Re: Nagios crashed. Re-building again.

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios crashed. Re-building again.

Post 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.
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.

Post by prateekagr1988 »

Do you want entire /etc/php.ini? It's a huge file. :)

I have already reset the credentials, but still the same.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios crashed. Re-building again.

Post by Box293 »

prateekagr1988 wrote:Do you want entire /etc/php.ini? It's a huge file.
Yes, add it as an attachment please.
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.

Post by prateekagr1988 »

I am unable to share it due to technical issues. :(
Would it be okay to share something specific you need?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios crashed. Re-building again.

Post by Box293 »

Code: Select all

grep timezone /etc/php.ini
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.

Post 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
prateekagr1988
Posts: 62
Joined: Fri Sep 26, 2014 7:21 pm

Re: Nagios crashed. Re-building again.

Post by prateekagr1988 »

I still all XI System Component Status disabled except for monitoring engine, performance grapher and database backend.
Kindly suggest.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios crashed. Re-building again.

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