Ad Widget

Collapse

Script with Item and Trigger Creation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • johnsonq
    Junior Member
    • Feb 2020
    • 2

    #1

    Script with Item and Trigger Creation

    Zabbix Server and Agent 5.0.5
    Ubuntu 16.04

    I currently have a script that will provide me the amount of days before expiration of the SSL certificates on my web servers.

    system.run[/home/zabbix/checkssl.sh web.domain.local]

    I am trying to understand if there is an easier way to not have to create multiple items and triggers for each web server instance I want to monitor and provide me the name of the server that is nearing expiration?

    My coding knowledge is very basic and I was thinking maybe macros would help? But I honestly just don't know...
  • johnsonq
    Junior Member
    • Feb 2020
    • 2

    #2
    Anyone? Any help would be greatly appreciated

    Comment

    • Hamardaban
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • May 2019
      • 2713

      #3
      You can use LLD https://www.zabbix.com/documentation...evel_discovery
      In it, you get a list of your domains and create an item and a corresponding trigger for each domain.
      How do I get a list of domains? There are various possibilities - but they are somehow related to coding...

      Comment

      Working...