Re: Can't add MiBs to Nagios XI
Posted: Wed May 08, 2013 3:28 pm
You can use sneakernet (usb drive), vmwares shared folders feature, file sharing protocols like ftp etc, or scp.
Support for Nagios products and services
https://support.nagios.com/forum/
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
Code: Select all
/usr/local/nagiosxi/scripts/restore_xi.sh /store/backups/nagiosxi/1279411912.tar.gzCode: Select all
/usr/local/nagiosxi/scripts/restore_xi.sh /store/backups/nagiosxi/1368060733.zipCode: 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]
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-binCode: 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 also ran: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"
Code: Select all
[root@localhost nagiosxi]# echo $NSCA_UPDATED
I did the second part.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