The mail traffic always show zero. [SOLVED]
The mail traffic always show zero.
I has see user send mail and received mail.But the keyhelp panel traffic statistics always show zero.
I has see mail log.
How to fix it?
Re: The mail traffic always show zero.
- Jolinar
- Community Moderator
- Posts: 3829
- Joined: Sat 30. Jan 2016, 07:11
- Location: Weimar (Thüringen)
- Contact:
Re: The mail traffic always show zero.
/var/log/mail.log
Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
- In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
In this color, I write as a moderator and provide moderative guidance or justify moderative interventions - In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
In this color, I write as a community member and share my personal opinions and views
Re: The mail traffic always show zero.
Re: The mail traffic always show zero.
If you want it back, install rsyslog.
--
95% aller Programmier halten sich für genial.
Der Rest immer noch für überdurchschnittlich.
Re: The mail traffic always show zero.
But I want know why no mail traffic.I has see incoming mail and outgoing mail.But it's always show zero.
Re: The mail traffic always show zero.
Database and webspace are updated every four hours and traffic once at night.
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Re: The mail traffic always show zero.
Default is, it runs once every day around 00:00 -> 01:00 o'clock.
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: The mail traffic always show zero.
Re: The mail traffic always show zero.
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: The mail traffic always show zero. [SOLVED]
Background:
For calculating the mail traffic, i use journalctl. After the traffic calculation is run for the first time, i only read the new logs. Journalctl has a system called "cursor" for this. The cursor specifies the location within the log (journalctl).
When the traffic calculation has not yet run, i don't have a "cursor", so i read the journalctl from the beginning, using the "--since" parameter. I used "--since=1970-01-01 01:00:00" for that. It turns out, that this is transferred to the time zone on the server (UTC+0800), and so it can be negative.
Journalctl would than complain about an invalid timestamp and not returning any results, and therefor no result were returned to calculate the traffic.
I have now modified the --since parameter value so the issue is fixed.
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: The mail traffic always show zero.
Could it's my setup error or another question?
Re: The mail traffic always show zero.
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************