Ad Widget

Collapse

Creating two distinct net.if.discovery items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ortal
    Junior Member
    • May 2016
    • 2

    #1

    Creating two distinct net.if.discovery items

    Hi,

    How can I create two seperate instances of the same discovery key net.if.discovery:

    - one that will create items for all interfaces, such as bytes in, etc.
    - one that will create items only for physical interfaces (not for vlan interfac
    es) in order to monitor link status.

    Zabbix won't allow me to create two discoveries with the same key "net.if.discovery". Is there a workaround?

    Thanks,
    Or.
  • kaspars.mednis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2017
    • 349

    #2
    You can create your own discovery rules.... any script that returns valid JSON to zabbix will work.

    here is some examples
    At home, I'm using Zabbix to monitor my servers, it has plenty of interesting features and can be extended a lot by using User Parameter. In this post, I'm gonna talk about Low Level Discovery (LLD).



    Regards,
    Kaspars

    Comment

    • Pitons
      Member
      • Oct 2017
      • 49

      #3
      Hi ortal!

      You can by using Alias in agent configuration file

      Example:
      new line in agent conf (search for Advanced parameters):
      Code:
      Alias=[B]if_discovery[/B]:net.if.discovery
      restart agent process
      and then create new discovery rule for the host.
      As key use: if_discovery

      You may use any name there as far as it differs from built in ones.

      Regards,
      Pitons

      Comment

      Working...