Invalid JSON exported from graph

Sorry here my small example with the RRD creation rule for a single service.

Demo host


RRD rule

The 40k data points are history for ca. 28 days.
After you defined this rule stop your site. Go to ~/var/check_mk/rrd//
Delete if it exists all files with the name of your check - in my example all files with “DemoPerf” in name.
Go to ~/var/rrdcached/ - remove the old cache files - attention all data not written to disk at this moment will get lost. Normally rrdcached only writes one time per hours the data to disk.
Start the site.
Now inside ~/var/check_mk/rrd// you should see the files deleted before, recreated.
I checked now with rrdinfo if my setting is respected.

~/var/check_mk/rrd/test$ rrdinfo DemoPerf.rrd 
filename = "DemoPerf.rrd"
rrd_version = "0003"
step = 60
last_update = 1678105811
header_size = 584
ds[1].index = 0
ds[1].type = "GAUGE"
ds[1].minimal_heartbeat = 8460
ds[1].min = NaN
ds[1].max = NaN
ds[1].last_ds = "1"
ds[1].value = 1.0000000000e+01
ds[1].unknown_sec = 1
rra[0].cf = "MAX"
rra[0].rows = 40000
rra[0].cur_row = 20554
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0

looks good 40k data points and last value was 1.

File size for one month and one minute resolution would be around 350kbyte.

1 Like