Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1302258
  • 博文数量: 416
  • 博客积分: 10495
  • 博客等级: 上将
  • 技术积分: 4258
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-23 22:13
文章分类

全部博文(416)

文章存档

2015年(7)

2014年(42)

2013年(35)

2012年(14)

2011年(17)

2010年(10)

2009年(18)

2008年(127)

2007年(72)

2006年(23)

2005年(51)

分类: LINUX

2011-05-13 09:20:11

今天又实验了一下,以前是由于修改的不彻底,导致报错,是全部修改。
将新版本到处的cacti模板导入到旧版本的时候,就会报Error: XML: Hash version does not exist.,解决的办法是修改xml里面的相关hash值就可以了。

以下是cacti xml hash的一些说明:

Take the following example:
The first 2 digits are the type of the template.
The next 4 digits are the Cacti version it was created on.
The next 32 digits are a random number.
 

List of Versions
"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"  
 For the example above, this template was exported with Cacti 0.8.7d.

查看这些文件可以看到对应的信息/var/www/html/include/global_arrays.php    config_arrays.php

需要导入新版cacti模板的时候,只需要修改hash里面的version相关字段即可,记住是全部修改,可以用记事本查找替换,一般都有上百处替换。

阅读(2223) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~