Hello,
I'm a Zabbix newbie and I need advice about how to configure hosts/templates/items/triggers to handle this case.
Letsencrypt issues tls certificates to some hosts and ports.
I have an script that tests the certificates for correctness and validity; if all is OK, it will send a host/key/value of the validity to zabbix trapper.
Many hosts have the certificates installed in different ports, example: 443, 993, 25, 587. I can have different trapper keys with port names, example keytlsvalid443, keytlsvalid993, ...
I'd like to use 3 triggers for every item:
- "warn" if valid <14 days
- "average" if valid <5 days
- "warn" if nodata() for the last 12hours
How can I create the templates in a way that I can "apply" them to every item in a specific host? I noticed that templates can be assigned to hosts, not to items. Any way to create a template with some "variable" to match that?
It seems that my "working design" is not matching Zabbix...
Any ideas? Any specific manual to read about that? Using 6.0.13
Thanks in advance,
I'm a Zabbix newbie and I need advice about how to configure hosts/templates/items/triggers to handle this case.
Letsencrypt issues tls certificates to some hosts and ports.
I have an script that tests the certificates for correctness and validity; if all is OK, it will send a host/key/value of the validity to zabbix trapper.
Many hosts have the certificates installed in different ports, example: 443, 993, 25, 587. I can have different trapper keys with port names, example keytlsvalid443, keytlsvalid993, ...
I'd like to use 3 triggers for every item:
- "warn" if valid <14 days
- "average" if valid <5 days
- "warn" if nodata() for the last 12hours
How can I create the templates in a way that I can "apply" them to every item in a specific host? I noticed that templates can be assigned to hosts, not to items. Any way to create a template with some "variable" to match that?
It seems that my "working design" is not matching Zabbix...
Any ideas? Any specific manual to read about that? Using 6.0.13
Thanks in advance,
Comment