PHP timezone was not configured - run previous script

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

PHP timezone was not configured - run previous script

Post by jbennett »

I am attempting to apply a configuration for a new XI install. Since I'm moving from a CensOS 6.2 box to a Red Hat box, I am following the 'Things to Consider' section of the 'Backing Up and Restoring' document.

In this section, I am directed to run ./A-subcomponents. Upon doing this, I get the following error:

Code: Select all

PHP timezone was not configured - run previous script
What script is this referencing?

I have searched the XI FAQ and found some mention of making sure that NTP is configured and I've changed the timezone in the php.ini file as suggested.

I have rebooted the server even.

Yet, when I run ./A-subcomponents, I am getting the same error.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: PHP timezone was not configured - run previous script

Post by slansing »

These scripts can be found in your Nagios XI extracted installation directory as it looks you found, the previous script it is referencing is "14-timezone."

Please run the following then let us know how it looks:

Code: Select all

./14-timezone
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: PHP timezone was not configured - run previous script

Post by jbennett »

I'm going to have to put it out there that I did not install and configure this server. That was handed over to our server department as this box is being hosted in our data center (finally).

I am not certain of the steps that they took with the install, so if some of these items appear to be obvious had I gone through the install, please understand.

Upon running the suggested command, I recieve the following:

Code: Select all

MRTG was not configured - run previous script
This does leave me to believe that a step must have been missed, but upon looking at the manual install instructions, I'm not certain where that might be?

Do I need to just manually go through the configurations one-by-one? Why wouldn't these have been run with the initial install?

#./0-yum
#./1-prereqs
#./2-usersgroups
etc...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: PHP timezone was not configured - run previous script

Post by scottwilkerson »

I need to ask first, did you have Nagios XI installed on the new server before trying to do this?

If so, you will need to run

Code: Select all

touch installed.mrtg
./A-subcomponents
./build-perms-bin
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: PHP timezone was not configured - run previous script

Post by jbennett »

Yes. Nagios was installed. I was able to log in successfully and see the standard monitored hosts & services for local host.

When I do as you have just suggested, I get the following, again:

Code: Select all

# touch installed.mrtg
# ./A-subcomponents
PHP timezone was not configured - run previous script
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: PHP timezone was not configured - run previous script

Post by scottwilkerson »

I'm sorry, it looks like the document is out of date... I will be modifying it shortly...

Run

Code: Select all

touch installed.timezone
./A-subcomponents
./build-perms-bin
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: PHP timezone was not configured - run previous script

Post by jbennett »

Thanks! While that did appear to let me advance through the process, I have hit another snag:

Code: Select all

ERROR: Subcomponent 'wkhtml' installation failed - exiting.
Subcomponents installation failed - exiting
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: PHP timezone was not configured - run previous script

Post by lmiltchev »

Try running the following commands:

Code: Select all

cat /dev/null > /tmp/nagiosxi/subcomponents/wkhtml/install
cd /tmp/nagiosxi
./A-subcomponents
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: PHP timezone was not configured - run previous script

Post by jbennett »

This seems to have done the trick!

I'm assuming that this happened because wkhtml failed in the initial install?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: PHP timezone was not configured - run previous script

Post by lmiltchev »

I'm glad I could help!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked