Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info

This manual should give you an overview of some common Round Robin Database (RRD) issues we have seen over time. You can use this as a kind of checklist to go through for troubleshooting step by step.

...

Code Block
languagebash
themeRDark
  HOST: RRD-a
      ERROR: 'NoneType' object has no attribute 'replace'

Follow the manual  for resolution https://checkmk.atlassian.net/wiki/spaces/KB/pages/9471047/Error+during+the+RRD+conversion#ErrorduringtheRRDconversion-'NoneType'objecthasnoattribute'replace'' manual Troubleshooting errors during the RRD conversion'' for resolution

'ASCII' codec can't decode characters 

...

Code Block
languagebash
themeRDark
OMD[mysite]:~$ cmk --convert-rrds localhost
Traceback (most recent call last):
  File "/omd/sites/rrd/bin/cmk", line 94, in <module>
    exit_status = modes.call(mode_name, mode_args, opts, args)
  File "/omd/sites/rrd/lib/python/cmk_base/modes/__init__.py", line 72, in call
    return mode.handler_function(*handler_args)
  File "/omd/sites/rrd/lib/python/cmk_base/modes/cee.py", line 147, in mode_convert_rrds
    rrd.do_convert_rrds(*args)
  File "/omd/sites/rrd/lib/python/cmk_base/cee/rrd.py", line 413, in do_convert_rrds
    convert_rrds_of_host(hostname)
  File "/omd/sites/rrd/lib/python/cmk_base/cee/rrd.py", line 428, in convert_rrds_of_host
    console.error("      %sERROR: %s%s\n" % (tty.red + tty.bold, e, tty.normal))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 70-75: ordinal not in range(128)

Follow the manual https://checkmk.atlassian.net/wiki/spaces/KB/pages/9471047/Error+during+the+RRD+conversion#ErrorduringtheRRDconversion-manual 'ASCII' codeccan'tdecodecharacterscodec can't decode characters for resolution

xml.etree.ElementTree.ParseError: no element found: line 1, column 0

...

To get rid of that, please follow that manual: Error handling with RRD files after conversion to the new format

Cannot create a graph

Screenshot of CPU utilization service for mysite01. Error reads cannot create graph


It seems like the .rrd file is missing. Please double-check with the cmc.log:

Code Block
languagebash
themeRDark
OMD[mysite]:~$ tail -f var/log/cmc.log 
2022-06-02 12:09:41 [4] [main] [rrd] [rrdcached at /omd/sites/mysite/tmp/run/rrdcached.sock] >> -1 No such file: /opt/omd/sites/mysite/var/check_mk/rrd/<HOSTNAME>/CPU_Utilization_Packet_CPU_1.rrd
2022-06-02 12:10:41 [4] [main] [rrd] [rrdcached at /omd/sites/mysite/tmp/run/rrdcached.sock] >> -1 No such file: /opt/omd/sites/mysite/var/check_mk/rrd/<HOSTNAME>/CPU_Utilization_Mgmt_CPU.rrd
2022-06-02 12:10:41 [4] [main] [rrd] [rrdcached at /omd/sites/mysite/tmp/run/rrdcached.sock] >> -1 No such file: /opt/omd/sites/mysite/var/check_mk/rrd/<HOSTNAME>/CPU_Utilization_Packet_CPU_0.rrd

...