Ad Widget

Collapse

zabbix 2.4 graph not showing all interfaces

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tomindo
    Junior Member
    • Feb 2016
    • 7

    #1

    zabbix 2.4 graph not showing all interfaces

    HI guys,

    I ran this from zabbix server, there is the output
    zabbix_get -s 192.168.16.237 -k net.if.discovery
    {"data":[{"{#IFNAME}":"lo"},{"{#IFNAME}":"eth0"},{"{#IFNAME }":"eth1"}]}

    but it only shows graph for lo

    I have reduced the network discovery to 1 seconds but not luck

    any idea?

    Thanks
    Mike
  • Firm
    Senior Member
    • Dec 2009
    • 342

    #2
    Check if metrics were created and data are collected.

    Comment

    • tomindo
      Junior Member
      • Feb 2016
      • 7

      #3
      Hi
      Can you tell me how to check if metrics were created and data are collected.

      Thanks

      Comment

      • Firm
        Senior Member
        • Dec 2009
        • 342

        #4
        Discovery rule should create metrics for interfaces it discovered. Check in Latest data if metrics emerged.

        Comment

        • tomindo
          Junior Member
          • Feb 2016
          • 7

          #5
          there is no key_: net.if.in[eth0] and data in database but lo loopback.

          Data for eth0 and eth1 got deleted somehow , it was working fine before.

          any other ideas ? or how to rebuild the database ?
          thanks

          Comment

          • Firm
            Senior Member
            • Dec 2009
            • 342

            #6
            Try to unlink template and attach it again.

            Comment

            • tomindo
              Junior Member
              • Feb 2016
              • 7

              #7
              I have tried that, even added new host but it only shows lo interface.
              any other ideas ?
              thanks

              Comment

              • tomindo
                Junior Member
                • Feb 2016
                • 7

                #8
                the log shows zabbix server still collects data for other interfaces but it just dont show up on the UI .

                6026:20160302:111856.323 get value from agent result: '{"data":[{"{#IFNAME}":"lo"},{"{#IFNAME}":"eth0"},{"{#IFNAME }":"eth1"},{"{#IFNAME}":"eth2"},{"{#IFNAME}":"eth3 "}]}'
                6023:20160302:111856.323 In lld_make_item()
                6026:20160302:111856.323 End of get_value_agent():SUCCEED
                6023:20160302:111856.323 In substitute_key_macros() data:'net.if.in[{#IFNAME}]'
                6026:20160302:111856.323 End of get_value():SUCCEED
                6023:20160302:111856.323 In substitute_discovery_macros() data:'{#IFNAME}'
                6026:20160302:111856.323 In activate_host() hostid:10126 itemid:25778 type:0
                6023:20160302:111856.323 End of substitute_discovery_macros():SUCCEED data:'lo'
                6026:20160302:111856.323 End of activate_host()
                6023:20160302:111856.323 End of substitute_key_macros():SUCCEED data:'net.if.in[lo]'
                6026:20160302:111856.323 In lld_process_discovery_rule() itemid:25778
                6023:20160302:111856.323 In substitute_discovery_macros() data:'Incoming network traffic on $1'
                6026:20160302:111856.323 query [txnlev:0] [select hostid,key_,state,evaltype,formula,error,lifetime from items where itemid=25778]
                6023:20160302:111856.323 End of substitute_discovery_macros():SUCCEED data:'Incoming network traffic on $1'

                Comment

                • Firm
                  Senior Member
                  • Dec 2009
                  • 342

                  #9
                  Check Filter tab in discovery rule.

                  Comment

                  • tomindo
                    Junior Member
                    • Feb 2016
                    • 7

                    #10
                    This is what the filter looks like

                    Macro Regular Expression
                    {#IFNAME} @Network interfaces for discovery

                    This is default value I think

                    thanks

                    Comment

                    • Firm
                      Senior Member
                      • Dec 2009
                      • 342

                      #11
                      Try to remove filter and check what happens.

                      Comment

                      • tomindo
                        Junior Member
                        • Feb 2016
                        • 7

                        #12
                        ah that did the tricks. All interfaces show now
                        thanks

                        Comment

                        Working...