External checks

All of the check categories we explored before cover a very wide range of possible devices, but there's always that one that doesn't play well with standard monitoring protocols, can't have the agent installed, and is buggy in general. A real-life example would be a UPS that provides temperature information on the web interface, but doesn't provide this data over SNMP. Or, maybe we would like to collect some information remotely that Zabbix doesn't support yetfor example, monitoring how much time an SSL certificate has until it expires.

In Zabbix, such information can be collected with external checks or external scripts. While user parameters are scripts run by the Zabbix agent, external check scripts are run directly by the Zabbix server.

First, we should figure out the command to find out the remaining certificate validity period. We have at least two options here:

  • Return the time when the certificate expires
  • Return 0 or 1 to identify that the certificate expires in some period of time

Let's try out both options.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.19.31.73