notes:zabbix:certificate_monitoring
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| notes:zabbix:certificate_monitoring [2024/11/13 22:03] – created david | notes:zabbix:certificate_monitoring [2024/11/13 22:44] (current) – david | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| Certificate monitoring with Zabbix Agent 2 | Certificate monitoring with Zabbix Agent 2 | ||
| + | ===== Overview ===== | ||
| - Details for each individual FQDN are stored in json files. | - Details for each individual FQDN are stored in json files. | ||
| - each json file contains the following information | - each json file contains the following information | ||
| + | ==== json monitoring files ==== | ||
| < | < | ||
| { | { | ||
| Line 27: | Line 29: | ||
| - | setup | + | ===== setup ===== |
| - install jq to parse the json files , and Zabbix Agent 2 | - install jq to parse the json files , and Zabbix Agent 2 | ||
| - configure zabbix agent to allow ' | - configure zabbix agent to allow ' | ||
| Line 35: | Line 37: | ||
| - | - | ||
| - | + | ==== script ==== | |
| - | + | ||
| discover-certs.sh | discover-certs.sh | ||
| <code bash> | <code bash> | ||
| Line 48: | Line 48: | ||
| jq -s ' | jq -s ' | ||
| </ | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | an item "get hosts to monitor" | ||
| + | |||
| + | ==== Discovery ==== | ||
| + | For discovery: | ||
| + | - Create a discovery rule as a dependent item of "get hosts to monitor" | ||
| + | - preprocessing to create LLD macros | ||
| + | {# | ||
| + | {# | ||
| + | {# | ||
| + | {# | ||
| + | {#HOSTNAME} : $.hostname | ||
| + | {# | ||
| + | {#PORT} : $.port | ||
| + | | ||
| + | === Item prototypes === | ||
| + | Item prototypes | ||
| + | Item prototype 1 | ||
| + | Name: cert monitor for {# | ||
| + | |||
| + | === Trigger prototypes === | ||
| + | Trigger prototypes | ||
| + | |||
notes/zabbix/certificate_monitoring.1731553419.txt.gz · Last modified: by david
