Scheduled Backup giving error after the Nagios Upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Sandip2705
Posts: 10
Joined: Fri Dec 08, 2023 10:49 am

Scheduled Backup giving error after the Nagios Upgrade

Post by Sandip2705 »

Hello,



I have tried to perform upgrade of the Nagios XI to the latest version 2024R2.2.1 however it shows success but the version wasn't upgraded to the latest & scheduled backup gives me "Error: This component requires the pecl ssh2 module. You must run install.sh in /usr/local/nagiosxi/html/includes/components/scheduledbackups as root to use this component". I am trying to perform this i am getting below.

nagios@AZGDEPNAGIOSXI02:/usr/local/nagiosxi/html/includes/components/scheduledbackups$ sudo install.sh
sudo: install.sh: command not found
nagios@AZGDEPNAGIOSXI02:/usr/local/nagiosxi/html/includes/components/scheduledbackups$



Regards,



Sandip Khedekar
jsimon
Posts: 339
Joined: Wed Aug 23, 2023 11:27 am

Re: Scheduled Backup giving error after the Nagios Upgrade

Post by jsimon »

Hi Sandip,

I believe this has to do with how sudo executes commands combined with trying to include a path that isn't in your $PATH variable. I would recommend that you cd into the directory and then execute the install.sh script from within there. Let us know if you run into further issues with this.
Sandip2705
Posts: 10
Joined: Fri Dec 08, 2023 10:49 am

Re: Scheduled Backup giving error after the Nagios Upgrade

Post by Sandip2705 »

Hi,

I have tried from the directory but issue remains same.

nagios@AZGDEPNAGIOSXI02:~$ cd /usr/local/nagiosxi/html/includes/components/scheduledbackups/
nagios@AZGDEPNAGIOSXI02:/usr/local/nagiosxi/html/includes/components/scheduledbackups$ ls
CHANGELOG.txt ajaxcalls.php images includes install.sh localbackups.php managebackups.php scheduledbackups.inc.php
nagios@AZGDEPNAGIOSXI02:/usr/local/nagiosxi/html/includes/components/scheduledbackups$ sudo install.sh
sudo: install.sh: command not found
nagios@AZGDEPNAGIOSXI02:/usr/local/nagiosxi/html/includes/components/scheduledbackups$

Regards,

Sandip
nagios-dnelson

Re: Scheduled Backup giving error after the Nagios Upgrade

Post by nagios-dnelson »

Try it with a dot and a slash, like this:

Code: Select all

sudo ./install.sh
That should help with the "command not found" error.
Sandip2705
Posts: 10
Joined: Fri Dec 08, 2023 10:49 am

Re: Scheduled Backup giving error after the Nagios Upgrade

Post by Sandip2705 »

Hello,

Apologies for the delay in response. Please close this as issue has been resolved.

Regards,

Sandip
DoubleDoubleA
Posts: 272
Joined: Thu Feb 09, 2017 5:07 pm

Re: Scheduled Backup giving error after the Nagios Upgrade

Post by DoubleDoubleA »

Thanks!
Locked