Ad Widget

Collapse

Assets cache directory is not writable.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kisters
    Junior Member
    • Jan 2006
    • 7

    #16
    I ran into the same problems with CentOS 7 and Zabbix 4.0.8 today.
    This fixed it for me:

    chown -R apache:apache /usr/share/zabbix/assets/
    cd /usr/share/zabbix/assets/fonts
    ln -s /usr/share/zabbix/fonts/graphfont.ttf graphfont.ttf
    ln -s /usr/share/fonts/dejavu/DejaVuSans.ttf zabbix-web-font

    Comment

    • iluha
      Junior Member
      • May 2019
      • 1

      #17
      My fix for Zabbix 4.0.8 on CentOS7 was to change owner and set SELinux context for /usr/share/zabbix/assets/:

      chown -R apache:apache /usr/share/zabbix/assets/
      semanage fcontext -a -t httpd_sys_rw_content_t '/usr/share/zabbix/assets'
      restorecon -vvR /usr/share/zabbix/assets

      Comment

      • efisher
        Junior Member
        • May 2019
        • 2

        #18
        Originally posted by kisters
        I ran into the same problems with CentOS 7 and Zabbix 4.0.8 today.
        This fixed it for me:

        chown -R apache:apache /usr/share/zabbix/assets/
        cd /usr/share/zabbix/assets/fonts
        ln -s /usr/share/zabbix/fonts/graphfont.ttf graphfont.ttf
        ln -s /usr/share/fonts/dejavu/DejaVuSans.ttf zabbix-web-font
        Perfect advice. This worked for me.

        Comment

        • wts_tim
          Junior Member
          • May 2019
          • 5

          #19
          Thanks for the assistance, this is how i fixed my original issue in the end, mustapha.aisssat posted this on another thread

          On CentOS 7, I fix this issue by adding RW permission to apache by :
          # setfacl -d -m apache:rwX /usr/share/zabbix/assets/
          # setfacl -R -m apache:rwX /usr/share/zabbix/assets/

          and Selinux problems by :
          # semanage fcontext -a -t httpd_sys_rw_content_t "/usr/share/zabbix/assets(/.*)?"
          # restorecon -R /usr/share/zabbix/assets

          And then this fixed the missing fonts on the graph.

          Originally posted by kisters
          I ran into the same problems with CentOS 7 and Zabbix 4.0.8 today.
          This fixed it for me:

          chown -R apache:apache /usr/share/zabbix/assets/
          cd /usr/share/zabbix/assets/fonts
          ln -s /usr/share/zabbix/fonts/graphfont.ttf graphfont.ttf
          ln -s /usr/share/fonts/dejavu/DejaVuSans.ttf zabbix-web-font
          Thanks!

          Comment

          • v-63fcav
            Junior Member
            • May 2019
            • 1

            #20
            Guys, unfortunately, this haven't solved my fonts, even though the advice given to change the folder permission solved the login problem.

            I can't see nothing in the logs, and the file links were created succesfully, but no legends. Could you please point me at the right direction?

            Originally posted by wts_tim
            Thanks for the assistance, this is how i fixed my original issue in the end, mustapha.aisssat posted this on another thread

            On CentOS 7, I fix this issue by adding RW permission to apache by :
            # setfacl -d -m apache:rwX /usr/share/zabbix/assets/
            # setfacl -R -m apache:rwX /usr/share/zabbix/assets/

            and Selinux problems by :
            # semanage fcontext -a -t httpd_sys_rw_content_t "/usr/share/zabbix/assets(/.*)?"
            # restorecon -R /usr/share/zabbix/assets

            And then this fixed the missing fonts on the graph.

            chown -R apache:apache /usr/share/zabbix/assets/
            cd /usr/share/zabbix/assets/fonts
            ln -s /usr/share/zabbix/fonts/graphfont.ttf graphfont.ttf
            ln -s /usr/share/fonts/dejavu/DejaVuSans.ttf zabbix-web-font

            Thanks!

            Comment

            • taken
              Junior Member
              • May 2015
              • 15

              #21
              FIX for Debian 9 + Zabbix 4.0.8:

              chown www-data:www-data /usr/share/zabbix/assets/
              cd /usr/share/zabbix/assets/fonts
              ln -s /usr/share/zabbix/fonts/graphfont.ttf graphfont.ttf


              Best Regards
              TaKeN

              Comment

              • Gsmith
                Member
                • Mar 2015
                • 56

                #22
                @kisters
                That also worked for me, Thanks

                Comment

                • Andrey123987456
                  Member
                  • Apr 2019
                  • 44

                  #23

                  Good day to all! Help me please. I had a problem with the trigger, there is a network node, when it is working the trigger is normal, when it disappears from the network it signals the problem to me. {Obnaruhenie Mikrotik: icmppingsec.last ()} = 0. And I need to do that the trigger would not react immediately, but if the network node is not in the network for more than 5 hours. how to do it, I do not understand. I tried to play with count and nodata, but it doesn't work. Now I have come to this decision, but it also does not work correctly {Obnaruhenie Mikrotik: icmpping.max (18000)} = 0

                  Comment

                  • Andrey123987456
                    Member
                    • Apr 2019
                    • 44

                    #24

                    Good day! Faced such a problem. It is necessary from zabbix to connect directly to the winbox (as in the dude). Climbed the entire Internet, did not find anything. Can you please help in this matter?

                    Comment

                    Working...