Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-9147

hostmacros causing corrupt trigger expressions after migration

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 2.4.2
    • Server (S)

      After migrating from 2.2.7 directly to 2.4.2, some trigger expressions are corrupt.

      {hostname:net.dns[,{HOSTNAME},ANY].max(1800)}=0 & {$NODNSCHECK}#0
      

      became

      {hostname:net.dns[,{HOSTNAME},ANY].max(1800)}=0 and 
      
      template_apc_emu:temperature.min(3)}>{$WARNING_TEMP_MIN} | {template_apc_emu:temperature.max(3)}<{$WARNING_TEMP_MAX}
      

      became

      template_apc_emu:temperature.min(3)}>{template_apc_emu:temperature.max(3)}<
      

      (these also cause warnings on the trigger page:

      >Uninitialized string offset: 42 [triggers.php:477 ? CView->render() ? include() ? triggerExpression() in /usr/share/zabbix/include/triggers.inc.php:720]
      >Uninitialized string offset: 42 [triggers.php:477 ? CView->render() ? include() ? triggerExpression() in /usr/share/zabbix/include/triggers.inc.php:724]
      

            Unassigned Unassigned
            kdaudt Kevin Daudt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: