Ad Widget

Collapse

Server says not supported but agent returns value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vj88
    Junior Member
    • Apr 2013
    • 7

    #1

    Server says not supported but agent returns value

    Hi,

    I'm trying to get the value of space free (in percentage) of a scsi mount point.
    The key i'm using is "vfs.fs.size[/home/backup/database.backups,pfree]" (without the quotes)
    Now if i run "zabbix_agent -t vfs.fs.size[/home/backup/database.backups,pfree]"
    I get "vfs.fs.size[/home/backup/database.backups,pfree] [d|84.001203]" on the host.

    But if i run the zabbix_get variant t on the server i get ZBX_NOTSUPPORTED

    The server is version 2.0.5 and the agent is 2.0.4.

    Any help on what is going on.

    Thanks
  • neogan
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2011
    • 118

    #2
    Originally posted by vj88
    Hi,

    I'm trying to get the value of space free (in percentage) of a scsi mount point.
    The key i'm using is "vfs.fs.size[/home/backup/database.backups,pfree]" (without the quotes)
    Now if i run "zabbix_agent -t vfs.fs.size[/home/backup/database.backups,pfree]"
    I get "vfs.fs.size[/home/backup/database.backups,pfree] [d|84.001203]" on the host.

    But if i run the zabbix_get variant t on the server i get ZBX_NOTSUPPORTED

    The server is version 2.0.5 and the agent is 2.0.4.

    Any help on what is going on.

    Thanks
    Please , post in this tread output of both commands(and from client and from server):
    Code:
    zabbix_get -s YOUR_HOST -k vfs.fs.size[/home/backup/database.backups,pfree]
    zabbix_agent -t vfs.fs.size[/home/backup/database.backups,pfree]
    Also check in your zabbix_agentd.conf option Server

    Comment

    • vj88
      Junior Member
      • Apr 2013
      • 7

      #3
      Client:
      Command: zabbix_agent -t vfs.fs.size[/home/backup/database.backups,pfree]
      Result: vfs.fs.size[/home/backup/database.backups,pfree] [d|83.309983]

      Server:
      Command: zabbix_get -s 192.168.0.199 -k vfs.fs.size[/home/backup/database.backups,pfree]
      Result: ZBX_NOTSUPPORTED

      I checked the server config and all the ip addresses are pointing to the correct location. Plus i don't believe that would be the issue as there is a lot of other things that the agent is sending the server. So other items are all fine. Its just this one item that is not getting data.

      Comment

      • vj88
        Junior Member
        • Apr 2013
        • 7

        #4
        So..... Nothing then.

        Comment

        • neogan
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2011
          • 118

          #5
          What in your zabbix_agent.log In Debug=4 when you get vfs.fs.size[/home/backup/database.backups,pfree] key?

          Comment

          • vj88
            Junior Member
            • Apr 2013
            • 7

            #6
            Ok, here are the results from the log file

            3490:20130502:123226.745 Requested [vfs.fs.size[/home/backup/database.backups,pfree]]
            3490:20130502:123226.745 Sending back [ZBX_NOTSUPPORTED]

            Which is weird cause if i run zabbix_agent -t vfs.fs.size[/home/backup/database.backups,pfree] which i copied and pasted from the log, i get the correct info.

            Comment

            • Heilig
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Mar 2013
              • 366

              #7
              Try running this command from a user under which the zabbix agent runs.

              Comment

              • vj88
                Junior Member
                • Apr 2013
                • 7

                #8
                Originally posted by Heilig
                Try running this command from a user under which the zabbix agent runs.
                Ok that actually provided the same error (the "zbx_notsupported" error) on the agent when run under the zabbix user. Ok so its a problem with the permissions. Except I don't know what permissions the zabbix user actually needs to get this info.

                Thanks

                Comment

                • neogan
                  Senior Member
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Sep 2011
                  • 118

                  #9
                  What OS do you use?

                  Comment

                  • vj88
                    Junior Member
                    • Apr 2013
                    • 7

                    #10
                    That particular box, Linux.

                    Comment

                    • neogan
                      Senior Member
                      Zabbix Certified Trainer
                      Zabbix Certified SpecialistZabbix Certified Professional
                      • Sep 2011
                      • 118

                      #11
                      Could you show me
                      ls -al /home/backup/database.backups

                      Comment

                      • sean
                        Junior Member
                        • Mar 2008
                        • 28

                        #12
                        Configure sudo so that the zabbix user can execute your script as root, then prefix the command with sudo

                        Comment

                        • vj88
                          Junior Member
                          • Apr 2013
                          • 7

                          #13
                          Ok I'v got it working now. I just gave the folders 755 permission and now the zabbix user (aka the zabbix agent) can now get the required information.

                          Thanks

                          Comment

                          Working...