I'm trying to set up monitoring with three templates that talk to the version 2 agent on Linux. I have installed packages from the Zabbix Ubuntu repository on Ubuntu Server 20.04.
MySQL by Zabbix agent 2
SMART by Zabbix agent 2
Website certificate by Zabbix agent 2
I did manage to get the MySQL one working after a lot of head-scratching, but the other two are being problematic. The third template is one that I downloaded from the zabbix website, the others came preinstalled.
For the third template, when I look at the items, "Cert: Get" shows not supported, with message "Unknown metric web.certificate.get"
For the second template, "SMART: Get attributes" says it's not supported, with message "Failed to scan for devices: Cannot unmarshal JSON: invalid character 's' looking for beginning of value.."
The third template's error sounds like the WebCertificate plugin is not installed in my zabbix agent, which is weird because the docs say that plugin is enabled out of the box. The second template's error is completely mystifying. I did notice that I got a ton of alerts from my server saying that the zabbix user was trying to use sudo to run smartctl, which was blocked. I added a file to /etc/sudoers.d to fix that, but it didn't help.
I don't see "web.certificate.get" or "WebCertificate" anywhere in the zabbix source code, so maybe the docs saying that plugin is available out of the box are incorrect.
Does anyone have ideas for getting this working, or at least for further troubleshooting steps?
I ran "jsonlint-php" on the output of "smartctl --scan -j" (the command my security alerts say was being denied) and it says it's valid json.
MySQL by Zabbix agent 2
SMART by Zabbix agent 2
Website certificate by Zabbix agent 2
I did manage to get the MySQL one working after a lot of head-scratching, but the other two are being problematic. The third template is one that I downloaded from the zabbix website, the others came preinstalled.
For the third template, when I look at the items, "Cert: Get" shows not supported, with message "Unknown metric web.certificate.get"
For the second template, "SMART: Get attributes" says it's not supported, with message "Failed to scan for devices: Cannot unmarshal JSON: invalid character 's' looking for beginning of value.."
The third template's error sounds like the WebCertificate plugin is not installed in my zabbix agent, which is weird because the docs say that plugin is enabled out of the box. The second template's error is completely mystifying. I did notice that I got a ton of alerts from my server saying that the zabbix user was trying to use sudo to run smartctl, which was blocked. I added a file to /etc/sudoers.d to fix that, but it didn't help.
I don't see "web.certificate.get" or "WebCertificate" anywhere in the zabbix source code, so maybe the docs saying that plugin is available out of the box are incorrect.
Does anyone have ideas for getting this working, or at least for further troubleshooting steps?
I ran "jsonlint-php" on the output of "smartctl --scan -j" (the command my security alerts say was being denied) and it says it's valid json.
Comment