Can't add MiBs to Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Can't add MiBs to Nagios XI

Post by abrist »

You can use sneakernet (usb drive), vmwares shared folders feature, file sharing protocols like ftp etc, or scp.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rafaelvdberg
Posts: 39
Joined: Fri Aug 24, 2012 1:24 pm

Re: Can't add MiBs to Nagios XI

Post by rafaelvdberg »

Tried to resore on new box, here is what I got:
gzip: stdin has more than one entry--rest ignored
tar: Child returned status 2
tar: Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
WARNING: you are trying to restore a backup on a 64-bit system
Plugins and other binaries will NOT be restored.

Are you sure you want to continue? [y/N] y
TS=1368044436
Extracting backup to /store/backups/nagiosxi/1368044436-restore...
gzip: stdin has more than one entry--rest ignored
tar: Child returned status 2
tar: Error is not recoverable: exiting now
In /root...
Unable to find files to restore in /root
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Can't add MiBs to Nagios XI

Post by slansing »

Make sure that you are running the command correctly, for example:

Code: Select all

/usr/local/nagiosxi/scripts/restore_xi.sh /store/backups/nagiosxi/1279411912.tar.gz
Will execute the restore script and point it at the back up that you moved from the old xi server to this one at the location of: /store/backups/nagiosxi/tarball.gz.name*
rafaelvdberg
Posts: 39
Joined: Fri Aug 24, 2012 1:24 pm

Re: Can't add MiBs to Nagios XI

Post by rafaelvdberg »

It came through as a zip file, not a tar.gz file.

Is that possibly the problem I'm having?

Code: Select all

 /usr/local/nagiosxi/scripts/restore_xi.sh /store/backups/nagiosxi/1368060733.zip
This is what is in my backups folder:

Code: Select all

    [root@nagios ~]# cd /store/backups/nagiosxi/
    [root@nagios nagiosxi]# ls
    [color=#FF0000]1367969744.zip  1367970858.zip  1367973288.zip  1367979344.zip  1368060733.zip[/color]
best,

Rafael
Last edited by sreinhardt on Wed May 08, 2013 4:46 pm, edited 1 time in total.
Reason: merged posts
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Can't add MiBs to Nagios XI

Post by slansing »

It appears the version you were upgrading from was when we used to use .zip's for backing up. PFA the file named restore_xi_old.sh

Please place this file in the /usr/local/nagiosxi/scripts/ directory next to the normal restore_xi.sh and call this script instead. The command should be identical to the one you tried already but you will be using this script instead. Let us know if you have questions.
You do not have the required permissions to view the files attached to this post.
rafaelvdberg
Posts: 39
Joined: Fri Aug 24, 2012 1:24 pm

Re: Can't add MiBs to Nagios XI

Post by rafaelvdberg »

Thanks, that worked.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Can't add MiBs to Nagios XI

Post by abrist »

Great! let us know if you have any more issues as you get ready for your demo.
Cheers.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rafaelvdberg
Posts: 39
Joined: Fri Aug 24, 2012 1:24 pm

Re: Can't add MiBs to Nagios XI

Post by rafaelvdberg »

Nevermind, it didn't work.

I tried this from the Backup and Restore documentation (work around section):

Code: Select all

If you have already deleted the /tmp/nagiosxi install directory do the following:
cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/xi-2011-latest.tar.gz
tar xzf xi-2011-latest.tar.gz
cd /tmp/nagiosxi
touch installed.mrtg
./A-subcomponents
./build-perms-bin
(As a note I used "xi-latest.tar.gz, not xi-2011-latest.tar.gz)

Still getting this:

Code: Select all

It appears as though Ajaxterm is already configured, so we'll skip that step.
Subcomponent 'ajaxterm' installed OK
Traceback (most recent call last):
  File "./install", line 17, in <module>
    installpath = os.environ['INSTALL_PATH']
  File "/usr/lib64/python2.6/UserDict.py", line 22, in __getitem__
    raise KeyError(key)
KeyError: 'INSTALL_PATH'
ERROR: Subcomponent 'wkhtml' installation failed - exiting.
Subcomponents installation failed - exiting
I tried this from above:
To resolve the install path issues, simply modify /tmp/nagiosxi/update on line 16 add:

Code: Select all
export INSTALL_PATH=`pwd`



Try running again after making that change. Also once it is run again, if it fails return the following command "echo $NSCA_UPDATED"
I also ran:

Code: Select all

[root@localhost nagiosxi]# echo $NSCA_UPDATED

Which returned empty.

Please help, I need to be able to add some MiBs today.

Best,


Rafael
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Can't add MiBs to Nagios XI

Post by abrist »

Are you getting these errors in the install process, or after restoring the backup?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rafaelvdberg
Posts: 39
Joined: Fri Aug 24, 2012 1:24 pm

Re: Can't add MiBs to Nagios XI

Post by rafaelvdberg »

In the restore procedure it says:
If you are restoring a backup from a different OS version or architecture this can be a problem because the backup is overwriting the
compiled binaries.

A work around follows:

If you still have the /tmp/nagiosxi install directory do the following:
cd /tmp/nagiosxi
rm -f installed.subcomponents
./A-subcomponents
./build-perms-bin

If you have already deleted the /tmp/nagiosxi install directory do the following:

cd /tmp
wget http://assets.nagios.com/downloads/nagi ... est.tar.gz
tar xzf xi-2011-latest.tar.gz
cd /tmp/nagiosxi
touch installed.mrtg
./A-subcomponents
./build-perms-bin
I did the second part.

That's where I'm getting the errors.

Best,

Rafale
Locked