Ad Widget

Collapse

Zabbix Graphs won't display

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • albertxiao
    Junior Member
    • Dec 2008
    • 16

    #1

    Zabbix Graphs won't display

    I have installed zabbix 1.6.1 on OpenSUSE 11.0
    When I try to view a graph, the graph cannot be displayed.
    I have checked the solutions mentioned in FAQ archive.
    No luck.

    The php gd package is php5-gd-5.2.5-66.1.i586.rpm


    The phpinfo() result I get is:

    PHP Version 5.2.5

    memory_limit 128M

    Apache/2.2.8 (Linux/SUSE) Server

    gd
    GD Support enabled
    GD Version bundled (2.0.34 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.3.5
    T1Lib Support enabled
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XPM Support enabled
    XBM Support enabled

    Can anyone help?
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #2
    What if you browse to the image itself (and not the page containing the graph) ?

    URL must look like this (simple graph):

    /chart.php?itemid=XXX&from=0&stime=200901211305&per iod=3600

    Comment

    • albertxiao
      Junior Member
      • Dec 2008
      • 16

      #3
      Hi Calimero,

      The link for the graph is


      I have tried, still no luck.

      It seems to me it is a DB access problem.
      I run a test with the following code

      <?php
      $conn = OCILogon("zabbix", "zabbix", 'SUSEDB');


      $query = 'select table_name from user_tables';

      $stid = OCIParse($conn, $query);
      OCIExecute($stid, OCI_DEFAULT);
      while ($succ = OCIFetchInto($stid, $row)) {
      foreach ($row as $item) {
      echo $item." ";
      }
      echo "<br>\n";
      }

      OCILogoff($conn);
      ?>

      The error message:
      ocilogon(): ORA-12154: TNS:could not resolve the connect identifier specified in /srv/www/html/phptest/phpdbtest.php on line 5

      I fix this problem during the installation by using the following connection string from tnsnames.ora

      '(DESCRIPTION=ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 150.236.80.236)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = susedb)))')

      But not this time. :-(

      Comment

      Working...