Ad Widget

Collapse

Add several items with different parameters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • guardian_de
    Junior Member
    • Apr 2020
    • 4

    #1

    Add several items with different parameters

    Hi,

    I'm a complete newbie so please bear with me...

    I have to monitor the validity of certificates of a number of external services (web, mail, IMAP, ...). I use user parameters of my agents for that:

    Code:
    UserParameter=ssl_cert_check_valid[*], /custom/zabbix/bin/ssl_cert_check.sh valid "$1" "$2" "$3" "$4"
    UserParameter=ssl_cert_check_expire[*], /custom/zabbix/bin/ssl_cert_check.sh expire "$1" "$2" "$3" "$4"
    I can associate the user parameter query with an item and a trigger to monitor the certificates and alarm me as needed. But I don't want to do the exercise of creating an item and a trigger for each service that I have to monitor.

    What would be the best way to create the item and trigger for each service just by specifying the hostname?
  • guardian_de
    Junior Member
    • Apr 2020
    • 4

    #2
    To answer my own question - low-level discovery is the way to go. https://blog.zabbix.com/a-journey-of-discovery/11444/

    Comment

    Working...