Pages: [1]   Go Down
Author Topic: Pandora Console time zone  (Read 1588 times)
0 Members and 2 Guests are viewing this topic.
martinssaulitis
Newbie
*

Karma: 1
Offline Offline

Posts: 3


View Profile
« on: February 05, 2010, 10:12:23 AM »

I've managed to set up both server, console and agent on different system (pandorafms.server_3.0.0.deb, pandorafms.console_3.0.0.deb, pandorafms.agent_3.0.0.deb) on . Everything works, and I'm slowly adapting it to my needs.

Problem I ran into was that all agents report Next agent contact: Out of limits.

Then while looking at time stamps, I noticed, that Pandora console 'thinks' it's one hour back, e.g. 10:00, while pandora server and pandora agent os show 11:00 (using ubuntu console date shows, mysql now() and agent time stamps).

If I check under Administration->Setup->Time source, both System time and Database time is one hour back.

Any ideas how to fix it? Is there some place where I can set timezone for Pandora? I think if I fix it, that "out of limits' problem will go away as well.

Server console date shows something like Fri Feb  5 11:17:27 EET 2010.

UPDATE:
For now I fixed it editing /var/www/pandora_console/include/config_process.php and changing
date_default_timezone_set("Europe/Berlin");
to
date_default_timezone_set("Europe/Riga");
But still, I think there is some problem with Pandora Console configuration - apearantly "ini_get('date.timezone')" doesn't work, so it set up using fallback option.
« Last Edit: February 05, 2010, 10:26:38 AM by martinssaulitis » Logged

chejov suzdal voshkov
Sr. Member
****

Karma: 8
Offline Offline

Posts: 175



View Profile WWW
« Reply #1 on: February 05, 2010, 11:58:17 AM »

Have you tried ntp service to synchronize the date and time?
this can be a solution for you.

anyway try this too, go to pandora console / setup and set "Timestamp or time comparation" to "Timestamp in rollover"
« Last Edit: February 05, 2010, 01:41:40 PM by chejov suzdal voshkov » Logged


Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


I can see everything... with my glasses :-)


View Profile WWW
« Reply #2 on: February 17, 2010, 03:30:49 AM »

Seems that newest versions of ubuntu are doing very very strange things with timezones, another user of pandora has a similar problem and we fixed it just by setting up "manually" the time zones in three different points:

1. PHP Engine (php.ini)
2. MySQL (my.cnf)
3. Linux system (dpkg-reconfigure tzdata)

Good luck !

I've managed to set up both server, console and agent on different system (pandorafms.server_3.0.0.deb, pandorafms.console_3.0.0.deb, pandorafms.agent_3.0.0.deb) on . Everything works, and I'm slowly adapting it to my needs.

Problem I ran into was that all agents report Next agent contact: Out of limits.

Then while looking at time stamps, I noticed, that Pandora console 'thinks' it's one hour back, e.g. 10:00, while pandora server and pandora agent os show 11:00 (using ubuntu console date shows, mysql now() and agent time stamps).

If I check under Administration->Setup->Time source, both System time and Database time is one hour back.

Any ideas how to fix it? Is there some place where I can set timezone for Pandora? I think if I fix it, that "out of limits' problem will go away as well.

Server console date shows something like Fri Feb  5 11:17:27 EET 2010.

UPDATE:
For now I fixed it editing /var/www/pandora_console/include/config_process.php and changing
date_default_timezone_set("Europe/Berlin");
to
date_default_timezone_set("Europe/Riga");
But still, I think there is some problem with Pandora Console configuration - apearantly "ini_get('date.timezone')" doesn't work, so it set up using fallback option.
Logged

-- See you in the other screen.

daniels
Smart member
*****

Karma: 19
Offline Offline

Posts: 205



View Profile
« Reply #3 on: March 12, 2010, 06:13:18 PM »

Hi martinssaulitis

  I had exactly the same problem.

   I tried the solutions but only yours worked for me. Setting up under Administration->Setup->Time Source:

TimeZone: Brazil/East

obs: To find your exactly TimeZone, take a look at /usr/share/zoneinfo/

Thank you.

Regards.
Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST