Versions Compared

Key

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

...

Info
During the conversion of pnp4nagios files to the rrd format, you may face these errors.

Status
colourGreen
titleLAST TESTED ON CHECKMK 2.1.0P1

Table of Contents


'NoneType' object has no attribute 'text'

...

  • If it's related to a builtin Check → Check, please open a ticket via the customer portal
  • If it's a customization → You , you need to change the service description of the service, do a rediscovery, and move the old pnp4nagios files to the new ones

...

In the first line of the cmk-update-config -vv --debug output, there is already a hint to the corresponding host:

...

Please fetch that name and remove the .mk suffix. Now you have the Hostname. In my case, it's MYHOST.


Now you can use xmllint to debug that:

Code Block
languagebash
themeRDark
OMD[mysite]:~$ xmllint  -noout --format var/pnp4nagios/perfdata/MYHOST/*xml
var/pnp4nagios/perfdata/MYHOST/Filesystem_F__.xml:114: parser error : expected '>'
</N
^


It seems like the problem is in row 114 with a missing '>'. Let's check the xml file.

...

If you now run cmk-update-config -vv --debug again, there should be no error

Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("agent_bakery","user_roles_permissions","user","roles") and type = "page" and space = "KB"
labelsagent_bakery user_roles_permissions roles user

Page Properties
hiddentrue


Related issues