Ad Widget

Collapse

Nakivo Backup & Replications not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jacob92
    Junior Member
    • Sep 2024
    • 2

    #1

    Nakivo Backup & Replications not working

    Hi all,

    First of all - I am very new to Zabbix.

    I am trying to install the Nakivo tepmplate from here:
    GitHub - chises/zabbix-nakivo: Zabbix Template to check Nakivo Backup & Replication with external script

    I got problems installing some of the Java stuff because I think some of them er deprecated/older but found some never versions instead.

    Requirement:
    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)

    I installed this instead:
    openjdk version "17.0.12" 2024-07-16
    OpenJDK Runtime Environment Temurin-17.0.12+7 (build 17.0.12+7)
    OpenJDK 64-Bit Server VM Temurin-17.0.12+7 (build 17.0.12+7, mixed mode, sharing)

    I followed the installation guide and did go as planned.
    get your nakivo cli.sh and cli.jar based on https://helpcenter.nakivo.com/displa...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

    When testing, I got no output or errors. Nothing happens:
    Run nakivo.sh on the zabbix server or proxy with 4 paramters: nakivo server ip, nakivo user, nakivo password, nakivo port

    It should show output like this:
    /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)

    Okay.. so i tried to continue anyways and setup the last step:
    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

    In zabbix i got no jobs from Nakivo.

    And i found this in Zabbix under the host --> Nakivo Job Discover --> Preprocessing i found this test button that i tried, and it gives me this error:
    SyntaxError: invalid json (at offset 1)
    at [anon] (duktape.c:37568) internal
    at parse () native strict preventsyield
    at [anon] (function:2) preventsyield

    - Can someone explain this?
    - Did somebody tried import this and got it to work?

    I know it is a bit mess to explain but any advice would be helpful or if someone did successfully install it that could lead me in the right direction

    Thank you

    - Jacob​
  • markfree
    Senior Member
    • Apr 2019
    • 868

    #2
    I'm not a Nakivo costumer and don't really know their system, but I think you might be better off using Nakivo's API.
    You can query Nakivo endpoints using Zabbix HTTP items.

    Comment

    • bvanderbilt0033
      Junior Member
      • Sep 2024
      • 1

      #3
      NAKIVO has not tested our CLI integrated into Zabbix; it is a third-party script, and it's not supported.

      You can contact the author of the script for assistance.

      Comment

      Working...