Problem
You may be affected by that:
Info |
---|
Image Added |
To visualize a graph, Checkmk is using RRD. The RRD needs by nature two files:
Code Block |
---|
|
rw-rw---- 1 master master 93 Jun 2 07:21 CPU_Utilization_Packet_CPU_2.info
-rw-r--r-- 1 master master 384952 Jun 2 11:22 CPU_Utilization_Packet_CPU_2.rrd |
The .rrd file stores all the data and the .info file defines the service metrics. If one of the file is missing, you will face the message above. This message will also be displayed in the cmc.log:
Code Block |
---|
|
OMD[mysite]:~$ tail -f var/log/cmc.log
2022-06-02 12:09:41 [4] [main] [rrd] [rrdcached at /omd/sites/master/tmp/run/rrdcached.sock] >> -1 No such file: /opt/omd/sites/master/var/check_mk/rrd/<HOSTNAME>/CPU_Utilization_Packet_CPU_1.rrd
2022-06-02 12:10:41 [4] [main] [rrd] [rrdcached at /omd/sites/master/tmp/run/rrdcached.sock] >> -1 No such file: /opt/omd/sites/master/var/check_mk/rrd/<HOSTNAME>/CPU_Utilization_Mgmt_CPU.rrd
2022-06-02 12:10:41 [4] [main] [rrd] [rrdcached at /omd/sites/master/tmp/run/rrdcached.sock] >> -1 No such file: /opt/omd/sites/master/var/check_mk/rrd/<HOSTNAME>/CPU_Utilization_Packet_CPU_0.rrd |
Solution
...
Unfortunately, for some reasons one of the file is missing. In that case it is the .rrd file. So to make the graphs working again, you need to find all the .info files with a missing .rrd file and to delete them manually:
Code Block |
---|
|
OMD[mysite]:~$ for i in $(find ~/var/check_mk/rrd -name *.info); do test -e ${i%info}rrd || echo $i;done
/omd/sites/mysite/var/check_mk/rrd/<HOSTNAME>/PING.info
/omd/sites/mysite/var/check_mk/rrd/<HOSTNAME>/CPU_Utilization_Mgmt_CPU.info
/omd/sites/mysite/var/check_mk/rrd/<HOSTNAME>/CPU_Utilization_Packet_CPU_1.info
/omd/sites/mysite/var/check_mk/rrd/<HOSTNAME>/CPU_Utilization_Packet_CPU_0.info |
Now you have a least with files to delete. Please replace echo $i with rm $i in order to delete those files.
Note |
---|
Checkmk does not delete any .rrd file. So it could be deleted by a custom cleaning job! |
Related articles
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | KB |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label = "rrd" and type = "page" and space = "KB" |
---|
labels | rrd |
---|
|
...