My Info :
System : FreeBSD 5.3-RELEASE
Cacti : Version 0.8.6h
php : PHP 4.4.2
Mysql : mysql Ver 14.7 Distrib 4.1.10a, for unknown-freebsd5.3 (i386)
I have meet a big problem on my cacti. Indeed, I think that my cacti mysql database is corrupted :
1) First, all "Associated Data Queries" except (interface statistic) disapared from my database. After looking on a orginal cacti database, I added these sql line :
Code: Select all
INSERT INTO `snmp_query` VALUES (2, '3c1b27d94ad208a0090f293deadde753', '<path_cacti>/resource/snmp_queries/net-snmp_disk.xml', 'ucd/net - Get Monitored Partitions', 'Retrieves a list of monitored partitions/disks from a net-snmp enabled host.', 0, 2);
INSERT INTO `snmp_query` VALUES (3, '59aab7b0feddc7860002ed9303085ba5', '<path_cacti>/resource/snmp_queries/kbridge.xml', 'Karlnet - Wireless Bridge Statistics', 'Gets information about the wireless connectivity of each station from a Karlnet bridge.', 0, 2);
INSERT INTO `snmp_query` VALUES (4, 'ad06f46e22e991cb47c95c7233cfaee8', '<path_cacti>/resource/snmp_queries/netware_disk.xml', 'Netware - Get Available Volumes', 'Retrieves a list of volumes from a Netware server.', 0, 2);
INSERT INTO `snmp_query` VALUES (6, '8ffa36c1864124b38bcda2ae9bd61f46', '<path_cacti>/resource/script_queries/unix_disk.xml', 'Unix - Get Mounted Partitions', 'Queries a list of mounted partitions on a unix-based host with the', 0, 11);
INSERT INTO `snmp_query` VALUES (7, '30ec734bc0ae81a3d995be82c73f46c1', '<path_cacti>/resource/snmp_queries/netware_cpu.xml', 'Netware - Get Processor Information', 'Gets information about running processors in a Netware server', 0, 2);
INSERT INTO `snmp_query` VALUES (8, '9343eab1f4d88b0e61ffc9d020f35414', '<path_cacti>/resource/script_server/host_disk.xml', 'SNMP - Get Mounted Partitions', 'Gets a list of partitions using SNMP', 0, 12);
INSERT INTO `snmp_query` VALUES (9, '0d1ab53fe37487a5d0b9e1d3ee8c1d0d', '<path_cacti>/resource/script_server/host_cpu.xml', 'SNMP - Get Processor Information', 'Gets usage for each processor in the system using the host MIB.', 0, 12);
Data Query Debug Information
+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/local/bin/php -q /usr/local/cacti/scripts/ss_host_disk.php 127.0.0.1 52 2:161AtUtKCGS:::MD5::[None] index'
+ Executing script query '/usr/local/bin/php -q /usr/local/cacti/scripts/ss_host_disk.php 127.0.0.1 52 2:161AtUtKCGS:::MD5::[None] query index'
+ Found item [hrStorageIndex='1'] index: 1
+ Found item [hrStorageIndex='2'] index: 2
+ Found item [hrStorageIndex='3'] index: 3
+ Found item [hrStorageIndex='4'] index: 4
+ Found item [hrStorageIndex='5'] index: 5
+ Found item [hrStorageIndex='6'] index: 6
+ Found item [hrStorageIndex='7'] index: 7
+ Found item [hrStorageIndex='8'] index: 8
+ Found item [hrStorageIndex='9'] index: 9
+ Found item [hrStorageIndex='10'] index: 10
+ Executing script query '/usr/local/bin/php -q /usr/local/cacti/scripts/ss_host_disk.php 127.0.0.1 52 2:161AtUtKCGS:::MD5::[None] query description'
+ Found item [hrStorageDescr='Memory Buffers'] index: 1
+ Found item [hrStorageDescr='Real Memory'] index: 2
+ Found item [hrStorageDescr='Swap Space'] index: 3
+ Found item [hrStorageDescr='Memory Buffer Clusters'] index: 4
+ Found item [hrStorageDescr='/'] index: 5
+ Found item [hrStorageDescr='/dev'] index: 6
+ Found item [hrStorageDescr='/ftp'] index: 7
+ Found item [hrStorageDescr='/tmp'] index: 8
+ Found item [hrStorageDescr='/usr'] index: 9
+ Found item [hrStorageDescr='/var'] index: 10
+ Executing script query '/usr/local/bin/php -q /usr/local/cacti/scripts/ss_host_disk.php 127.0.0.1 52 2:161AtUtKCGS:::MD5::[None] query sau'
+ Found item [hrStorageAllocationUnits='256'] index: 1
+ Found item [hrStorageAllocationUnits='4096'] index: 2
+ Found item [hrStorageAllocationUnits='4096'] index: 3
+ Found item [hrStorageAllocationUnits='1024'] index: 4
+ Found item [hrStorageAllocationUnits='2048'] index: 5
+ Found item [hrStorageAllocationUnits='512'] index: 6
+ Found item [hrStorageAllocationUnits='2048'] index: 7
+ Found item [hrStorageAllocationUnits='2048'] index: 8
+ Found item [hrStorageAllocationUnits='2048'] index: 9
+ Found item [hrStorageAllocationUnits='2048'] index: 10
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
3) When i try to add a graph from this data query I get this message (graph created without name):
3) When I access the graph management menu, all graph have no name (see screenshoot)+ Created graph:
+ Created graph:
4) All old graph work again. This problem affect only new graph.
I would like to know if I can correct this problem and how ?
Thanks A lot.