4

老版本cacti的图形filter突然失效的解决办法

 1 year ago
source link: https://bajie.dev/posts/20221218-cacti_time_filter/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
  1. 主页
  2. 文章
  3. 老版本cacti的图形filter突然失效的解决办法

老版本cacti的图形filter突然失效的解决办法

2022-12-18 1 分钟阅读

网络工程师选择网络设备的监控工具是老牌的cacti,当然作为系统工程师的我,还是觉得librenms是个好选择,但是,librenms会对网络设备cpu造成比较大的压力。那还是遵从他的选择,最近网工报告说:

选择图形的时候时间Filter失效了。选择了以后图形无变化,崩溃,查了一下,都上古的玩意了。

修改方法:

修改graph_image.php

2021-01-20_190434.png

unixtime = 1600000000,也就是到 2020-09-13 20:26:40。放大到 2600000000,也就是到2052-05-22 22:13:20,写这个php程序的人防越界,却没想到时间真的来到了这个节点。

注:Unix 时间戳是从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数,不考虑闰秒。



About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK