Page 1 of 1

Scheduled Backup giving error after the Nagios Upgrade

Posted: Tue Sep 09, 2025 10:05 am
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

Re: Scheduled Backup giving error after the Nagios Upgrade

Posted: Tue Sep 09, 2025 2:02 pm
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.

Re: Scheduled Backup giving error after the Nagios Upgrade

Posted: Wed Sep 10, 2025 4:52 am
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

Re: Scheduled Backup giving error after the Nagios Upgrade

Posted: Wed Sep 10, 2025 3:21 pm
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.

Re: Scheduled Backup giving error after the Nagios Upgrade

Posted: Fri Feb 13, 2026 9:10 am
by Sandip2705
Hello,

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

Regards,

Sandip

Re: Scheduled Backup giving error after the Nagios Upgrade

Posted: Fri Feb 13, 2026 1:59 pm
by DoubleDoubleA
Thanks!