cacti 显示Error: XML: Cacti version does not exist.

安装 cacti 之后,为了检测线路稳定性 丢包率,使用默认模板似乎有问题,于是从网上下了一个advanced ping 模板,导入模板的时候显示Error: XML: Cacti version does not exist. 网上有一些帖子说是要改 config_array.php ,我find 了一圈也没这个文件,cacti 版本是0.8.8的,突然发现include/ 下面有global_array.php 这里面倒是有,于是添加了最后几行;

$hash_version_codes = array(

        "0.8.4"  => "0000",

        "0.8.5"  => "0001",

        "0.8.5a" => "0002",

        "0.8.6"  => "0003",

        "0.8.6a" => "0004",

        "0.8.6b" => "0005",

        "0.8.6c" => "0006",

        "0.8.6d" => "0007",

        "0.8.6e" => "0008",

        "0.8.6f" => "0009",

        "0.8.6g" => "0010",

        "0.8.6h" => "0011",

        "0.8.6i" => "0012",

        "0.8.6j" => "0013",

        "0.8.7"  => "0014",

        "0.8.7a" => "0015",

        "0.8.7b" => "0016",

        "0.8.7c" => "0017",

        "0.8.7d" => "0018",

        "0.8.7e" => "0019",

        "0.8.7f" => "0020",

        "0.8.7g" => "0021",

        "0.8.7h" => "0022",

        "0.8.7i" => "0023",

        "0.8.8"  => "0024",

        "0.8.8a" => "0025",

        );

问题解决。

你可能感兴趣的:(xml,error,cacti)