https-ssl-cert-check-zabbix icon indicating copy to clipboard operation
https-ssl-cert-check-zabbix copied to clipboard

Updated templates to fix issue with Unsupported Key Item error

Open astrugatch opened this issue 1 year ago • 3 comments

Current template causes Unsupported Key Item error when following README instructions. I've updated the file locations recommended to match resolutions in several issue threads.

astrugatch avatar Nov 11 '24 14:11 astrugatch

Nice catch!

But I don't like the idea of placing executable script somewhere in zabbix configs directory. First, <something>.d usually means that everything inside is included in resulting config, second, the script may be used without zabbix too.

I suggest not to change userparameters, but to add this line for basic and advanced templates in zabbix_integration_examples/README.md:

  • copy ssl_cert_check.sh file into /usr/local/bin on host

selivan avatar Nov 11 '24 14:11 selivan

I was running into an issue where if the script was in /usr/local/bin I received an Unsupported Key Item error in Zabbix when it tried to run discovery. The resolution for me was the same as found in https://github.com/selivan/https-ssl-cert-check-zabbix/issues/47 to move the file to the .d location. Not sure if there is a better spot for it to still function as expected.

astrugatch avatar Nov 11 '24 16:11 astrugatch

Weird. Either /usr/local/bin was not in PATH or zabbix user did not have access to that path or to the script(wrong permissions), or something like AppArmor/SELinux did not allow that.

Then let's write it like that:

  • copy ssl_cert_check.sh file into /usr/local/bin on host (note: make sure that zabbix user can execute the script)

selivan avatar Nov 11 '24 16:11 selivan