CastawayLabs / cachet-monitor

Distributed monitoring plugin for CachetHQ
https://castawaylabs.github.io/cachet-monitor/
MIT License
439 stars 127 forks source link

Metric time is 1 hour wrong #102

Closed itsRems closed 6 months ago

itsRems commented 5 years ago

Hi. I've recently installed cachet-monitor and tried to run some tests. Everything seemed to be right until I run into a little problem: every time my metric is updated, the time of the metric point is 1 hour late. I ran the tests at 7:50PM and eventhough the timezone of Cachet is set up correctly, the metrics showed the date sent a 7:50PM at 6:50PM. Can this be a problem with this package itself or a missconfiguration? Let me know if you need any information/config files.

BillyAB commented 5 years ago

I'm having the same issue, has anyone got to the bottom of this?

ramennbowls commented 4 years ago

I know, one year later but I thought I would share how I fixed this. Your system and MySQL/Apache2 (Or Nginx) has to be the correct time zone, I managed to figure this out my self. Even if Cachet has the same time zone, and that the Cachet Monitor is using the correct time zone, chances are that your MySQL or Apache2/Nginx services aren't on the correct time zones.