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
Scheduled Backup giving error after the Nagios Upgrade
-
Sandip2705
- Posts: 10
- Joined: Fri Dec 08, 2023 10:49 am
Re: Scheduled Backup giving error after the Nagios Upgrade
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.
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
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
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
Try it with a dot and a slash, like this:
That should help with the "command not found" error.
Code: Select all
sudo ./install.sh-
Sandip2705
- Posts: 10
- Joined: Fri Dec 08, 2023 10:49 am
Re: Scheduled Backup giving error after the Nagios Upgrade
Hello,
Apologies for the delay in response. Please close this as issue has been resolved.
Regards,
Sandip
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