Ad Widget

Collapse

Zbx_notsupported

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • akbar415
    Senior Member
    • May 2015
    • 119

    #1

    Zbx_notsupported

    Hi.

    I configured this item on zabbix
    vfs.file.cksum[/opt/scripts/log_rsync/rsync_joomla.log]
    and
    vfs.file.md5sum[/opt/scripts/log_rsync/rsync_joomla.log]

    Both are active check and I receive the same error message ZBX_NOTSUPPORTED.

    Server Log:
    item "server12:vfs.file.cksum[/opt/scripts/log_rsync/rsync_joomla.log]" became not supported: ZBX_NOTSUPPORTED
    item "server12:vfs.file.md5sum[/opt/scripts/log_rsync/rsync_joomla.log]" became not supported: Not supported by Zabbix Agent

    Agent Log:
    active check "vfs.file.cksum[/opt/scripts/log_rsync/rsync_joomla.log]" is not supported
    active check "vfs.file.md5sum[/opt/scripts/log_rsync/rsync_joomla.log]" is not supported

    Agent version: 2.2.1

    The file has "read" permission fo zabbix user.

    If i try make the same in other system file (/etc/passwd) works fine.

    What I'm doing wrong?
    Last edited by akbar415; 16-06-2015, 18:29. Reason: SOLVED
  • zabbixx
    Member
    • Jul 2012
    • 71

    #2
    Originally posted by akbar415
    Hi.

    I configured this item on zabbix
    vfs.file.cksum[/opt/scripts/log_rsync/rsync_joomla.log]
    and
    vfs.file.md5sum[/opt/scripts/log_rsync/rsync_joomla.log]

    Both are active check and I receive the same error message ZBX_NOTSUPPORTED.

    Server Log:
    item "server12:vfs.file.cksum[/opt/scripts/log_rsync/rsync_joomla.log]" became not supported: ZBX_NOTSUPPORTED
    item "server12:vfs.file.md5sum[/opt/scripts/log_rsync/rsync_joomla.log]" became not supported: Not supported by Zabbix Agent

    Agent Log:
    active check "vfs.file.cksum[/opt/scripts/log_rsync/rsync_joomla.log]" is not supported
    active check "vfs.file.md5sum[/opt/scripts/log_rsync/rsync_joomla.log]" is not supported

    Agent version: 2.2.1

    The file has "read" permission fo zabbix user.

    If i try make the same in other system file (/etc/passwd) works fine.

    What I'm doing wrong?
    Hello akbar415,
    do you have acces to the zabbix server shel ?
    try to debug this whit zabbix_get !!!!

    Code:
    zabbix_get --help
    Code:
    zabbix_get -s CLIENT_IP -k COMANND
    so you get output if it works...

    you can try to browse the directory (chek if you have permissions)


    did you enable the execution of commands in the zabbix client configuration ?

    Comment

    • akbar415
      Senior Member
      • May 2015
      • 119

      #3
      Thanks for the answer.


      I already used the zabbix_get and returned me the same error message.

      I double checked the permissions and found nothing.
      I also checked selinux.


      The only thing I discovery:
      No checks work in a specific folder.
      So I just move all the files to another folder and works.


      Sorry for the bad englsih. Still learning.

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        Have you been confirmed that there is a permission of "each directory" to the file?

        Please try to move the mouse pointer to the right of the red icon to display a list of items in the host.

        Comment

        • akbar415
          Senior Member
          • May 2015
          • 119

          #5
          Originally posted by Atsushi
          Have you been confirmed that there is a permission of "each directory" to the file?

          Please try to move the mouse pointer to the right of the red icon to display a list of items in the host.
          Yes. I checked the full path of the folder where the file is.
          Eg
          /opt/folderA/folderB/file
          I checked the permissions in /opt, /opt/folderA/, /opt/folderB ...
          Everthing is ok with permissions.
          The red icon just say zbx_notsupported

          Comment

          • BDiE8VNy
            Senior Member
            • Apr 2010
            • 680

            #6
            What's the output of this command issued by user 'root' on the host the agent resides on?
            Code:
            /usr/bin/sudo -u zabbix /usr/bin/file /opt/scripts/log_rsync/rsync_joomla.log

            Comment

            • akbar415
              Senior Member
              • May 2015
              • 119

              #7
              Originally posted by BDiE8VNy
              What's the output of this command issued by user 'root' on the host the agent resides on?
              Code:
              /usr/bin/sudo -u zabbix /usr/bin/file /opt/scripts/log_rsync/rsync_joomla.log
              Code:
              /opt/scripts/log_rsync/rsync_joomla.log: ASCII text

              Comment

              • BDiE8VNy
                Senior Member
                • Apr 2010
                • 680

                #8
                Okay. Then try this next, please:

                Code:
                /usr/bin/sudo -u zabbix /usr/sbin/zabbix_agentd -t 'vfs.file.md5sum[/opt/scripts/log_rsync/rsync_joomla.log]'

                Comment

                • akbar415
                  Senior Member
                  • May 2015
                  • 119

                  #9
                  Originally posted by BDiE8VNy
                  Okay. Then try this next, please:

                  Code:
                  /usr/bin/sudo -u zabbix /usr/sbin/zabbix_agentd -t 'vfs.file.md5sum[/opt/scripts/log_rsync/rsync_joomla.log]'
                  I found the problem.


                  In one folder, the sgid was enabled.

                  There no need of sgid, so I disable, after that, works like a charm.

                  Thanks for the help

                  Comment

                  Working...