No graphs after system restore

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
oxzhor
Posts: 4
Joined: Tue Jan 24, 2017 4:22 am

No graphs after system restore

Post by oxzhor »

Hi All,

After a system crash i restored a backup to a new system but now my rrd graphs not work anymore.

System details:
CentOS 6.7 x64
Cacti Version 0.8.8h
NET-SNMP version: 5.5
RRDtool 1.3.8

DEBUG logging
php -q cmd.php 194 1841

Code: Select all

01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] SNMP: Host responded to SNMP
01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] RECACHE: Processing 2 items in the auto reindex cache for 'XXX.XXX.XXX.XXX'.
01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0
01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0, output: 26765294
01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] RECACHE DQ[2] OID: .1.3.6.1.2.1.1.3.0
01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] RECACHE DQ[2] OID: .1.3.6.1.2.1.1.3.0, output: 26765299
01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] DS[2817] SNMP: v2: XXX.XXX.XXX.XXX, dsname: cpu_nice, oid: .1.3.6.1.4.1.2021.11.51.0, output: 159622
01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] DS[2818] SNMP: v2: XXX.XXX.XXX.XXX, dsname: cpu_system, oid: .1.3.6.1.4.1.2021.11.52.0, output: 483669
01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] DS[2819] SNMP: v2: XXX.XXX.XXX.XXX, dsname: cpu_user, oid: .1.3.6.1.4.1.2021.11.50.0, output: 1997537
01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] DS[2820] SNMP: v2: XXX.XXX.XXX.XXX, dsname: load_1min, oid: .1.3.6.1.4.1.2021.10.1.3.1, output: 0.04
01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] DS[2821] SNMP: v2: XXX.XXX.XXX.XXX, dsname: load_15min, oid: .1.3.6.1.4.1.2021.10.1.3.3, output: 0.05
01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] DS[2822] SNMP: v2: XXX.XXX.XXX.XXX, dsname: load_5min, oid: .1.3.6.1.4.1.2021.10.1.3.2, output: 0.04
01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] DS[2823] SNMP: v2: XXX.XXX.XXX.XXX, dsname: mem_buffers, oid: .1.3.6.1.4.1.2021.4.14.0, output: 0
01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] DS[2824] SNMP: v2: XXX.XXX.XXX.XXX, dsname: mem_cache, oid: .1.3.6.1.4.1.2021.4.15.0, output: 758404
01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] DS[2825] SNMP: v2: XXX.XXX.XXX.XXX, dsname: mem_free, oid: .1.3.6.1.4.1.2021.4.6.0, output: 1466428
01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] DS[2826] SNMP: v2: XXX.XXX.XXX.XXX, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 559981292
01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] DS[2826] SNMP: v2: XXX.XXX.XXX.XXX, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 126185090
01/24/2017 10:28:49 AM - CMDPHP: Poller[0] Host[194] DS[2827] SNMP: v2: XXX.XXX.XXX.XXX, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, output: 1956054568
01/24/2017 10:28:50 AM - CMDPHP: Poller[0] Host[194] DS[2827] SNMP: v2: XXX.XXX.XXX.XXX, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, output: 1291147335
01/24/2017 10:28:50 AM - CMDPHP: Poller[0] Host[194] DS[2828] SNMP: v2: XXX.XXX.XXX.XXX, dsname: hdd_free, oid: .1.3.6.1.4.1.2021.9.1.7.1, output: 46611732
01/24/2017 10:28:50 AM - CMDPHP: Poller[0] Host[194] DS[2828] SNMP: v2: XXX.XXX.XXX.XXX, dsname: hdd_used, oid: .1.3.6.1.4.1.2021.9.1.8.1, output: 5791468
01/24/2017 10:28:50 AM - CMDPHP: Poller[0] Host[194] DS[2829] SNMP: v2: XXX.XXX.XXX.XXX, dsname: hdd_free, oid: .1.3.6.1.4.1.2021.9.1.7.2, output: 906395468
01/24/2017 10:28:50 AM - CMDPHP: Poller[0] Host[194] DS[2829] SNMP: v2: XXX.XXX.XXX.XXX, dsname: hdd_used, oid: .1.3.6.1.4.1.2021.9.1.8.2, output: 10836576
01/24/2017 10:28:50 AM - CMDPHP: Poller[0] Host[194] DS[2830] SNMP: v2: XXX.XXX.XXX.XXX, dsname: hdd_free, oid: .1.3.6.1.4.1.2021.9.1.7.5, output: 2097120
01/24/2017 10:28:50 AM - CMDPHP: Poller[0] Host[194] DS[2830] SNMP: v2: XXX.XXX.XXX.XXX, dsname: hdd_used, oid: .1.3.6.1.4.1.2021.9.1.8.5, output: 32
01/24/2017 10:28:50 AM - CMDPHP: Poller[0] Time: 0.9222 s, Theads: N/A, Hosts: 1
Also i try System Utilities / Rebuild Poller Cache but this also not helping.

If i looking at Graph Management into debug mode i see the follow:

