Page 1 of 1

PHP timezone was not configured - run previous script

Posted: Mon Jan 28, 2013 10:18 am
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.

Re: PHP timezone was not configured - run previous script

Posted: Mon Jan 28, 2013 10:26 am
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

Re: PHP timezone was not configured - run previous script

Posted: Mon Jan 28, 2013 10:35 am
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...

Re: PHP timezone was not configured - run previous script

Posted: Mon Jan 28, 2013 11:00 am
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

Re: PHP timezone was not configured - run previous script

Posted: Mon Jan 28, 2013 11:05 am
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

Re: PHP timezone was not configured - run previous script

Posted: Mon Jan 28, 2013 11:07 am
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

Re: PHP timezone was not configured - run previous script

Posted: Mon Jan 28, 2013 11:36 am
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

Re: PHP timezone was not configured - run previous script

Posted: Mon Jan 28, 2013 12:01 pm
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.

Re: PHP timezone was not configured - run previous script

Posted: Mon Jan 28, 2013 12:34 pm
by jbennett
This seems to have done the trick!

I'm assuming that this happened because wkhtml failed in the initial install?

Re: PHP timezone was not configured - run previous script

Posted: Mon Jan 28, 2013 12:40 pm
by lmiltchev
I'm glad I could help!