Zabbix Template to check Nakivo Backup & Replication with external script
- 1 Discovery rule for jobs.
- 2 Disocery Items, "state" and "last result" Tested on Zabbix 4.0.9 with debian 9.
Perl + Perl Library JSON and File::Basename
- copy the nakivo.pl file to the zabbix external scripts folder and allow execution (chmod +x nakivo.pl)
- set correct value for NAKIVO_USER and NAKIVO_PWD variable in nakivo.pl (line 22 and line 23)
- 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
- import zbx_export_templates_nakivo.xml
- Create a host with agent interface ip pointing to naktivo server ip
- assign template "nakivo" to host
- have fun
nakivo.pl --job-list { "data":[
{
"{#ID}":"35",
"{#NAME}":"VM Backup"
}
]
}
Tested with nakivo 8.5.2.32767. On some older version the API call with cli.jar were to slow (>30 sec) and this caused the agent to terminate to early. Feel free to post some feedback.