Code: Select all

	RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='srv.name.net - CPU Usage' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='percent' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a='/home/user/domains/name.net/public_html/stats/rra/srv_name_net_cpu_system_2818.rrd':'cpu_system':AVERAGE \
DEF:b='/home/user/domains/name.net/public_html/stats/rra/srv_name_net_cpu_user_2819.rrd':'cpu_user':AVERAGE \
DEF:c='/home/user/domains/name.net/public_html/stats/rra/srv_name_net_cpu_nice_2817.rrd':'cpu_nice':AVERAGE \
CDEF:cdefbc='TIME,1485250064,GT,a,a,UN,0,a,IF,IF,TIME,1485250064,GT,b,b,UN,0,b,IF,IF,TIME,1485250064,GT,c,c,UN,0,c,IF,IF,+,+' \
AREA:a#FF0000FF:'System'  \
GPRINT:a:LAST:'Current\:%8.2lf %s'  \
GPRINT:a:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:a:MAX:'Maximum\:%8.2lf %s\n'  \
AREA:b#0000FFFF:'User':STACK \
GPRINT:b:LAST:'  Current\:%8.2lf %s'  \
GPRINT:b:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:b:MAX:'Maximum\:%8.2lf %s\n'  \
AREA:c#00FF00FF:'Nice':STACK \
GPRINT:c:LAST:'  Current\:%8.2lf %s'  \
GPRINT:c:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:c:MAX:'Maximum\:%8.2lf %s\n'  \
LINE1:cdefbc#000000FF:'Total'  \
GPRINT:cdefbc:LAST:' Current\:%8.2lf %s'  \
GPRINT:cdefbc:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefbc:MAX:'Maximum\:%8.2lf %s' 
RRDTool Says:
ERROR: opening '/home/user/domains/name.net/public_html/stats/rra/srv_name_net_cpu_system_2818.rrd': No such file or directory
So i checked ls -la /home/user/domains/name.net/public_html/stats/rra/srv_name_net_* and see other numbers into the rra folder

Code: Select all

-rw-r--r-- 1 user user 1171168 Jan 23 15:45 /home/user/domains/name.net/public_html/stats/rra/srv_name_net_cpu_nice_3234.rrd
-rw-r--r-- 1 user user 1171168 Jan 23 15:45 /home/user/domains/name.net/public_html/stats/rra/srv_name_net_cpu_system_3235.rrd
-rw-r--r-- 1 user user 1171168 Jan 23 15:45 /home/user/domains/name.net/public_html/stats/rra/srv_name_net_cpu_user_3236.rrd
-rw-r--r-- 1 user user 2340424 Jan 23 15:45 /home/user/domains/name.net/public_html/stats/rra/srv_name_net_hdd_free_3243.rrd
-rw-r--r-- 1 user user 2340424 Jan 23 15:45 /home/user/domains/name.net/public_html/stats/rra/srv_name_net_hdd_free_3244.rrd
-rw-r--r-- 1 user user 2340424 Jan 23 15:45 /home/user/domains/name.net/public_html/stats/rra/srv_name_net_hdd_free_3245.rrd
-rw-r--r-- 1 user user 1171168 Jan 23 15:45 /home/user/domains/name.net/public_html/stats/rra/srv_name_net_load_15min_3238.rrd
-rw-r--r-- 1 user user 1171168 Jan 23 15:45 /home/user/domains/name.net/public_html/stats/rra/srv_name_net_load_1min_3237.rrd
-rw-r--r-- 1 user user 1171168 Jan 23 15:45 /home/user/domains/name.net/public_html/stats/rra/srv_name_net_load_5min_3239.rrd
-rw-r--r-- 1 user user 1171168 Jan 23 15:45 /home/user/domains/name.net/public_html/stats/rra/srv_name_net_mem_buffers_3240.rrd
-rw-r--r-- 1 user user 1171168 Jan 23 15:45 /home/user/domains/name.net/public_html/stats/rra/srv_name_net_mem_cache_3241.rrd
-rw-r--r-- 1 user user 1171168 Jan 23 15:45 /home/user/domains/name.net/public_html/stats/rra/srv_name_net_mem_free_3242.rrd
How i can solved this problem so i can see the graphs back into my cacti.
Thanks a lot for your feedback.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: No graphs after system restore

Post by phalek »

Can you describe this in a bit more detail ?
I restored a backup to a new system
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
oxzhor
Posts: 4
Joined: Tue Jan 24, 2017 4:22 am

Re: No graphs after system restore

Post by oxzhor »

phalek wrote:Can you describe this in a bit more detail ?
I restored a backup to a new system
Yes sure, my old system crashed so i setup completely a new server and restore my backups.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: No graphs after system restore

Post by phalek »

And again ... can you describe this in a bit more detail ?
and restore my backups.
This is pretty vague. It could be only restoring the database, only restoring the cacti files, only restoring ...
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
oxzhor
Posts: 4
Joined: Tue Jan 24, 2017 4:22 am

Re: No graphs after system restore

Post by oxzhor »

Details here i setup a new sever with directadmin and restore my cacti backup incl database dump on it.

I try also a brand new installation of cacti and restore the cacti database and rrd files into the /rra folder but this give the same resolute.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests