Ad Widget

Collapse

Scheduled Reports 5.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • joanaribeiro_erre
    Junior Member
    • Jul 2020
    • 25

    #1

    Scheduled Reports 5.4

    Hi guys, has anyone tried the new Scheduled Reports functionality?

    I tried to test it and got a:

    Report generating test failed.
    • Report manager is disabled.


    Anyone know what this is?

  • gofree
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2017
    • 400

    #2
    you need to start report writer process that will automatically start report manager process

    Comment


    • joanaribeiro_erre
      joanaribeiro_erre commented
      Editing a comment
      I'm sorry if i'm being a nuissance but now i'm getting the following error:

      Report generating test failed.
      The Frontend URL has not been configured

      I also added this parameter to the zabbix_server.conf, which was the other only one that i found on the .conf new items in the link that you sent

      ### Option: WebServiceURL
      # HTTP[S] URL to Zabbix web service in the format <hostort>/report.
      # For example: http://localhost:10053/report
      # This parameter is supported since Zabbix 5.4.0.
      #
      WebServiceURL=http://localhost:10055/reports



      Am i still missing something??
  • joanaribeiro_erre
    Junior Member
    • Jul 2020
    • 25

    #3
    Originally posted by gofree
    you need to start report writer process that will automatically start report manager process

    https://www.zabbix.com/documentation.../zabbix_server
    Thanks a lot!!

    Comment

    • gofree
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2017
      • 400

      #4
      Need to add url of your frontend in zabbix GUI.
      I guess it's section administration > general. Or somewhere there

      Comment

      • joanaribeiro_erre
        Junior Member
        • Jul 2020
        • 25

        #5
        I have it the macros section and still nothing..

        {$ZABBIX.URL} -> http://ZABBIX_IP/

        Comment

        • gofree
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Dec 2017
          • 400

          #6
          my memory failed me - its administration - general - other

          Click image for larger version

Name:	2021-05-17_19-11.png
Views:	11533
Size:	40.4 KB
ID:	424760

          Comment

          • gofree
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Dec 2017
            • 400

            #7
            At the end of the day don't forget to install google chrome on the host where zabbix web service is running. Maybe chromium will work to. It's in the docu also with one error that might emerge and how to solve it.
            Last edited by gofree; 17-05-2021, 20:05.

            Comment

            • joanaribeiro_erre
              Junior Member
              • Jul 2020
              • 25

              #8
              Thanks! And yeah just figured i also need zabbix web service installed!

              gonna have fun with this tomorrow

              Comment

              • orbital
                Senior Member
                • Dec 2019
                • 104

                #9
                Hi, I did everything as written here, but I get: Cannot connect to web service: couldn't connect to server

                Comment

                • wakeon
                  Junior Member
                  • Nov 2018
                  • 6

                  #10
                  Originally posted by orbital
                  Hi, I did everything as written here, but I get: Cannot connect to web service: couldn't connect to server
                  You need install zabbix-web-service-5.4.0-0.8rc2.el8.x86_64 and config on official manual

                  next configure service

                  systemctl enable zabbix-web-service
                  systemctl start zabbix-web-service

                  Click image for larger version

