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

regression: cannot add graph template into a screen

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Minor Minor
    • None
    • 1.8.3, 1.8.4
    • Frontend (F)

      When trying to add a graph to a screen, only hosts are displayed.
      In 1.8.2 and before, i could add a graph from a template

      diff -ru zabbix-1.8.2/frontends/php/include/screens.inc.php zabbix-1.8.3/frontends/php/include/screens.inc.php
      shows a change in function get_screen_item_form(), the argument real_hosts=1 was added

      The fix might be to replace real_hosts=1 with real_hosts=0

      graph:

      • $selectbtn = new CButton('select',S_SELECT,"javascript: return PopUp('popup.php?writeonly=1&dstfrm=".$form->getName()."&dstfld1=resource
        id&dstfld2=caption&srctbl=graphs&srcfld1=graphid&srcfld2=name',800,450);");
        + $selectbtn = new CButton('select',S_SELECT,"javascript: return PopUp('popup.php?writeonly=1&dstfrm=".$form->getName()."&real_hosts=1&dsttfld1=resourceid&dstfld2=caption&srctbl=graphs&srcfld1=graphid&srcfld2=name',800,450);");

      simple graph:

      • $selectbtn = new Cbutton('select',S_SELECT,"javascript: return PopUp('popup.php?writeonly=1&dstfrm=".$form->getName()."&dstfld1=resource
        id&dstfld2=caption&srctbl=simple_graph&srcfld1=itemid&srcfld2=description',800,450);");
        + $selectbtn = new Cbutton('select',S_SELECT,"javascript: return PopUp('popup.php?writeonly=1&real_hosts=1&dstfrm=".$form->getName()."&dst
        fld1=resourceid&dstfld2=caption&srctbl=simple_graph&srcfld1=itemid&srcfld2=description',800,450);");

            Unassigned Unassigned
            dakol dakol
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: