Ad Widget

Collapse

Zabbix Dynamic PDF Report Generation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • martinm_76
    Member
    • Mar 2015
    • 57

    #241
    Well waardd, I don't know what else to suggest, except to look at your PHP version.

    Maybe try to cat one of the PNG-files. It may contain an error-message in stead of graphics data.

    The 'name' attribute should be available in 1.8.x as well, but perhaps the way we select the attributes are not supported in 1.8?

    You could try to change this:
    Code:
                    $hostGraphs = ZabbixAPI::fetch_array('graph','get',array('output'=>array('graphid','name'),'hostids'=>$hostid))
                            or die('Unable to get graphs: '.print_r(ZabbixAPI::getLastError(),true));
    to this:
    Code:
                    $hostGraphs = ZabbixAPI::fetch_array('graph','get',array('output'=>'extend','hostids'=>$hostid))
                            or die('Unable to get graphs: '.print_r(ZabbixAPI::getLastError(),true));
    Should be line 58, I believe.

    Possibly comment out the logout-part of index.php once again.

    Things will get a lot better when you upgrade!

    Comment

    • waardd
      Member
      • Aug 2014
      • 82

      #242
      martinm_76 tnx but the code change you suggested is not there....

      I'm now working with version 0.5 downloaded from the shared folder and my PHP version is Version 5.3.3
      The logout line is allready commented out.

      I'm not sure when we are able to upgrade....

      Comment

      • martinm_76
        Member
        • Mar 2015
        • 57

        #243
        Originally posted by waardd
        martinm_76 tnx but the code change you suggested is not there....

        I'm now working with version 0.5 downloaded from the shared folder and my PHP version is Version 5.3.3
        The logout line is already commented out.

        I'm not sure when we are able to upgrade....
        The code change is in inc/createpdf.functions.php

        Also, your reports directory is not set to 777, so either make sure Apache can write to it or do a chmod 777 reports

        Comment

        • waardd
          Member
          • Aug 2014
          • 82

          #244
          OK i missed that..... sorry for the noob mishap...

          Now i catted one of the png files nad found out it caontains an error
          Code:
          <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
          <html><head>
          <title>404 Not Found</title>
          </head><body>
          <h1>Not Found</h1>
          <p>The requested URL /zabbix/frontends/phpchart2.php was not found on this server.</p>
          </body></html>
          Where is this url made or defined?

          #EDIT: I forgot the / on the end of the $z_server setting in config file.....

          But... i stil have a problem with the report.

          1: i cant select a host. Pulldown is empty.
          2: When i generate a report of 1 hostgroup i get a 236 page counting report on all hosts...
          Last edited by waardd; 20-04-2015, 13:38.

          Comment

          • martinm_76
            Member
            • Mar 2015
            • 57

            #245
            Originally posted by waardd
            OK i missed that..... sorry for the noob mishap...

            Now i catted one of the png files nad found out it caontains an error
            Code:
            <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
            <html><head>
            <title>404 Not Found</title>
            </head><body>
            <h1>Not Found</h1>
            <p>The requested URL /zabbix/frontends/phpchart2.php was not found on this server.</p>
            </body></html>
            Where is this url made or defined?

            #EDIT: I forgot the / on the end of the $z_server setting in config file.....

            But... i stil have a problem with the report.

            1: i cant select a host. Pulldown is empty.
            2: When i generate a report of 1 hostgroup i get a 236 page counting report on all hosts...
            Hmm... Please to a 'View source' on the index-page and look through it. I suspect they are actually listed there, even if you don't see them. JavaScript can be tricky sometimes. Have you tried different browsers?

            I was about to suggest the extra '/', but you found it. Good job!

            Comment

            • waardd
              Member
              • Aug 2014
              • 82

              #246
              I did try diffrent browsers. In the source view is see something like this:
              Code:
              </td><td valign="center" align="left" width="70%" height="30">
              <p id="p_ReportHost">
              <label for="s_ReportHost" class="error">Please select your host</label>
              &nbsp;<select id="s_ReportHost" name="HostID" width="350"  style="width: 350px" title="Please select host" required>
              <option value="">--&nbsp;Select&nbsp;host&nbsp;--</option>
              <option value=""></option>
              </select>
              </p>
              <p id="p_ReportHostGroup">
              &nbsp;<select id="s_ReportHostGroup" name="GroupID" width="350" style="width: 350px" title="Please select hostgroup" >
              <option value="">--&nbsp;Select&nbsp;hostgroup&nbsp;--</option>
              <option value="53">ABLI</option>
              <option value="30">ABPM</option>
              <option value="32">ABPX</option>
              <option value="91">ABPX_PA</option>
              <option value="26">ACPT</option>
              It almost looks to me that
              Code:
              $hosts       = ZabbixAPI::fetch_array('host','get',array('output'=>array('hostid','name'),'sortfield'=>'host','with_graphs'=>'1','sortfield'=>'name') )
                      or die('Unable to get hosts: '.print_r(ZabbixAPI::getLastError(),true));
              is not working properly... but thats a guess

              And the of course the question remains why i get a report of everything when i just ask one hostgroup?

              Comment

              • martinm_76
                Member
                • Mar 2015
                • 57

                #247
                Well, there seems to be some extra stuff that is not neccessary and maybe causes the failure here:

                Code:
                $hosts       = ZabbixAPI::fetch_array('host','get',array('output'=>array('hostid','name'),'sortfield'=>'host','with_graphs'=>'1','sortfield'=>'name') )
                        or die('Unable to get hosts: '.print_r(ZabbixAPI::getLastError(),true));
                Please try to remove the last bit, 'sortfield'=>'name'.
                It should still be there for hostgroups, but not for hosts.

                Check up on the API for your version here:


                In later versions of Zabbix, both 'host' and 'name' contain the same thing.
                I don't know why you get everything when you select a hostgroup.

                Maybe you could try a few debugging tests.

                Have you run with 'Debug' ticked?

                You could try print_r on select arrays in createpdf.functions.php, if that is not enough.

                Comment

                • waardd
                  Member
                  • Aug 2014
                  • 82

                  #248
                  Oke... i changed the fetch line to:
                  Code:
                  ZabbixAPI::fetch_array('host','get',array('output'=>array('hostid','host'),'sortfield'=>'host','with_graphs'=>'1') )
                  and now i get a list. (only in Chrome and IE all entries are white)

                  Then when i generate it has the same action as with hostgroup. It collects all graphs...

                  Debug shows:
                  Code:
                  GroupID: 32
                  Report Type: hostgroup
                  Time Period: 3600
                  Temp image path: /appl/mcv/html/zabbix/frontends/php/report/tmp/zabbix_report_AknnxT
                  
                  (id:)
                  jk-8009 worker threads(id:372)
                  http-8080 worker threads(id:373)
                  http-8443 worker threads(id:374)
                  sessions /(id:375)
                  3150-cpu(id:387)
                  3150-load(id:391)
                  3148-cpu(id:392)
                  3148-load(id:393)
                  Space in Queue(id:437)
                  Space in Queue(id:438)
                  Space in Queue(id:439)
                  MySQL Threads(id:470)
                  MySQL Questions(id:471)
                  MySQL slow queries(id:472)
                  MySQL QPS(id:473)
                  MySQL Ping(id:474)
                  ZabbixAgent(id:476)
                  ZabbixAgent(id:479)
                  ZabbixAgent(id:481)
                  CPU-LOAD(id:533)
                  CPU-LOAD(id:536)
                  CPU-LOAD(id:538)
                  MEM-LOAD(id:560)
                  MEM-LOAD(id:563)
                  MEM-LOAD(id:565)
                  DISK-USE(id:587)
                  CIV LOG(id:614)
                  CIV LOG(id:615)
                  CIV LOG(id:616)
                  CIV LOG(id:617)
                  CIV LOG(id:618)
                  Space in Queue(id:721)
                  Space in Queue(id:725)
                  Memmory(id:733)
                  Aggr-CIV ping(id:735)
                  Aggr-CIV ping(id:736)
                  Aggr-CIV ping(id:737)
                  Aggr-CIV ping(id:738)
                  Aggr-CIV ping(id:739)
                  Aggr-CIV-error(id:744)
                  Aggr-CIV-error(id:745)
                  Aggr-CIV-error(id:746)
                  Aggr-CIV-error(id:747)
                  Aggr-CIV-error(id:748)
                  CPU Busy(id:759)
                  CPU Busy(id:761)
                  CIV GC(id:767)
                  CIV GC(id:768)
                  CIV GC(id:769)
                  Verwerkingstijd CC(id:770)
                  Verwerkingstijd CC(id:771)
                  Verwerkingstijd CC(id:772)
                  Verwerkingstijd CC(id:773)
                  Verwerkingstijd CC(id:774)
                  GC-Total-Free-Procent(id:775)
                  GC-Total-Free-Procent(id:776)
                  GC-Total-Free-Procent(id:777)
                  GC-Total-Free-Procent(id:778)
                  GC-Total-Free-Procent(id:779)
                  Parties in Web(id:780)
                  Parties in Web(id:781)
                  Parties in Web(id:782)
                  Parties in Web(id:783)
                  Parties in Web(id:784)
                  Memmory(id:792)
                  Memmory(id:795)
                  Klant Autorisaties(id:838)
                  Productbeeld(id:839)
                  Productbeeld(id:840)
                  Klant Autorisaties(id:841)
                  Productbeeld(id:842)
                  Klant Autorisaties(id:843)
                  Productbeeld(id:846)
                  Klant Autorisaties(id:847)
                  Productbeeld(id:850)
                  Klant Autorisaties(id:851)
                  Autorisatiebeeld(id:852)
                  Autorisatiebeeld(id:853)
                  Autorisatiebeeld(id:854)
                  Autorisatiebeeld(id:855)
                  Autorisatiebeeld(id:856)
                  XML Koppeling(id:857)
                  XML Koppeling(id:858)
                  XML Koppeling(id:859)
                  XML Koppeling(id:860)
                  XML Koppeling(id:861)
                  CPU Busy incl trigger(id:870)
                  /APPL Used-Free(id:871)
                  Memmory(id:872)
                  Meldingen(id:873)
                  Meldingen(id:874)
                  Meldingen(id:875)
                  Meldingen(id:876)
                  Meldingen(id:877)
                  Triggers Changed_cst(id:878)
                  Triggers Changed_cst(id:879)
                  Triggers Changed_cst(id:880)
                  Triggers Changed_cst(id:881)
                  Triggers Changed_cst(id:882)
                  Trigger Recalculate_ikb(id:883)
                  Trigger Recalculate_ikb(id:884)
                  Trigger Recalculate_ikb(id:885)
                  Trigger Recalculate_ikb(id:886)
                  Trigger Recalculate_ikb(id:887)
                  Shells in web(id:888)
                  Shells in web(id:889)
                  Shells in web(id:890)
                  Shells in web(id:891)
                  Shells in web(id:892)
                  zabbix agent(id:894)
                  zabbix agent(id:899)
                  zabbix agent(id:900)
                  zabbix agent(id:901)
                  zabbix agent(id:912)
                  Memmory(id:914)
                  zabbix agent(id:916)
                  Memmory(id:918)
                  zabbix agent(id:920)
                  Memmory(id:922)
                  zabbix agent(id:924)
                  Memmory(id:926)
                  CPU load CIV 5min(id:927)
                  zabbix agent(id:1099)
                  Memmory(id:1101)
                  zabbix agent(id:1103)
                  Memmory(id:1105)
                  zabbix agent(id:1107)
                  Memmory(id:1109)
                  zabbix agent(id:1147)
                  Memmory(id:1149)
                  CPU Busy incl trigger(id:1150)
                  zabbix agent(id:1151)
                  /APPL Used-Free(id:1152)
                  Memmory(id:1153)
                  zabbix agent(id:1155)
                  Memmory(id:1157)
                  CPU Busy incl trigger(id:1158)
                  zabbix agent(id:1159)
                  /APPL Used-Free(id:1160)
                  Memmory(id:1161)
                  CPU Busy incl trigger(id:1162)
                  zabbix agent(id:1163)
                  /APPL Used-Free(id:1164)
                  Memmory(id:1165)
                  zabbix agent(id:1187)
                  Memmory(id:1189)
                  Processor load(id:1194)
                  #CPU(id:1267)
                  Aggr-CIV-CPU Busy(id:1268)
                  CIV Eth 0 traffic(id:1293)
                  KAD Eth0 incomming traffic(id:1294)
                  KAD Eth0 outgoing traffic(id:1295)
                  KAD CPU Busy(id:1296)
                  KCALC ERROR(id:1310)
                  Total Errors(id:1318)
                  CIV-Logspace used(id:1323)
                  CPU verbruik gemiddeld (user)(id:1325)
                  zabbix agent(id:1333)
                  Memmory(id:1335)
                  CPU usage all(id:1337)
                  zabbix agent(id:1338)
                  Memmory(id:1340)
                  Verwerkingstijd RI(id:1342)
                  Verwerkingstijd RI(id:1343)
                  Verwerkingstijd RI(id:1344)
                  Verwerkingstijd RI(id:1345)
                  Verwerkingstijd RI(id:1346)
                  Verw. Tijd CC gemiddeld (TAB)(id:1347)
                  Verw. Tijd CC gemiddeld (TAB)(id:1348)
                  Verw. Tijd CC gemiddeld (TAB)(id:1349)
                  Verw. Tijd CC gemiddeld (TAB)(id:1350)
                  Verw. Tijd CC gemiddeld (TAB)(id:1351)
                  zabbix agent(id:1365)
                  Memmory(id:1367)
                  zabbix agent(id:1370)
                  Memmory(id:1372)
                  zabbix agent(id:1375)
                  Memmory(id:1377)
                  zabbix agent(id:1380)
                  Memmory(id:1382)
                  zabbix agent(id:1385)
                  Memmory(id:1387)
                  zabbix agent(id:1390)
                  Memmory(id:1392)
                  zabbix agent(id:1395)
                  Memmory(id:1397)
                  zabbix agent(id:1400)
                  Memmory(id:1402)
                  zabbix agent(id:1405)
                  Memmory(id:1407)
                  zabbix agent(id:1410)
                  Memmory(id:1412)
                  zabbix agent(id:1415)
                  Memmory(id:1417)
                  zabbix agent(id:1420)
                  Memmory(id:1422)
                  zabbix agent(id:1425)
                  Memmory(id:1427)
                  zabbix agent(id:1430)
                  Memmory(id:1432)
                  zabbix agent(id:1435)
                  Memmory(id:1437)
                  zabbix agent(id:1440)
                  Memmory(id:1442)
                  zabbix agent(id:1445)
                  Memmory(id:1447)
                  zabbix agent(id:1450)
                  Memmory(id:1452)
                  zabbix agent(id:1455)
                  Memmory(id:1457)
                  zabbix agent(id:1460)
                  Memmory(id:1462)
                  zabbix agent(id:1465)
                  Memmory(id:1467)
                  zabbix agent(id:1470)
                  Memmory(id:1472)
                  zabbix agent(id:1475)
                  Memmory(id:1477)
                  zabbix agent(id:1480)
                  Memmory(id:1482)
                  zabbix agent(id:1485)
                  Memmory(id:1487)
                  zabbix agent(id:1490)
                  Memmory(id:1492)
                  zabbix agent(id:1495)
                  Memmory(id:1497)
                  zabbix agent(id:1500)
                  Memmory(id:1502)
                  zabbix agent(id:1505)
                  Memmory(id:1507)
                  zabbix agent(id:1510)
                  Memmory(id:1512)
                  zabbix agent(id:1515)
                  Memmory(id:1517)
                  zabbix agent(id:1520)
                  Memmory(id:1522)
                  zabbix agent(id:1525)
                  Memmory(id:1527)
                  zabbix agent(id:1530)
                  Memmory(id:1532)
                  zabbix agent(id:1535)
                  Memmory(id:1537)
                  zabbix agent(id:1540)
                  Memmory(id:1542)
                  zabbix agent(id:1545)
                  Memmory(id:1547)
                  zabbix agent(id:1550)
                  Memmory(id:1552)
                  zabbix agent(id:1555)
                  Memmory(id:1557)
                  zabbix agent(id:1560)
                  Memmory(id:1562)
                  zabbix agent(id:1565)
                  Memmory(id:1567)
                  zabbix agent(id:1570)
                  Memmory(id:1572)
                  zabbix agent(id:1575)
                  Memmory(id:1577)
                  CPAD OutOfMemmory(id:1578)
                  CPAD GC(id:1579)
                  CPAD GC(id:1580)
                  CPAD GC(id:1581)
                  CPAD GC(id:1582)
                  CPAD GC(id:1583)
                  zabbix agent(id:1591)
                  Memmory(id:1593)
                  zabbix agent(id:1596)
                  Memmory(id:1598)
                  ERROR Stack(id:1605)
                  ABPM(id:1616)
                  ABPX Errors(id:1618)
                  GC CPAD(id:1619)
                  GC DPAD(id:1620)
                  GC CPAD(id:1621)
                  GC DPAD(id:1622)
                  zabbix agent(id:1635)
                  Memmory(id:1637)
                  zabbix agent(id:1640)
                  Memmory(id:1642)
                  zabbix agent(id:1645)
                  Memmory(id:1647)
                  zabbix agent(id:1650)
                  Memmory(id:1652)
                  ORCO Erros(id:1660)
                  PJJS Errors(id:1661)
                  ASPR_w8: ERROR application log stacked(id:1664)
                  DPAD_w8: ERROR application log stacked(id:1665)
                  GBRE_w8: ERROR application log stacked(id:1666)
                  COAC_w8: ERROR application log stacked(id:1667)
                  CPR1_w8: ERROR application log stacked(id:1668)
                  ORCO_w8: ERROR application log stacked(id:1669)
                  PJJS_w8: ERROR application log stacked(id:1670)
                  CPAD_w8: ERROR application log stacked(id:1671)
                  CPC2: ERROR application log stacked(id:1676)
                  CTTS: ERROR APPLOG(id:1677)
                  CPR1_w8: Timed-out application log stacked(id:1696)
                  CPR1_w8: SilSoap application log stacked(id:1697)
                  CPR1_w8: http500 stacked(id:1698)
                  CPR1_w8: http200 stacked(id:1699)
                  Total Errors(id:1704)
                  Total Errors(id:1705)
                  Total Errors(id:1706)
                  Total Errors(id:1707)
                  RECONCILE(id:1708)
                  RECONCILE(id:1709)
                  ABPM ERROR APPLOG(id:1710)
                  ABPM - ERROR application log stacked(id:1712)
                  ABPM - ERROR application log stacked(id:1713)
                  CPR1_w8: OutOfMemoryERROR(id:1715)
                  CPR1_w8: http /cpr1-lb/ivoportal/ stacked(id:1716)
                  CPR1_w8: WARN application log stacked(id:1717)
                  #Processen_w8(id:1718)
                  #Processen(id:1719)
                  #Processen(id:1720)
                  #Processen(id:1721)
                  #Running processes_w8(id:1722)
                  #Running processes(id:1723)
                  #Running processes(id:1724)
                  #Running processes(id:1725)
                  CPU Load 5_w8(id:1730)
                  CPU Load 5(id:1731)
                  CPU Load 5(id:1732)
                  CPU Load 5(id:1733)
                  deploy used %_w8(id:1734)
                  deploy used %(id:1735)
                  deploy used %(id:1736)
                  deploy used %(id:1737)
                  p01 used %_w8(id:1742)
                  p01 used %(id:1743)
                  p01 used %(id:1744)
                  p01 used %(id:1745)
                  was used %_w8(id:1746)
                  was used %(id:1747)
                  was used %(id:1748)
                  was used %(id:1749)
                  ABPX ERROR APPLOG(id:1750)
                  ABPX - ERROR application log stacked(id:1751)
                  ABPX - ERROR application log stacked(id:1752)
                  ABPX - ERROR application log stacked(id:1753)
                  ABPX_w8-peer not authenticated(id:1754)
                  ABPX-peer not authenticated(id:1755)
                  ABPX-peer not authenticated(id:1756)
                  ABPX-peer not authenticated(id:1757)
                  ABPX-Read timed out(id:1758)
                  ABPX-Read timed out(id:1759)
                  ABPX-Read timed out(id:1760)
                  ABPX-Read timed out(id:1761)
                  ABPX_w8 NullPointerException(id:1766)
                  NullPointerException(id:1767)
                  NullPointerException(id:1768)
                  NullPointerException(id:1769)
                  CPR1_w8: Pie WARN INFO TIMEDOUT INFO(id:1770)
                  CPR1_w8: Pie WARN INFO TIMEDOUT INFO(id:1777)
                  CPR1_w8: Pie WARN INFO TIMEDOUT INFO(id:1778)
                  CPR1_w8: Pie WARN INFO TIMEDOUT INFO(id:1779)
                  Time out CRMi (ABPM/ABPX log)(id:1780)
                  Time out OBPM (ABPM/ABPX log)(id:1781)
                  CPAS: ERROR application log stacked(id:1782)
                  CPAS: Timed Out application log stacked(id:1783)
                  CPAS: WARN application log stacked(id:1784)
                  CPAS: SilSoap application log stacked(id:1785)
                  CPAS: INFO application log stacked(id:1786)
                  RCHK: TOTAL Completed stacked(id:1787)
                  RCHK - ERROR(id:1789)
                  RCHK - TIMEDOUT(id:1790)
                  SWAP asp0n(id:1791)
                  SWAP asp0n(id:1792)
                  SWAP asp0n(id:1793)
                  SWAP asp0n(id:1794)
                  CRMi Dummy Time out stacked(id:1795)
                  RCHK ERROR APPLOG(id:1796)
                  RCHK: TOTAL Completed stacked(id:1797)
                  Completed Relation Checks(id:1798)
                  CPR1-INT SEC applog(id:1802)
                  zabbix agent(id:1805)
                  Memmory(id:1807)
                  zabbix agent(id:1810)
                  Memmory(id:1812)
                  zabbix agent(id:1815)
                  Memmory(id:1817)
                  zabbix agent(id:1820)
                  Memmory(id:1822)
                  SWAP asa0n(id:1823)
                  SWAP asa0n(id:1824)
                  SWAP asa0n(id:1825)
                  SWAP asa0n(id:1826)
                  CPR1-Logspace used(id:1827)
                  ABPX-Used logspace(id:1828)
                  Productbeeld(id:1829)
                  Klant Autorisaties(id:1830)
                  Productbeeld(id:1831)
                  Klant Autorisaties(id:1832)
                  Productbeeld(id:1833)
                  Klant Autorisaties(id:1834)
                  Productbeeld(id:1835)
                  Klant Autorisaties(id:1836)
                  KAUTH-Logspace used(id:1837)
                  KVIEW-Logspace used(id:1838)
                  KCALC-Logspace used(id:1839)
                  SWAP asp0n(id:1840)
                  SWAP asp0n(id:1841)
                  SWAP asp0n(id:1842)
                  SWAP asp0n(id:1843)
                  CSDD.PM85737(id:1844)
                  SWAP asp0n(id:1845)
                  SWAP asp0n(id:1846)
                  SWAP asp0n(id:1847)
                  SWAP asp0n(id:1848)
                  SWAP asp0n(id:1849)
                  SWAP asp0n(id:1850)
                  CPU Busy calculated(id:1851)
                  CPU Busy calculated(id:1856)
                  CPU Busy calculated(id:1857)
                  CPU Busy calculated(id:1858)
                  CPU Busy calculated(id:1859)
                  CPU Busy calculated(id:1860)
                  CPU Busy calculated(id:1861)
                  CPU Busy calculated(id:1875)
                  CPU Busy calculated(id:1876)
                  CPU Busy calculated(id:1877)
                  CPU Busy calculated(id:1878)
                  CPU Busy calculated(id:1879)
                  CPU Busy calculated(id:1884)
                  CPU Busy calculated(id:1885)
                  CPU Busy calculated(id:1886)
                  CPU Busy calculated(id:1887)
                  CPU Busy calculated(id:1888)
                  CPU Busy calculated(id:1889)
                  CPU Busy calculated(id:1890)
                  CPU Busy calculated(id:1891)
                  CPU Busy calculated(id:1892)
                  CPU Busy calculated(id:1893)
                  CPU Busy calculated(id:1894)
                  CPU Busy calculated(id:1895)
                  CPU Busy calculated(id:1896)
                  CPU Busy calculated(id:1897)
                  CPU Busy calculated(id:1898)
                  CPU Busy calculated(id:1899)
                  CPU Busy calculated(id:1900)
                  CPU Busy calculated(id:1901)
                  CPU Busy calculated(id:1902)
                  CPU Busy calculated(id:1903)
                  CPU Busy calculated(id:1904)
                  CPU Busy calculated(id:1905)
                  CPU Busy calculated(id:1906)
                  CPU Busy calculated(id:1907)
                  CPU Busy calculated(id:1908)
                  CPU Busy calculated(id:1909)
                  CPU Busy calculated(id:1910)
                  CPU Busy calculated(id:1911)
                  CPU Busy calculated(id:1912)
                  CPU Busy calculated(id:1913)
                  CPU Busy calculated(id:1914)
                  CPU Busy calculated(id:1915)
                  CPU Busy calculated(id:1916)
                  CPU Busy calculated(id:1917)
                  CPU Busy calculated(id:1918)
                  CPU Busy calculated(id:1919)
                  CPU Busy calculated(id:1920)
                  CPU Busy calculated(id:1921)
                  CPU Busy calculated(id:1922)
                  CPU Busy calculated(id:1923)
                  CPU Busy calculated(id:1924)
                  CPU Busy calculated(id:1925)
                  CPU Busy calculated(id:1926)
                  CPU Busy calculated(id:1927)
                  CPU Busy calculated(id:1928)
                  CPU Busy calculated(id:1930)
                  CPU Busy calculated(id:1931)
                  CPU Busy calculated(id:1933)
                  CPU Busy calculated(id:1934)
                  CPU Busy calculated(id:1935)
                  CPU Busy calculated(id:1936)
                  CPU Busy calculated(id:1937)
                  CPU Busy calculated(id:1938)
                  CPU Busy calculated(id:1939)
                  CPU Busy calculated(id:1940)
                  CPU Busy calculated(id:1942)
                  zabbix agent(id:1943)
                  Memmory(id:1944)
                  CPU Busy calculated(id:1946)
                  zabbix agent(id:1947)
                  Memmory(id:1948)
                  CPU Busy calculated(id:1950)
                  zabbix agent(id:1951)
                  Memmory(id:1952)
                  ERROR in dvoa.log(id:1953)
                  ERROR in dvoa.log(id:1954)
                  ERROR in dvoa.log(id:1955)
                  DVOA C:D(id:1956)
                  DVOA C:D(id:1957)
                  DVOA C:D(id:1958)
                  LOPR: ERROR application log stacked(id:1959)
                  ILV-ERROR application log stacked(id:1960)
                  AFOV-ERROR application log stacked(id:1961)
                  Produktoverzicht(id:1962)
                  Produktoverzicht(id:1963)
                  Completed Relation Checks(id:1967)
                  Completed Relation Checks(id:1968)
                  GC CSDD(id:1991)
                  GC CSDD(id:1992)
                  GC CSDD(id:1993)
                  GC CSDD(id:1994)
                  GC CSDD(id:1995)
                  DPAD GC(id:2001)
                  DPAD GC(id:2002)
                  DPAD GC(id:2003)
                  DPAD GC(id:2004)
                  DPAD GC(id:2005)
                  DPAD GC % Free all(id:2006)
                  ERROR in civ.log(id:2014)
                  ERROR in civ_view.log(id:2015)
                  Laatste 60 min per 5 min gemeten(id:2016)
                  BKR Intern(id:2017)
                  BKR Intern(id:2018)
                  BKR Intern(id:2019)
                  BKR Intern(id:2020)
                  BKR Intern(id:2021)
                  Toetsen laatste uur (per 5 min)(id:2022)
                  CPU Busy calculated(id:2024)
                  zabbix agent(id:2025)
                  Memmory(id:2026)
                  CPU Busy calculated(id:2028)
                  zabbix agent(id:2029)
                  Memmory(id:2030)
                  CPU Busy calculated(id:2032)
                  zabbix agent(id:2033)
                  Memmory(id:2034)
                  CPU Busy calculated(id:2036)
                  zabbix agent(id:2037)
                  Memmory(id:2038)
                  Processen Zabbix(id:2043)
                  Zabbix server log(id:2044)
                  CPU Busy calculated(id:2046)
                  zabbix agent(id:2047)
                  Memmory(id:2048)
                  CPU Busy calculated(id:2050)
                  zabbix agent(id:2051)
                  Memmory(id:2052)
                  CPU Busy calculated(id:2054)
                  zabbix agent(id:2055)
                  Memmory(id:2056)
                  CPU Busy calculated(id:2058)
                  zabbix agent(id:2059)
                  Memmory(id:2060)
                  CPU Busy calculated(id:2062)
                  zabbix agent(id:2063)
                  Memmory(id:2064)
                  Toetsen laatste 5 min(id:2065)
                  ABLI ABPX ABPM RWA Cache(id:2066)
                  RWA Cache(id:2072)
                  RWA Cache(id:2073)
                  RWA Cache(id:2074)
                  COAC ORCO CPR1 RWA Cache(id:2075)
                  VOOV RWA Cache(id:2076)
                  ABPX ERROR APPLOG no max(id:2077)
                  AFOV - RECO - VITO RWA Cache(id:2078)
                  CCLC CWHC RWA Cache (FS)(id:2079)
                  CPU Busy calculated(id:2080)
                  CPU Busy calculated(id:2081)
                  CPU Busy calculated(id:2082)
                  CPU Busy calculated(id:2083)
                  BKR uitval(id:2085)
                  BKR uitval(id:2086)
                  BKR uitval(id:2087)
                  BKR uitval(id:2088)
                  Completed Relation Checks(id:2089)
                  Completed Relation Checks(id:2090)
                  Completed Relation Checks(id:2091)
                  RWA Cache lv vs /var(id:2092)
                  RWA Cache lv vs /var(id:2093)
                  RWA Cache lv vs /var(id:2094)
                  RWA Cache lv vs /var(id:2095)
                  RWA Cache lv vs /var(id:2096)
                  RWA Cache lv vs /var(id:2097)
                  RWA Cache lv vs /var(id:2098)
                  RWA Cache lv vs /var(id:2099)
                  RWA Cache lv vs /var(id:2100)
                  RWA Cache lv vs /var(id:2101)
                  RWA Cache lv vs /var(id:2102)
                  RWA Cache lv vs /var(id:2103)
                  RWA Cache lv vs /var(id:2104)
                  RWA Cache lv vs /var(id:2105)
                  RWA Cache lv vs /var(id:2106)
                  RWA Cache lv vs /var(id:2107)
                  RWA Cache lv vs /var(id:2108)
                  RWA Cache lv vs /var(id:2109)
                  RWA Cache lv vs /var(id:2110)
                  RWA Cache lv vs /var(id:2111)
                  RWA Cache lv vs /var(id:2112)
                  RWA Cache lv vs /var(id:2113)
                  RWA Cache lv vs /var(id:2114)
                  RWA Cache lv vs /var(id:2115)
                  RWA Cache lv vs /var(id:2116)
                  RWA Cache lv vs /var(id:2117)
                  RWA Cache lv vs /var(id:2118)
                  RWA Cache lv vs /var(id:2119)
                  RWA Cache lv vs /var(id:2120)
                  RWA Cache lv vs /var(id:2121)
                  RWA Cache lv vs /var(id:2122)
                  RWA Cache lv vs /var(id:2123)
                  RWA Cache lv vs /var(id:2124)
                  RWA Cache lv vs /var(id:2125)
                  RWA Cache lv vs /var(id:2126)
                  RWA Cache lv vs /var(id:2127)
                  RWA Cache lv vs /var(id:2128)
                  RWA Cache lv vs /var(id:2129)
                  RWA Cache lv vs /var(id:2130)
                  RWA Cache lv vs /var(id:2131)
                  RWA Cache lv vs /var(id:2132)
                  RWA Cache lv vs /var(id:2133)
                  RWA Cache lv vs /var(id:2134)
                  RWA Cache lv vs /var(id:2135)
                  RWA Cache lv vs /var(id:2136)
                  RWA Cache lv vs /var(id:2137)
                  RWA Cache lv vs /var(id:2138)
                  RWA Cache lv vs /var(id:2139)
                  RWA Cache lv vs /var(id:2140)
                  RWA Cache lv vs /var(id:2141)
                  RWA Cache lv vs /var(id:2142)
                  RWA Cache lv vs /var(id:2143)
                  RWA Cache lv vs /var(id:2144)
                  RWA Cache lv vs /var(id:2145)
                  RWA Cache lv vs /var(id:2146)
                  RWA Cache lv vs /var(id:2147)
                  RWA Cache lv vs /var(id:2148)
                  RWA Cache lv vs /var(id:2149)
                  RWA Cache lv vs /var(id:2150)
                  RWA Cache lv vs /var(id:2151)
                  RWA Cache lv vs /var(id:2152)
                  RWA Cache lv vs /var(id:2153)
                  RWA Cache lv vs /var(id:2154)
                  RWA Cache lv vs /var(id:2155)
                  RWA Cache lv vs /var(id:2156)
                  RWA Cache lv vs /var(id:2157)
                  RWA Cache lv vs /var(id:2158)
                  RWA Cache lv vs /var(id:2159)
                  RWA Cache lv vs /var(id:2160)
                  RWA Cache lv vs /var(id:2161)
                  RWA Cache lv vs /var(id:2162)
                  RWA Cache lv vs /var(id:2163)
                  RWA Cache lv vs /var(id:2164)
                  RWA Cache lv vs /var(id:2165)
                  RWA Cache lv vs /var(id:2166)
                  RWA Cache lv vs /var(id:2167)
                  RWA Cache lv vs /var(id:2168)
                  RWA Cache lv vs /var(id:2169)
                  RWA Cache lv vs /var(id:2170)
                  RWA Cache lv vs /var(id:2171)
                  RWA Cache lv vs /var(id:2172)
                  RWA Cache lv vs /var(id:2173)
                  RWA Cache lv vs /var(id:2174)
                  GBRE GC(id:2180)
                  Host has same output except of course HostID=x
                  Code:
                  HostID: 10348
                  Report Type: host
                  Time Period: 3600
                  Temp image path: /appl/mcv/html/zabbix/frontends/php/report/tmp/zabbix_report_qZ90Hc
                  
                  (id:)
                  jk-8009 worker threads(id:372)
                  http-8080 worker threads(id:373)
                  http-8443 worker threads(id:374)
                  sessions /(id:375)
                  and so on
                  Last edited by waardd; 21-04-2015, 08:56.

                  Comment

                  • martinm_76
                    Member
                    • Mar 2015
                    • 57

                    #249
                    Good, now you need to find out why your ID is not getting set, and what makes it select a GroupID and not a HostID

                    Oke... i changed the fetch line to:

                    Code:
                    ZabbixAPI::fetch_array('host','get',array('output'=>array('hostid','host'),'sortfield'=>'host','with_graphs'=>'1') )
                    and now i get a list. (only in Chrome and IE all entries are white)

                    Then when i generate it has the same action as with hostgroup. It collects all graphs...

                    Debug shows:

                    See inline comments below
                    Code:
                    GroupID: 32  (What ID did you actually select?)
                    Report Type: hostgroup
                    Time Period: 3600
                    Temp image path: /appl/mcv/html/zabbix/frontends/php/report/tmp/zabbix_report_AknnxT
                    
                    (id:) <- This should not be blank
                    jk-8009 worker threads(id:372)
                    http-8080 worker threads(id:373)
                    ....
                    Last edited by martinm_76; 21-04-2015, 11:21.

                    Comment

                    • waardd
                      Member
                      • Aug 2014
                      • 82

                      #250
                      check pic
                      I cant get much sence about the fact that my dropdown list for hosts is not empty but filled and not visible.
                      All items are in it but i cant see them.

                      Another thing is that the chosen item (host or group) is not put in the ID to get the graphs from so therefor all graphs of all hosts are gathered.....

                      Please help... im so close (i think)
                      Last edited by waardd; 06-05-2015, 15:57.

                      Comment

                      • martinm_76
                        Member
                        • Mar 2015
                        • 57

                        #251
                        Originally posted by waardd
                        check pic
                        I cant get much sence about the fact that my dropdown list for hosts is not empty but filled and not visible.
                        All items are in it but i cant see them.

                        Another thing is that the chosen item (host or group) is not put in the ID to get the graphs from so therefor all graphs of all hosts are gathered.....

                        Please help... im so close (i think)
                        Image doesn't show for me.
                        What browsers have you tried (and what versions)? Is the result identical in all of them?
                        Have you cleared your cache/Run the report on a machine you have never tried it on with the same result?
                        Is there a proxy between you and the server?

                        I had an issue with not seeing the contents of the dropdowns at one point, but I think I got it sorted by making sure I was completely logged out (which may be slightly problematic for you, since it seems the logout function is not playing ball) and making sure I cleared all cookies for the given page.

                        Try with pure IP URL and with FQDN URL (e.g. zabbix.yourcompany.com/report/).

                        It may also be your php.ini file that is blocking functionality that is needed. Have the default php.ini been modified in any way?

                        There are probably more things that could be the cause, but those are what springs to mind. That and it works fine on my CentOS 6.6 64-bit.

                        Check if your values resemble this in php.ini:
                        Code:
                        [PHP]
                        engine = On
                        short_open_tag = Off
                        asp_tags = Off
                        precision = 14
                        y2k_compliance = On
                        output_buffering = 4096
                        zlib.output_compression = Off
                        implicit_flush = Off
                        unserialize_callback_func =
                        serialize_precision = 100
                        allow_call_time_pass_reference = Off
                        safe_mode = Off
                        safe_mode_gid = Off
                        safe_mode_include_dir =
                        safe_mode_exec_dir =
                        safe_mode_allowed_env_vars = PHP_
                        safe_mode_protected_env_vars = LD_LIBRARY_PATH
                        disable_functions =
                        disable_classes =
                        expose_php = On
                        max_execution_time = 30     
                        max_input_time = 60
                        memory_limit = 128M
                        error_reporting = E_ALL & ~E_DEPRECATED
                        display_errors = Off
                        display_startup_errors = Off
                        log_errors = On
                        log_errors_max_len = 1024
                        ignore_repeated_errors = Off
                        ignore_repeated_source = Off
                        report_memleaks = On
                        track_errors = Off
                        html_errors = Off
                        variables_order = "GPCS"
                        request_order = "GP"
                        register_globals = Off
                        register_long_arrays = Off
                        register_argc_argv = Off
                        auto_globals_jit = On
                        post_max_size = 8M
                        magic_quotes_gpc = Off
                        magic_quotes_runtime = Off
                        magic_quotes_sybase = Off
                        auto_prepend_file =
                        auto_append_file =
                        default_mimetype = "text/html"
                        doc_root =
                        user_dir =
                        enable_dl = Off
                        file_uploads = On
                        upload_max_filesize = 2M
                        allow_url_fopen = On
                        allow_url_include = Off
                        default_socket_timeout = 60
                        [Date]
                        date.timezone='Europe/Berlin';
                        More besides, but those parts ought to be the important bits.

                        Comment

                        • pantera
                          Member
                          • Dec 2014
                          • 39

                          #252
                          i installed zabbix on 3 separate machines
                          1 DB
                          1 server
                          1 frontends

                          how config.inc.php should be now?

                          Comment

                          • martinm_76
                            Member
                            • Mar 2015
                            • 57

                            #253
                            Originally posted by pantera
                            i installed zabbix on 3 separate machines
                            1 DB
                            1 server
                            1 frontends

                            how config.inc.php should be now?
                            Presently, the API follows the frontend, so point at that and you should be good.

                            Comment

                            • pantera
                              Member
                              • Dec 2014
                              • 39

                              #254
                              i wrote ip address of frontend and user password of this machine, but I can not login

                              Code:
                              Unable to login:

                              Comment

                              • pantera
                                Member
                                • Dec 2014
                                • 39

                                #255
                                $z_server = 'http://10.x.x.230/zabbix';
                                $z_user = 'zabbix';
                                $z_pass = 'zabbix';


                                I use uWamp on windows

                                can not login

                                Comment

                                Working...