Name:	Снимок.PNG
Views:	11328
Size:	5.7 KB
ID:	425277

                  Comment


                  • orbital
                    orbital commented
                    Editing a comment
                    [root@appliance zabbix]# systemctl enable zabbix-web-service
                    Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-web-service.service → /usr/lib/systemd/system/zabbix-web-service.service.
                    [root@appliance zabbix]# systemctl start zabbix-web-service

                    zabbix-web-service not working

                  • joanaribeiro_erre
                    joanaribeiro_erre commented
                    Editing a comment
                    finally, an easy way!

                    now i'm getting this:

                    Cannot connect to web service: unsupported protocol

                  • orbital
                    orbital commented
                    Editing a comment
                    solved, thanks
                    Last edited by orbital; 25-05-2021, 11:34.
                • nessrinehafi
                  Junior Member
                  • May 2021
                  • 1

                  #11
                  Hello, I've followed all the instruction and when testing to generate the report i get 404 in the pdf i there anyone familiar ?

                  Comment

                • ElemondCraw
                  Junior Member
                  • May 2021
                  • 2

                  #12
                  Hello, I managed to make the report schedule working, however the PDF is completely empty. I am pretty sure I am taking a template with information in it. Could anyone help me out ?
                  Weekly_rapport_2021-05-28_15-29.pdf this is the pdf I am getting
                  Thanks

                  Comment


                  • rcardoza182
                    rcardoza182 commented
                    Editing a comment
                    i have the same issue, did you solve it?

                  • ElemondCraw
                    ElemondCraw commented
                    Editing a comment
                    Unfortunately not yet, I am still looking for a fix.

                  • salai
                    salai commented
                    Editing a comment
                    Have you had luck mate? I am with the same issue as well. another thing that i noted was the extra logging option not working either...DebugLevel=4. This is the web service configuration parameter.
                • MOnet
                  Junior Member
                  • Nov 2019
                  • 4

                  #13
                  We are trying to get this running with docker alpine images.
                  (I think the Problem there is that chrome/ium is not included.)
                  Edit: Seems to be included: https://github.com/zabbix/zabbix-doc...Dockerfile#L27


                  Has anyone got this running with docker and some hints on this?
                  Last edited by MOnet; 02-06-2021, 12:03.

                  Comment


                  • gofree
                    gofree commented
                    Editing a comment
                    whats your error anyway ? ill recheck my configuration and try to run the thing without external chrome container

                    Edit: I guess indeed it works and no external container needed - I just simply overlooked and just received a report from it


                    apiVersion: apps/v1
                    kind: Deployment
                    metadata:
                    name: zabbix-web-service
                    labels:
                    app: zabbix
                    tier: zabbix-web-service
                    namespace: zabbix-alpine-latest
                    spec:
                    replicas: 1
                    selector:
                    matchLabels:
                    app: zabbix
                    name : zabbix-web-service
                    template:
                    metadata:
                    labels:
                    name: zabbix-web-service
                    app: zabbix
                    spec:
                    containers:
                    - name: zabbix-web-service
                    image: zabbix/zabbix-web-service:alpine-latest
                    imagePullPolicy: Always
                    securityContext:
                    capabilities:
                    add: ["SYS_ADMIN"]
                    ports:
                    - containerPort: 10053
                    protocol: TCP
                    name: z-web-service
                    env:
                    - name: ZBX_ALLOWEDIP
                    value: "0.0.0.0/0"
                    - name: ZBX_LISTENPORT
                    value: "10053"
                    - name: ZBX_TIMEOUT
                    value: "30"
                    Last edited by gofree; 02-06-2021, 12:41.

                  • MOnet
                    MOnet commented
                    Editing a comment
                    gofree we see this in the logs:
                    zabbix-web-service.XXX.xy.docker | 2021/07/02 08:07:18.334612 starting Zabbix web service
                    zabbix-web-service.XXX.xy.docker | 2021/07/02 08:08:13.694569 received report request from 172.28.0.4:28956
                    zabbix-web-service.XXX.xy.docker | 2021/07/02 08:08:13.697011 making chrome headless request with parameters url: http://zabbix.XX.xy/zabbix.php?actio...2000%3A00%3A00, width: 1920, height: 712 for report request from 172.28.0.4:28956
                    zabbix-web-service.XXX.xy.docker | 2021/07/02 08:10:25.805406 writing response for report request from 172.28.0.4:28956

                    As you can see, the generation takes very long (2 min). We see a turning wheel in the webinterface if we hit "test" even after the 2 min.
                    No error is thrown.

                  • gofree
                    gofree commented
                    Editing a comment
                    just thinking in a free minute - how big is the inteneded report and how long in the history are the values collected - I had to increase timeout paramter in some of my reports from this reason - I guess it takes time based on the data flow and performance


                    ZBX_TIMEOUT
                    The variable is used to specify timeout for processing requests. By default, value is 3

                    Im still say that reports are marked as experimanetal so we'll see final design in version 6
                • dilan bandara
                  Junior Member
                  • Mar 2021
                  • 7

                  #14
                  Hi Guys,

                  Same things we have tried out in our zabbix environment. But once all configuration completed, It giving below error, Anyone familiar for below error, Please guide us.


                  Cannot fetch data: exec: "google-chrome": executable file not found in $PATH.
                  Attached Files

                  Comment

                • donkus
                  Junior Member
                  • Jun 2021
                  • 3

                  #15
                  i have still get error on zabbix even though I have installed zabbix-web-service.

                  Report generating test failed.
                  Report manager is disabled.



                  status zabbix-web-service on server

                  root@Zabbix2-CE:~# service zabbix-web-service status
                  ● zabbix-web-service.service - Zabbix Web Service
                  Loaded: loaded (/lib/systemd/system/zabbix-web-service.service; enabled; vendor preset: enabled)
                  Active: active (running) since Thu 2021-06-03 10:58:52 WIB; 5min ago
                  Main PID: 47054 (zabbix_web_serv)
                  Tasks: 8 (limit: 19078)
                  Memory: 1.7M
                  CGroup: /system.slice/zabbix-web-service.service
                  └─47054 /usr/sbin/zabbix_web_service -c /etc/zabbix/zabbix_web_service.conf


                  any suggestions for this problem?

                  Comment


                  • gofree
                    gofree commented
                    Editing a comment
                    check second post in this thread
                Working...