Made with the latest version 2.8.2 of smokeping.
Modify the rrdtool to support the Chinese language.
Support to modify the rrdtool side watermark.
Support the operation and maintenance personnel by email when the smokeping network monitors the fault.
Ready to increase web page login verification function.
Prepare to increase the smokeping preparation mode.
Ready to increase the automatic saving of smokeping data.
This docker container supports modifying the rrdtool watermark. If you need to modify, please modify the variable RRDTOOL for what you want, be careful not to use #
The following ports are important and used by Cacti
Port | Notes |
---|---|
80 | HTTP GUI Port |
It is recommended to allow at least one of the above ports for access to the monitoring system.
Now when we have our database running we can deploy Smokeping image with appropriate environmental variables set.
Example:
docker run \
-d \
--name smokeping \
-p 80:80 \
--env="TZ=Asia/Shanghai" \
--env="RRDTOOL_LOGO=Smokeping2.7.2/rrdtool1.4.9-BY:Fenei" \
--env="MAIL_TO=alert@mail.com" \
--env="MAIL_FROM=alert_from@qq.com" \
--env="MAIL_FROM_PASSWORD=somepassword" \
--env="MAIL_FROM_SERVER=smtp.qq.com:587" \
--env="HTTP_USER=admin" \
--env="HTTP_PASSWORD=admin@123" \
-v '/data/smokeping':'/smokeping':'rw' \
babyfenei/smokeping
You can modify the contents of the variable as needed. If there is no modification, set it according to the default value.
Variable | Default | Description |
---|---|---|
TZ | Asia/Shanghai | Smokeping server time zone, viewable in /usr/share/zoneinfo |
RRDTOOL_LOGO | Docker-Smokeping2.8.2/Rrdtool1.4.9-BY:Fenei | Rrdtool logo, you can modify the watermark on the right side of Smokeping graphics, be careful not to enter # |
MAIL_TO | alert@mail.com | Fault alarm notification mailbox |
MAIL_FROM | alert_from@qq.com | Alarm source email address |
MAIL_FROM_PASSWORD | somepassword | Alarm source email password |
MAIL_FROM_SERVER | smtp.qq.com:587 | Alarm sending source mailbox SMTP address |
HTTP_USER | admin | Apache web login username |
HTTP_PASSWORD | admin@123 | Apache web login password |
At present, smoke login has not been added to webpage login verification. This feature will be added later.
Because sendmail and postfix can no longer send mail based on the local server under docker, so use the zmail library under python3 here. If you want to use the mail alert feature. Please follow the steps below:
alerts = hostdown,hightloss,lossdetect,someloss,rttdetect
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。