Ad Widget

Collapse

zabbix Cannot obtain filesystem information: [13] Permission denied

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CRSTLLV
    Junior Member
    • May 2019
    • 16

    #1

    zabbix Cannot obtain filesystem information: [13] Permission denied

    Hello. My zabbix server does not show used space for mounted drives, that are connected on the same machine as zabbix server runs. I understand the problem, but can't find the solution. I've tried these two options, but non of them helped:

    sudo chmod -R 775 drive_mounting_point
    sudo chown -R user:user drive_mounting_point

    Any other suggestion on how to solve this out? Thank you.

    Last edited by CRSTLLV; 01-09-2022, 21:47.
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    For the record, looks like you are using the vfs.fs.size key, which is the key of type Zabbix agent, which has nothing to do with Zabbix server. Anyways, it looks like SELinux issue. If you have it enabled, do you see a hint in /var/log/audit/audit.log?

    Comment


    • CRSTLLV
      CRSTLLV commented
      Editing a comment
      Correct. There is zabbix agent running.

      In my linux (ubuntu), i can't see the folder "audit" in this location /var/log/ :|
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #3
    AppArmor? Check the options how that filesystem is mounted, is there something suspicious?
    Code:
    mount | grep <mountpoint>

    Comment

    • dimir
      Zabbix developer
      • Apr 2011
      • 1080

      #4
      Doing
      sudo chmod -R 775 drive_mounting_point
      is not always the best option because by issuing that command you enable execute bit on all the files under that directory. You don't want an execute bit on a non-executable files.

      Comment

      • CRSTLLV
        Junior Member
        • May 2019
        • 16

        #5
        Originally posted by dimir
        AppArmor? Check the options how that filesystem is mounted, is there something suspicious?
        Code:
        mount | grep <mountpoint>

        mount | grep 10

        /var/lib/snapd/snaps/snapd_16010.snap on /snap/snapd/16010 type squashfs (ro,nodev,relatime,errors=continue,x-gdu.hide)

        tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=805268k,nr_inodes=2 01317,mode=700,uid=1000,gid=1000,inode64)

        /dev/sdd1 on /home/user/10 type ext4 (rw,relatime)


        To be honest, i have no idea what is suspicious here

        Comment

        • CRSTLLV
          Junior Member
          • May 2019
          • 16

          #6
          Originally posted by dimir
          Doing

          is not always the best option because by issuing that command you enable execute bit on all the files under that directory. You don't want an execute bit on a non-executable files.

          Thank you for the point. How do you suggest to change it, to make it correct? p.s. under that folder there is only data, there should be no executable files.

          Comment

          • dimir
            Zabbix developer
            • Apr 2011
            • 1080

            #7
            Where exactly does that "Permission denied" error come from?
            Last edited by dimir; 01-09-2022, 22:55.

            Comment

            • CRSTLLV
              Junior Member
              • May 2019
              • 16

              #8
              Originally posted by dimir
              Where exactly does that "Permission denied" error come from?
              Zabbix -> Monitoring -> Latest data



              Click image for larger version

Name:	Screenshot 2022-09-02 at 11.22.25.png
Views:	2982
Size:	136.6 KB
ID:	450865
              Attached Files

              Comment

              • dimir
                Zabbix developer
                • Apr 2011
                • 1080

                #9
                Can you do a
                Code:
                mount | grep /home/no
                ?

                Comment


                • CRSTLLV
                  CRSTLLV commented
                  Editing a comment
                  yeah. i did it and posted Yesterday, 22:41 scroll a little bit up

                • dimir
                  dimir commented
                  Editing a comment
                  That was a different one, different pattern.
              Working...