1753513 Members
5482 Online
108795 Solutions
New Discussion юеВ

Re: CACTI config issue

 
SOLVED
Go to solution
NDO
Super Advisor

Re: CACTI config issue

Hi

I did run that comamnd, but did not help.

The warninigs are strtotime() and date () functions related.

F.R.
Viktor Balogh
Honored Contributor

Re: CACTI config issue

then maybe you should specify the timezone not for apache, but for php. look for the file

/opt/hpws/apache/conf/php.ini

and add the following line to it (if nothing similar is there already):

date.timezone=Europe/Paris

here is a list of valid timezones:

http://php.net/manual/en/timezones.php

****
Unix operates with beer.
NDO
Super Advisor

Re: CACTI config issue

Hi

Yes I did that as well, but no luck, and I have noticed that the error message mention a file global_constants in "/opt/hpws/apache/htdocs/cacti-0.8.7g/include/ ", but I cannot find a setting in it


F.R.
NDO
Super Advisor

Re: CACTI config issue

Hi

For example, the error msg I got is Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We had to select 'UTC' because your platform doesn't provide functionality for the guessing algorithm in /opt/hpws/apache/htdocs/cacti-0.8.7g/include/global_arrays.php on line 640
So they are refering to line 640 and other error lines 154 to 160.

Lines 154 to 160 contains the following:

153 # weekdays according to date("w") builtin function
154 define("WD_SUNDAY", date("w",strtotime("sunday")));
155 define("WD_MONDAY", date("w",strtotime("monday")));
156 define("WD_TUESDAY", date("w",strtotime("tuesday")));
157 define("WD_WEDNESDAY", date("w",strtotime("wednesday")));
158 define("WD_THURSDAY", date("w",strtotime("thursday")));
159 define("WD_FRIDAY", date("w",strtotime("friday")));
160 define("WD_SATURDAY", date("w",strtotime("saturday")));


But the same file does not have line 640 as mentioned on the error


FR
NDO
Super Advisor

Re: CACTI config issue

bye