Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Jun 17, 2019 7:52 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: cacti.log errors
PostPosted: Mon Mar 25, 2019 5:14 pm 
Offline

Joined: Tue Feb 26, 2019 10:40 pm
Posts: 3
Hi
I'm a newbie to Cacti and novice at Linux so bear with me if I missed something simple.

For the most part the system seems to work on the localhost device on graphing cpu/memory/disk usage.

I checked the cacti.log file and it producing a huge amount of entries (~100 per minute) with just two lines that repeat over and over:

2019/03/25 21:57:57 - CMDPHP PHP ERROR WARNING Backtrace: (/clog.php[27]:include(), /include/auth.php[28]:require_once(), /include/global.php[402]:include_once(), /include/global_arrays.php[1294]:date(), CactiErrorHandler())
2019/03/25 21:57:57 - ERROR PHP : date(): Invalid date.timezone value 'American/Los_Angeles', we selected the timezone 'UTC' for now. in file: /opt/cacti/include/global_arrays.php on line: 1294

I know I got the timezone configured in the php configuration file correct, but it seems like there is a conversion happening someplace that is trying to fit in using the UTC format.

I have no idea on the CMDPHP PHP ERROR message.

Thanks in advance for you help.
IG


Top
 Profile  
 
 Post subject: Re: cacti.log errors
PostPosted: Tue Mar 26, 2019 6:45 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2499
Actually, you may think you have the write timezone in PHP but that error suggests that you don't as it's actually PHP giving out the error.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: cacti.log errors
PostPosted: Wed Mar 27, 2019 5:16 pm 
Offline

Joined: Tue Feb 26, 2019 10:40 pm
Posts: 3
I checked my settings in the php.ini files for both cli and web versions. Even used your php code on another post to check

Quote:
1.2.2 checks both the CLI and the Web PHP.INI's have the timezone value set. You can create a file in your root cacti directory called tz.php and put the following code in it:

Code:
<?php
echo "timezone: " . ini_get('date.timezone') . PHP_EOL;


Then you can run that in your command line using "php -q tz.php" and by browsing to <cacti_url>/tz.php

They should both be the same. If not, you've missed a php.ini somewhere.


Both the cli and the web came back as "timezone: American/Los Angeles" - which is the correct timezone.

Where else should I check?

Thanks
IG


Top
 Profile  
 
 Post subject: Re: cacti.log errors
PostPosted: Wed Mar 27, 2019 5:43 pm 
Offline

Joined: Tue Feb 26, 2019 10:40 pm
Posts: 3
Found the issue. Used timezone American instead of America

Thanks for help.


Top
 Profile  
 
 Post subject: Re: cacti.log errors
PostPosted: Thu Mar 28, 2019 4:27 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2499
Quite an easy thing to miss that :) Glad your sorted.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group