BUG - restore_xi.sh

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

BUG - restore_xi.sh

Post by niebais »

OS: Centos 6
Nagios Version: 2012R1.0

I am running the restore_xi.sh script and am encountering this error: arch: invalid option -- 'm'
Try `arch --help' for more information.
Error detecting architecture.

It looks like this feature is broken with Nagios XI 2012. The main problem is it is having problems determining the architecture of the system now with the "arch" command. I'll see if I can submit a fix.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: BUG - restore_xi.sh

Post by mguthrie »

Bug confirmed. We'll take a look as well. Thanks for the heads up!
nagiosadmin42
Posts: 96
Joined: Sat Feb 11, 2012 2:16 pm

Re: BUG - restore_xi.sh

Post by nagiosadmin42 »

We're on CentOS 6.3 and 2012R1.0 and were able to work around it, the problem is with the architecture case statement. I don't have the script in front of me, so from memory I believe it was that the arch command doesn't need the "-m" option, and the case statement's variable was incorrect. Change the following lines:

arch=$(arch -m)
case arch

to:
arch=$(arch)
case "$arch"

That should do it.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: BUG - restore_xi.sh

Post by mguthrie »

Thanks for the heads up. We've got this fixed in SVN for the next release.
Locked