Ad Widget

Collapse

Zabbix PDF report not working

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ultratech
    Junior Member
    • Jan 2021
    • 10

    #1

    Zabbix PDF report not working

    Hi everyone, I'm new to zabbix, I was planning to use Grafana to generate report but only available in enterprise version, end up I use this plugin https://github.com/martinm76/zabbix-pdf-report

    I have no idea what is the below problem

    Click image for larger version

Name:	zabbix pdf report 1.PNG
Views:	580
Size:	102.0 KB
ID:	417824

    Click image for larger version

Name:	zabbix pdf report 2.PNG
Views:	489
Size:	147.8 KB
ID:	417825
    Click image for larger version

Name:	zabbix pdf report 3.PNG
Views:	535
Size:	49.2 KB
ID:	417826
    Did I miss out something ?


    HTML Code:
    <?php
    //CONFIGURABLE
    
    # zabbix server info(user must have API access)
    $z_server = 'http://192.168.0.39/';
    $user_login=1; // 1 will ask for credentials. 0 will use credentials below:
    $z_user = 'Admin';
    $z_pass = 'zabbix';
    
    //$user_login=0; // If $user_login is 0, use credentials below and don't prompt$
    $allow_localhost=1; // If a request is made from 127.0.0.1, use credentials bel$
    
    $version = '1.1.1';
    
    // What items would you like to see in the report? Things that do not match are$
    $items = array('system information'=>'string','uptime'=>'seconds', 'boot time'=$
    
    // Which items would you like to see overall statistics for over the selected p$
    $trends = array('ICMP ping'=>'updown','ICMP loss'=>'number', 'ICMP response'=>'$
    
    $showdates = false; // Prepend date and time on items and trends, or leave it o$
    //$showdates = true; // Prepend date and time on items and trends, or leave it $
    
    // Would you like to limit what graphs are displayed? Enter partial matches (or$
    // $mygraphs = '#.*#'; // Match all graphs
    $mygraphs = '#(Ping|CPU load|CPU usage|CPU util|processor|Disk space|Swap|Ether$
    $myitemgraphs = '#(Utilization of|farm connection|Average Latency|Number of pro$
    
    
    # Temporary directory for storing pdf data and graphs - must exist
    $z_tmp_path = './tmp';
    # Directory for storing PDF reports
    $pdf_report_dir = './reports';
    # Root URL to reports
    #$pdf_report_url = $z_server ."report/reports";
    $pdf_report_url = "./reports";
    # paper settings
    $paper_format = 'A4'; // formats supported: 4A0, 2A0, A0 -> A10, B0 -> B10, C$
    $paper_orientation = 'portrait'; // formats supported: portrait / landscape
    # time zone - see http://php.net/manual/en/timezones.php
    $timezone = 'Asia/Singapore';
    # Logo used in PDF - may be empty
    # TODO: Specify image size!
    $pdf_logo = './images/general/zabbix.png';
    $company_name = 'YourCompany Name';
    
    //DO NOT CHANGE BELOW THIS LINE
    $z_tmp_cookies = "/tmp/";
    $z_url_index = $z_server ."index.php";
    $z_url_graph = $z_server ."chart2.php";
    $z_item_graph = $z_server ."chart.php";
    $z_url_api = $z_server ."api_jsonrpc.php";
    $z_login_data = "name=" .$z_user ."&password=" .$z_pass ."&autologin=1&enter=$
    ?>
    



    If the plugin not workable anymore, is there any other similar plugin or platform that could generate report ??
  • Answer selected by ultratech at 14-12-2021, 14:11.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    https://www.zabbix.lan/forum/zabbix-...page30?t=24998
    This thread says, it should work.

    Comment

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

      #2
      https://www.zabbix.lan/forum/zabbix-...page30?t=24998
      This thread says, it should work.

      Comment

      Working...