Zabbix Template to check Nakivo Backup & Replication with external script
- Discovery rule for all jobs
- 5 Minute Update interval
- single API command to gather all items and values
- Trigger severity average on last result not "Successful"
- Trigger severity information on running jobs
Tested on Zabbix 6.2.4 with debian 11.
JAVA that is comptible with Nakivo cli.jar file Tested with java -version:
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.292-b10, mixed mode)
Installed with the following on Debian 11:
apt install apt-transport-https ca-certificates wget dirmngr gnupg software-properties-common -y
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add -
add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
apt update
apt install adoptopenjdk-8-hotspot -y
- get your nakivo cli.sh and cli.jar based on https://helpcenter.nakivo.com/display/NH/Using+Command+Line+Interface and copy it to the zabbix external scripts folder
- copy the nakivo.sh file to the zabbix external scripts folder and allow execution (chmod +x nakivo.sh)
- adjust path to cli.sh in file nakivo.sh if it is not /usr/lib/zabbix/externalscripts/cli.sh
- import template to zabbix
- increase script timeout on server/proxy to 10 seconds
Run nakivo.sh on the zabbix server or proxy with 4 paramters: nakivo server ip, nakivo user, nakivo password, nakivo port
/usr/lib/zabbix/externalscripts/nakivo.sh <IP> <user> '<password>'
ID,Name,State,Last run
69,copy to nas01,Running. 67.0%,Successful
33,Backup,Scheduled,Successful
108,recover data,On demand,Successful
109,recover from nas01,On demand,Successful
107,recover_all,On demand,Stopped (3 VM successful. 0 VM failed. 2 VM stopped)
- Create a host with agent interface ip pointing to naktivo server ip
- assign template "nakivo" to host
- adjust template macros {$NAKIVOPASSWORD} and {$NAKIVOUSER} with a valid nakivo user
- adjust template macro {$NAKIVOPORT} if nakivo port is not the default 4443
Tested with nakivo 10.7.2