Start a conversation

Changing Traffic Charts Intervals

Overview

Traffic charts are located in the Status section of the Kerio Control admin page. Sometimes, you may mat to modify the default values of Time interval for Traffic Charts.

E.g., set it to 1 year instead of 1 month:


mceclip0.png

This article provides step-by-step instructions on how to achieve this from the Kerio Control Webadmin.

 

Information

Notes

  • There are a few constants which are used for Traffic Charts statistics:

HistogramTwoHour

HistogramOneDay

HistogramOneWeek

HistogramOneMonth

mceclip2.png

  • Modifying these variables might lead to stability issues with Webadmin UI of Kerio Control.
    It is required to take the backup before proceeding with internal files’ modification.


Prerequisites

Access to Kerio Control Webadmin and SSH.

 

Process

  1. Enable SSH and log in using SSH PuTTY client. You can refer to the first part (Accessing the operating system) of the article Modifying Configuration Parameters in Kerio Control for more information.

  2. Navigate to the /opt/kerio/winroute folder. The command is cd /opt/kerio/winroute

  3. Make the system writeable:
    mount -o rw,remount /

  4. Open and modify the webadmin/appWidgets.js file to suit your time interval:

    nano +1409 webadmin/appWidgets.js

    See the highlighted white section in the below screenshot:

    mceclip1.png

  5. You can set up the variables for a time interval for a year like:

    k_format: k_DATE_TIME_FORMAT.k_DATE,

    k_unit; 'k_day',

    k_interval: '86400‬',

    k_wholetime: '32140800000',

    k-step: 1
  6. Save the file (Ctrl+O) and restart Kerio Control with this command:
    /etc/boxinit.d/60winroute restart

 

Confirmation

The 1-year option is now seen in Kerio Control Webadmin UI confirming the changes were successful.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments