Ad Widget

Collapse

Help with Zabbix Discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dpeterson
    Junior Member
    • Apr 2014
    • 26

    #1

    Help with Zabbix Discovery

    Hello all, I am very new to Zabbix, but I have been configuring hosts and web monitoring with no issues thanks to great documentation.

    My issue is I am not able to configure Zabbix Discovery to monitor filesystems on a given host. I have through the entire Discovery documentation and I think I have found where I am having my issue.

    When issuing the following command "sudo zabbix_get -s <host> -p <port> -k vfs.fs.discovery" I am getting no output. From my understanding I should receive an output that is a JSON data structure.

    Any help would be greatly appreciated!
  • ArtemK
    Senior Member
    • May 2013
    • 232

    #2
    Hello,

    you are running zabbix_get on your zabbix server, which is configured as zabbix server on target system, right? Are other items works, for example "agent.ping"?

    Make sure, that agent config contains right server address.

    Comment

    • dpeterson
      Junior Member
      • Apr 2014
      • 26

      #3
      ~$ /usr/bin/zabbix_get -V
      Zabbix get v2.0.11 (revision 42526) (12 February 2014)
      Compilation time: Feb 12 2014 11:14:31


      I am able to receive information for the agent running on this server. But I am not able to receive any info via "vfs.fs.discovery".

      In the Zabbix UI I am receiving an error that says "Not supported by Zabbix agent". Here is the info on the agent I have installed:

      zabbix20-agent.x86_64 2.0.11-1.el6 @epel

      Comment

      • aib
        Senior Member
        • Jan 2014
        • 1615

        #4
        If you don't mind, show, please, the results of this commands
        Code:
        [zabbix_server]# zabbix_get -s <host> -k agent.ping
        [zabbix_server]# zabbix_get -s <host> -k vfs.fs.discovery
        [zabbix_server]# zabbix_get -s <host> -k net.if.discovery
        Sincerely yours,
        Aleksey

        Comment

        • dpeterson
          Junior Member
          • Apr 2014
          • 26

          #5
          Those recommended commands did not work for me. All of them returned an error. I was able to get the "vfs.fs.discovery" command to work by doing the following:

          PHP Code:
          zabbixserver:~$ zabbix_agentd -t vfs.fs.discovery
          vfs
          .fs.discovery                              [s|{
                
          "data":[
                  {
                          
          "{#FSNAME}":"\/",
                          
          "{#FSTYPE}":"rootfs"},
                  {
                          
          "{#FSNAME}":"\/proc",
                          
          "{#FSTYPE}":"proc"},
                  {
                          
          "{#FSNAME}":"\/sys",
                          
          "{#FSTYPE}":"sysfs"},
                  {
                          
          "{#FSNAME}":"\/dev",
                          
          "{#FSTYPE}":"devtmpfs"},
                  {
                          
          "{#FSNAME}":"\/dev\/pts",
                          
          "{#FSTYPE}":"devpts"},
                  {
                          
          "{#FSNAME}":"\/dev\/shm",
                          
          "{#FSTYPE}":"tmpfs"},
                  {
                          
          "{#FSNAME}":"\/",
                          
          "{#FSTYPE}":"ext4"},
                  {
                          
          "{#FSNAME}":"\/proc\/bus\/usb",
                          
          "{#FSTYPE}":"usbfs"},
                  {
                          
          "{#FSNAME}":"\/boot",
                          
          "{#FSTYPE}":"ext4"},
                  {
                          
          "{#FSNAME}":"\/sort",
                          
          "{#FSTYPE}":"ext4"},
                  {
                          
          "{#FSNAME}":"\/d424",
                          
          "{#FSTYPE}":"ext4"},
                  {
                          
          "{#FSNAME}":"\/proc\/sys\/fs\/binfmt_misc",
                          
          "{#FSTYPE}":"binfmt_misc"},
                  {
                          
          "{#FSNAME}":"\/var\/lib\/nfs\/rpc_pipefs",
                          
          "{#FSTYPE}":"rpc_pipefs"},
                  {
                          
          "{#FSNAME}":"\/mxhome",
                          
          "{#FSTYPE}":"nfs"},
                  {
                          
          "{#FSNAME}":"\/mxgit",
                          
          "{#FSTYPE}":"nfs"},
                  {
                          
          "{#FSNAME}":"\/mxapp",
                          
          "{#FSTYPE}":"nfs4"},
                  {
                          
          "{#FSNAME}":"\/mxout",
                          
          "{#FSTYPE}":"nfs4"},
                  {
                          
          "{#FSNAME}":"\/mxmodel",
                          
          "{#FSTYPE}":"nfs4"},
                  {
                          
          "{#FSNAME}":"\/stage",
                          
          "{#FSTYPE}":"nfs4"},
                  {
                          
          "{#FSNAME}":"\/members",
                          
          "{#FSTYPE}":"nfs4"},
                  {
                          
          "{#FSNAME}":"\/mem_archive",
                          
          "{#FSTYPE}":"nfs4"},
                  {
                          
          "{#FSNAME}":"\/output1",
                          
          "{#FSTYPE}":"nfs4"},
                  {
                          
          "{#FSNAME}":"\/stat1",
                          
          "{#FSTYPE}":"nfs4"},
                  {
                          
          "{#FSNAME}":"\/misc",
                          
          "{#FSTYPE}":"autofs"},
                  {
                          
          "{#FSNAME}":"\/net",
                          
          "{#FSTYPE}":"autofs"},
                  {
                          
          "{#FSNAME}":"\/contactstage",
                          
          "{#FSTYPE}":"nfs4"}]}] 

          Comment

          • aib
            Senior Member
            • Jan 2014
            • 1615

            #6
            I don't want to offend you, I just need the correct information from that command, may be including the content of zabbix_agent.log file from the <host>

            If you can get any data from agent itself and cannot get any data from zabbix server, it can be a network issue/firewall issue/selinux issue/etc.

            Please, be more specific when you say " did not work for me" - give a little bit more information
            Sincerely yours,
            Aleksey

            Comment

            • dpeterson
              Junior Member
              • Apr 2014
              • 26

              #7
              Originally posted by aib
              I don't want to offend you, I just need the correct information from that command, may be including the content of zabbix_agent.log file from the <host>

              If you can get any data from agent itself and cannot get any data from zabbix server, it can be a network issue/firewall issue/selinux issue/etc.

              Please, be more specific when you say " did not work for me" - give a little bit more information
              No offense taken Aib. I should have been more clear in my post. There is no error, the command simply does not return any result.

              However, I am now getting data. My issue was not having any regular expressions defined. :-) Thank you for the willingness to help!
              Last edited by dpeterson; 10-04-2014, 21:34.

              Comment

              • aib
                Senior Member
                • Jan 2014
                • 1615

                #8
                Good for you!
                I'm happy that you solved your problem by yourself.
                Sincerely yours,
                Aleksey

                Comment

                Working...