Creating external checks
To further extend our Zabbix functionality, we can use custom scripts that can be executed as Zabbix external checks. Not everything that we want to monitor will always be standard in Zabbix, although a lot is. There’s always something that could be missing, and external checks are just a way to bypass some of these.
Getting ready
In this recipe, we are going to need just our Zabbix server. We can create an item on our lar-book-rocky
host, which is our Zabbix server-monitored host.
How to do it…
Follow these steps:
- First, let’s make sure our Zabbix server configuration is set up correctly. Execute the following on the Zabbix server CLI:
cat /etc/zabbix/zabbix_server.conf | grep ExternalScripts=
- This should show us the path where we will place the script that’s used by the Zabbix external check. By default, this is
/usr/lib/zabbix/ externalscripts/
. Let’s create a new script calledtest_external
in this...