Cacti self-brought traffic monitoring threshold template for "interface–traffic", can only monitor bytes, after adding thresholds, alarm traffic information in bytes units, viewing is unfriendly, you can convert Btyes to MB units by the following methods.
1, add the Traffic conversion template, open the Control Panel management function, find cdefs:
2, click Add in the top right corner of the page, the following page appears:
This function is named as: Turn Bytes to Mbits, after saving, we create a template, and then add functionality to the template.
3, click Add, in the drop-down box of the section, respectively, add the following order:
Special data source----Current Graph Item Data Source---Click Create
Custom String----8 (manually populated by yourself)----Click Create
Operator----* (i.e. function multiplied)----Click Create
Custom String----1024 (manually populated by yourself)----Click Create
Operator----/(i.e. function divided)----Click Create
Custom String----1024 (manually populated by yourself)----Click Create
Operator----/(i.e. function divided)----Click Create
The final result of adding a template to this place is:
cdef=current_data_source,8,*,1024,/,1024,/
4. Apply this template
Enter the threshold Templates in the Control Panel and add the interface–traffic threshold, as set in the figure.
High/low Warning Setting does not set any value indicates that warn value is not monitored
High/low Setting The high threshold setting value is 20, indicating that the outgoing traffic is higher than the threshold of 20M alarm, because the traffic unit is selected at the Cdef of MB
Cacti monitor traffic in megabytes