User Tools

Site Tools


notes:zabbix:certificate_monitoring

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
notes:zabbix:certificate_monitoring [2024/11/13 22:03] – created davidnotes: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 ====
 <code> <code>
 { {
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 'system.run[]'   - configure zabbix agent to allow 'system.run[]'
Line 35: Line 37:
   -    - 
  
- +==== script ====
- +
 discover-certs.sh discover-certs.sh
 <code bash> <code bash>
Line 48: Line 48:
 jq -s '.' "${DIR}"/*.json jq -s '.' "${DIR}"/*.json
 </code> </code>
 +
 +
 +
 +
 +
 +an item "get hosts to monitor" that will gather the json files ( tag: Application: Certificate Monitoring Discovery)
 +
 +==== Discovery ====
 +For discovery:
 +  - Create a discovery rule as a dependent item of "get hosts to monitor"
 +  - preprocessing to create LLD macros
 +  {#CERT_EXPIRY_CRITICAL_DAYS} : $.critical_days
 +  {#CERT_EXPIRY_WARNING_DAYS} : $.warning_days
 +  {#CONTACT_INFO} : $.contact
 +  {#CRITICAL_DAYS} : $.critical_days
 +  {#HOSTNAME} : $.hostname
 +  {#IP_ADDRESS} : $.ip_address
 +  {#PORT} : $.port
 +  
 +=== Item prototypes ===
 +Item prototypes
 +Item prototype 1
 +  Name:  cert monitor for {#HOSTNAME}:{#PORT} {#IP_ADDRESS}
 +
 +=== Trigger prototypes ===
 +Trigger prototypes
 +
notes/zabbix/certificate_monitoring.1731553419.txt.gz · Last modified: by david