nagiosxi migration tool fails.
Posted: Wed Sep 01, 2021 2:43 pm
Hello guys . I have two servers, both are running Nagios XI 5.8.5.
Server one has 2,000+ Hosts and 10000+ services.
Server 2 is a fresh install with zero hosts and services.
Both are running the same software and are on the same OS version.
I am trying to use the server migration tool in Admin\ Monitoring Config\migrate server
Here is a screenshot of the error I get:
Server one has 2,000+ Hosts and 10000+ services.
Server 2 is a fresh install with zero hosts and services.
Both are running the same software and are on the same OS version.
I am trying to use the server migration tool in Admin\ Monitoring Config\migrate server
Here is a screenshot of the error I get:
Code: Select all
lvnagiost02 ~]$ tail -f /usr/local/nagiosxi/var/cmdsubsys.log
File "nagios_unbundler.py", line 388, in import_object_cfg
with open('nagiosbundle-config/services/'+file_name+'.cfg', 'a') as service_file:
IOError: [Errno 2] No such file or directory: 'nagiosbundle-config/services/nagiosbundle-config/migrated-services.cfg'
Error: Configs could not be processed.OUTPUT=Error: Configs could not be processed.
RETURNCODE=1
.......................................
PROCESSED 1 COMMANDS
.............................................................
PROCESSED 0 COMMANDS
........................PROCESSING COMMAND ID 11...
PROCESS COMMAND: CMD=1180, DATA={"address":"172.22.3.176","username":"bhanks","password":"MDM4N2ZjOWQ1ZTg0YzAxZHA2MVpzZmkxNlFiSGY5ZjdlUWxobEE9PQ==","overwrite":1,"clear":0,"nagios_cfg":""}
CMDLINE=sudo /usr/bin/php /usr/local/nagiosxi/scripts/migrate/migrate.php -a '172.22.3.176' -u 'bhanks' -p 'MDM4N2ZjOWQ1ZTg0YzAxZHA2MVpzZmkxNlFiSGY5ZjdlUWxobEE9PQ==' -e -o
No entry for terminal type "unknown";
using dumb terminal settings.
PHP Notice: Array to string conversion in /usr/local/nagiosxi/scripts/migrate/migrate.php on line 146
Array
0
Traceback (most recent call last):
File "nagios_unbundler.py", line 451, in <module>
main()
File "nagios_unbundler.py", line 446, in main
import_object_cfg(nagiosbundle_json['cfg_file'], nagiosbundle_json['cfg_dir'], options.ignore_configuration, options.overwrite_configuration, nagiosbundle_json['is_nagiosxi'])
File "nagios_unbundler.py", line 388, in import_object_cfg
with open('nagiosbundle-config/services/'+file_name+'.cfg', 'a') as service_file:
IOError: [Errno 2] No such file or directory: 'nagiosbundle-config/services/nagiosbundle-config/migrated-services.cfg'
Error: Configs could not be processed.OUTPUT=Error: Configs could not be processed.