Ad Widget

Collapse

Automatically create Items?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marcel
    Senior Member
    Zabbix Certified Specialist
    • Oct 2010
    • 112

    #1

    Automatically create Items?

    Hi All, does anyone have any experience with automatically adding/creating items for host? For example, I do have many different hosts having many different mount points, however I would like to monitor every individual mountpoint separately - is there a way to automatically create items (and triggers) without using API? Is anyone soing this? I believe there is an interface for this in Nagios called check_mk (or one of the projects from the same author)

    Thank you,
    Marcel
    Zabbix Certified Specialist for Large Environments since 12/2010
  • chliu
    Junior Member
    • Jul 2010
    • 6

    #2
    Maybe you can use template for your request.

    Comment

    • marcel
      Senior Member
      Zabbix Certified Specialist
      • Oct 2010
      • 112

      #3
      No, templaet is not the way since you need to specifically define template items with static information, that is not good enough for me.

      Marcel
      Zabbix Certified Specialist for Large Environments since 12/2010

      Comment

      • nelsonab
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2006
        • 1233

        #4
        Originally posted by marcel
        Hi All, does anyone have any experience with automatically adding/creating items for host? For example, I do have many different hosts having many different mount points, however I would like to monitor every individual mountpoint separately - is there a way to automatically create items (and triggers) without using API? Is anyone soing this? I believe there is an interface for this in Nagios called check_mk (or one of the projects from the same author)

        Thank you,
        Marcel
        Check out 1.8.4rc2, that might have some of what you are looking for. Alternatively you could set up a host macro and then change the macro values per host and use the macro in place where you need that variable. Otherwise the API is going to be about the only way to make it work.
        RHCE, author of zbxapi
        Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
        Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

        Comment

        Working...