msgbyte / tianji

Tianji: Insight into everything, Website Analytics + Uptime Monitor + Server Status. not only another GA alternatives
https://tianji.msgbyte.com/
Apache License 2.0
1.44k stars 83 forks source link

[Bug Report]The data hold time is too short, so Server Status occasionally mistakenly marks the server as offline when testing in an intranet environment #71

Open Muska-Ami opened 4 months ago

Muska-Ami commented 4 months ago

I tested Tianji in my intranet environment, and everything was normal. However, after the Reporter reported the data, the panel went offline, and then went back online in less than a second. It seems that Tianji set the hold time for the reported data too short, which caused this situation in the intranet. It is recommended to set the hold time longer to avoid this situation.

moonrailgun commented 4 months ago

Thanks for your report.

you have two way to resolve it:

Muska-Ami commented 4 months ago

I have been tested with --interval 15 ,now it's work. But I still think there might be this problem, because I'm testing on the same machine, which means the time should be the same, and there shouldn't be such a problem anyway. And the 15 second interval seems too long, and the data is not updated in time enough. Maybe this isn't caused by a misconfiguration?

moonrailgun commented 4 months ago

maybe its because your client time not sync.

i think you should sync date with time service

Muska-Ami commented 4 months ago

All my servers will perform NTP date synchronization when they are installed, so this problem should not be the cause. I tested it on another server and the same problem exists.

moonrailgun commented 4 months ago

how about your client? i mean your browser

Muska-Ami commented 4 months ago

Microsoft Edge 125.0.2535.9 Microsoft Edge Beta(Mobile) 126.02592.27