Ad Widget

Collapse

Zabbix Dynamic PDF Report Generation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peter68
    Junior Member
    • Mar 2014
    • 4

    #331
    Hi,

    How can i report bandwith utilization on some ports? including my trigger with 95percentile ? Now i get something like this


    Interface ge-0/0/0.0 (id:1356) did not match the expression - skipping it.
    Interface ge-0/0/1 (id:1357) did not match the expression - skipping it.
    Interface ge-0/0/1.0 (id:1358) did not match the expression - skipping it.
    Interface ge-0/0/2 (id:1359) did not match the expression - skipping it.
    Interface ge-0/0/2.0 (id:1360) did not match the expression - skipping it.
    Interface ge-0/0/3 (id:1361) did not match the expression - skipping it.
    Interface ge-0/0/3.0 (id:1362) did not match the expression - skipping it.
    Interface ge-0/0/4 (id:1363) did not match the expression - skipping it.
    Interface ge-0/0/4.0 (id:1364) did not match the expression - skipping it.
    Interface ge-0/0/5 (id:1365) did not match the expression - skipping it.
    Interface ge-0/0/5.0 (id:1366) did not match the expression - skipping it.
    my config.inc.php:

    // What items would you like to see in the report? Things that do not match are excluded automatically.
    $items = array('system information'=>'string','uptime'=>'seconds', 'boot time'=>'datetime', 'total memory'=>'number', 'available memory'=>'number', 'Free disk space'=>'number', 'Free swap space in %'=>'number', 'version of zabbix_agent'=>'string', 'services'=>'string', 'update'=>'number','certificate'=>'string','advanc ed ntp'=>'string','Interface speed'=>'bits','Operational status'=>'updown','Alias of interface'=>'string');

    // Which items would you like to see overall statistics for over the selected period? Presently only avg is shown, but min and max could easily be added.
    $trends = array('ICMP ping'=>'updown','ICMP loss'=>'number', 'ICMP response'=>'ms', 'BatteryCharge'=>'number', 'Battery capacity'=>'number', 'voltage'=>'number', 'output power'=>'number', 'CPU Idle Time'=>'number', '15 min average'=>'number', 'Temp'=>'number', 'Watt'=>'number', 'uptime'=>'seconds','transactions per second'=>'number');

    // Would you like to limit what graphs are displayed? Enter partial matches (or complete names) here.
    // $mygraphs = '#.*#'; // Match all graphs
    $mygraphs = '#(Ping|CPU load|CPU usage|Disk space|Swap|Ethernet|Memory usage|on eth interface Interface|RE+FPC+LOAD)#';
    thanks for help

    Comment

    • jasiu1985
      Junior Member
      • Feb 2017
      • 1

      #332
      Automatically generate PDF once a week

      Hello,

      I'm new to this forum so please be understanding.

      I have some questions regarding this
      1) Is there a way directly from the add-on or Zabbix to make those reports generate automatically let's say once a week ?

      2) When I try to generate report for Host_group made of 50 hosts where some of them are already decomissioned (but still in AD) it gives this error :
      "502 - Web server received an invalid response while acting as a gateway or proxy server."

      For other host groups made of 10-15 hosts, from which everyone is online, this error doesn't show and PDF is generated perfectly.

      What could be the problem ?

      Thanks in advance for reply.

      jasiu1985

      Comment

      • Deniss.S
        Junior Member
        Zabbix Certified Specialist
        • May 2014
        • 10

        #333
        Can any one help me?

        I configured 0.9.4 version on Zabbix 3.2.3 and I do not see all Host/Host Groups?

        Is there any solution?

        Comment

        • chamrong
          Junior Member
          • May 2017
          • 1

          #334
          Hello, I would like to post issus zabbix_dynamic-pdf-report.v05

          hello guid!
          can you help me to solved the iss zabbix_dynamic-pdf-report.v05
          now it still show like this

          Comment

          • sgendron
            Junior Member
            • Jul 2017
            • 1

            #335
            Little problems with pdf report generator

            Hello everyone,


            I am new to this tread and I have one question for something I can't figure out myself and 1 problem.

            Is it possible to display pie chart graphics instead of normal graphics in the generator? From how I understood the dynamic pdf report it pulls out the custom graphs from a host or group of hosts and generate a pdf with them. But when I change a type of graphic it shows in the zabbix it doesn't change the result in the pdf. And I also found out that some where already in pie charts mode and still displays as normal in the report.

            The other thing is probably easier to answer. When I get the pdf some titles and and graphs gets separated because of missing space and get pushed to the next page. I just don't know how to tell the pdf generator to whether treat the graphs and the tittle as one item or to tell it to just push the tittle to the next page if the graph is on the other page. Or maybe to display only 2 graph per page that would probably fix it too.

            Comment

            • afjunior
              Junior Member
              • May 2013
              • 8

              #336
              Problem version 3.4

              Is it working properly on version 3.4 of Zabbix?
              I am using version 0.9.4 and after performing authentication the message appears

              Unable to logout: Array ([code] => -32602 [message] => Invalid params. [Date] => Invalid parameter "/": unexpected parameter "user".)

              I am reporting that version 3.2 is working correctly

              Comment

              • Michael_Gans
                Junior Member
                • Nov 2016
                • 3

                #337
                After upgrede 3.2 => 3.4 I have the same error

                Unable to logout: Array ([code] => -32602 [message] => Invalid params. [Date] => Invalid parameter "/": unexpected parameter "user".)

                Comment

                • matheuscunha
                  Junior Member
                  • Sep 2017
                  • 1

                  #338
                  Temporary Solution on Zabbix 3.4.1

                  Hello everyone,

                  I found a temporary solution to the problem on version 3.4.1 of Zabbix using a comment # from line 1319 to 1321 in /var/www/html/include/classes/api/services/CUser.php.

                  Follow here the current configuration of the file.

                  From line 1315 to 1324.
                  1315
                  1316 public function logout($user) {
                  1317 $api_input_rules = ['type' => API_OBJECT, 'fields' => []];
                  1318 if (!CApiInputValidator::validate($api_input_rules, $user, '/', $error))
                  1319 #{
                  1320 # self::exception(ZBX_API_ERROR_PARAMETERS, $error);
                  1321 # }
                  1322
                  1323 $sessionid = self::$userData['sessionid'];
                  1324

                  Kind Regards

                  Comment

                  • Michael_Gans
                    Junior Member
                    • Nov 2016
                    • 3

                    #339
                    Great work!
                    It worked for me, only the line numbers are not the same, but it's not the essence.

                    Originally posted by matheuscunha
                    Hello everyone,

                    I found a temporary solution to the problem on version 3.4.1 of Zabbix using a comment # from line 1319 to 1321 in /var/www/html/include/classes/api/services/CUser.php.

                    Follow here the current configuration of the file.

                    From line 1315 to 1324.
                    1315
                    1316 public function logout($user) {
                    1317 $api_input_rules = ['type' => API_OBJECT, 'fields' => []];
                    1318 if (!CApiInputValidator::validate($api_input_rules, $user, '/', $error))
                    1319 #{
                    1320 # self::exception(ZBX_API_ERROR_PARAMETERS, $error);
                    1321 # }
                    1322
                    1323 $sessionid = self::$userData['sessionid'];
                    1324

                    Kind Regards

                    Comment

                    • alexanderfoti
                      Junior Member
                      • Aug 2011
                      • 17

                      #340
                      Originally posted by jasiu1985
                      1) Is there a way directly from the add-on or Zabbix to make those reports generate automatically let's say once a week ?

                      jasiu1985
                      I am also interested in this. It can be done with cron but I have to figure out the URL that is generated on reports.

                      As an example a script that does:



                      Then obtain the ./reports/host.pdf report and send it via email (preferably via a smart host)

                      Comment

                      • martinm_76
                        Member
                        • Mar 2015
                        • 57

                        #341
                        Originally posted by peter68
                        Hi,

                        How can i report bandwith utilization on some ports? including my trigger with 95percentile ? Now i get something like this




                        my config.inc.php:



                        thanks for help
                        Hi Peter.

                        I am assuming the interfaces in your question are graphs, if not, correct me.

                        In your qouto $mygraphs is set to:

                        Code:
                        $mygraphs = '#(Ping|CPU load|CPU usage|Disk space|Swap|Ethernet|Memory usage|on eth interface Interface|RE+FPC+LOAD)#';
                        You would need to modify it to have a match for your interface names, like:

                        Code:
                        $mygraphs = '#(Ping|CPU load|CPU usage|Disk space|Swap|Ethernet|Memory usage|on eth interface Interface|RE+FPC+LOAD|Interface ge)#';
                        Or comment it and use the expression above that includes all graphs, which is often much more than you would want.

                        Comment

                        • mortiz
                          Junior Member
                          • Jan 2018
                          • 13

                          #342
                          Hi ppl, i install in to Zabiix 3.4 but its not working, error "The requested URL /zabbix/report/reports/server.pdf was not found on this server." whats wrong

                          Thx

                          Comment

                          • martinm_76
                            Member
                            • Mar 2015
                            • 57

                            #343
                            Originally posted by mortiz
                            Hi ppl, i install in to Zabiix 3.4 but its not working, error "The requested URL /zabbix/report/reports/server.pdf was not found on this server." whats wrong

                            Thx
                            I'm guessing you haven't allowed the web-process to write to the reports directory and possibly tmp as well.

                            Have you set them to 777 as I think I have outlined as the easy way to get it done? Also check your error logs for apache/httpd. I would expect you get some permission denied entries there.

                            Comment

                            • sukhdevjadhav
                              Junior Member
                              • Jan 2018
                              • 1

                              #344
                              It worked for me also

                              It worked for me also. Zabbix version 3.4.4.

                              Originally posted by matheuscunha
                              Hello everyone,

                              I found a temporary solution to the problem on version 3.4.1 of Zabbix using a comment # from line 1319 to 1321 in /var/www/html/include/classes/api/services/CUser.php.

                              Follow here the current configuration of the file.

                              From line 1315 to 1324.
                              1315
                              1316 public function logout($user) {
                              1317 $api_input_rules = ['type' => API_OBJECT, 'fields' => []];
                              1318 if (!CApiInputValidator::validate($api_input_rules, $user, '/', $error))
                              1319 #{
                              1320 # self::exception(ZBX_API_ERROR_PARAMETERS, $error);
                              1321 # }
                              1322
                              1323 $sessionid = self::$userData['sessionid'];
                              1324

                              Kind Regards

                              Comment

                              • Yeison Sacristan
                                Junior Member
                                • Jan 2018
                                • 1

                                #345
                                Originally posted by sukhdevjadhav
                                It worked for me also. Zabbix version 3.4.4.
                                sorry for my English

                                please tell me what operating system you are using, what instructions you followed for the installation and what version the API is using

                                since I had installed the zabbix 3.4.4 but I get an array error

                                Thank you

                                Comment

                                Working...