Ad Widget

Collapse

What happened to the item labels

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kekkykekke
    Junior Member
    • Mar 2024
    • 9

    #1

    What happened to the item labels

    After I migrated from Zabbix 4 to 7 I noticed that this is what happened to many of my graphs

    Click image for larger version

Name:	chart.png
Views:	151
Size:	210.4 KB
ID:	492692

    In this case the user time for cpu works the system, idle, iowait are broken. They show up as items like:
    CPU $2 time ($3) system.cpu.util[,idle,avg1] Zabbix agent Numeric (float) Enabled
    CPU $2 time ($3) system.cpu.util[,iowait,avg1] Zabbix agent Numeric (float) Enabled
    CPU $2 time ($3) system.cpu.util[,nice,avg1] Zabbix agent Numeric (float) Enabled
    CPU $2 time ($3) system.cpu.util[,system,avg1] Zabbix agent Numeric (float) Enabled
    CPU user time (avg1) system.cpu.util[,user,avg1] Zabbix agent Numeric (float) Enabled
    These are all provided by Template_Linux, some of my completely custom graphs are fine. Even the data is coming in from some of these misnamed items as it should. I have a lot of templates and items like this, is there any easy way to fix them all?
    Renaming is not possible as they are template items, cloning and disabling the old ones also not possible since it would be An item with key "system.cpu.util[,idle,avg1]" already exists besides I have a tremendous amount of these items I don't want to remove the templates and create the items one by one.

    Any easy way to fix this?

    Thanks
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    This from release notes of v6 (yes 6)...If you skip versions, its useful to read all the release notes from skipped versions...

    Positional macros no longer supported
    The support for positional macros in item name ($1, $2...$9), deprecated since Zabbix 4.0, has been fully removed.
    It should be possible to fix your template and replace those positional macros with LLD macros...

    Comment

    Working...