Hello There, Guest!  
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Migrator from 1.2.3 to 1.3

#1
Hello,

When I try migrating to the new version, none of the info from the old server gets imported.  I do not get any errors when i run through the migration process.  I do get a lot of php notices.  They are below.  Any ideas.  Thanks in advance.

PHP Notice:  Undefined variable: data in /root/nems/nems-migrator/data/reconcile                                    -nagios.sh on line 69
PHP Warning:  Invalid argument supplied for foreach() in /root/nems/nems-migrato                                    r/data/reconcile-nagios.sh on line 69
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/re                                    concile-nagios.sh on line 91
PHP Notice:  Undefined variable: data in /root/nems/nems-migrator/data/reconcile                                    -nagios.sh on line 69
PHP Warning:  Invalid argument supplied for foreach() in /root/nems/nems-migrato                                    r/data/reconcile-nagios.sh on line 69
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/re                                    concile-nagios.sh on line 91
PHP Notice:  Undefined variable: data in /root/nems/nems-migrator/data/reconcile                                    -nagios.sh on line 69
PHP Warning:  Invalid argument supplied for foreach() in /root/nems/nems-migrato                                    r/data/reconcile-nagios.sh on line 69
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/re                                    concile-nagios.sh on line 91
PHP Notice:  Undefined variable: data in /root/nems/nems-migrator/data/reconcile                                    -nagios.sh on line 69
PHP Warning:  Invalid argument supplied for foreach() in /root/nems/nems-migrato                                    r/data/reconcile-nagios.sh on line 69
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/re                                    concile-nagios.sh on line 91
PHP Notice:  Undefined variable: data in /root/nems/nems-migrator/data/reconcile                                    -nagios.sh on line 69
PHP Warning:  Invalid argument supplied for foreach() in /root/nems/nems-migrato                                    r/data/reconcile-nagios.sh on line 69
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/re                                    concile-nagios.sh on line 91
PHP Notice:  Undefined variable: data in /root/nems/nems-migrator/data/reconcile                                    -nagios.sh on line 69
PHP Warning:  Invalid argument supplied for foreach() in /root/nems/nems-migrato                                    r/data/reconcile-nagios.sh on line 69
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/re                                    concile-nagios.sh on line 91
PHP Notice:  Undefined variable: data in /root/nems/nems-migrator/data/reconcile                                    -nagios.sh on line 69
PHP Warning:  Invalid argument supplied for foreach() in /root/nems/nems-migrato                                    r/data/reconcile-nagios.sh on line 69
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/re                                    concile-nagios.sh on line 91
PHP Notice:  Undefined variable: data in /root/nems/nems-migrator/data/reconcile                                    -nagios.sh on line 69
PHP Warning:  Invalid argument supplied for foreach() in /root/nems/nems-migrato                                    r/data/reconcile-nagios.sh on line 69
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/re                                    concile-nagios.sh on line 91
PHP Notice:  Undefined variable: data in /root/nems/nems-migrator/data/reconcile                                    -nagios.sh on line 69
PHP Warning:  Invalid argument supplied for foreach() in /root/nems/nems-migrato                                    r/data/reconcile-nagios.sh on line 69
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/re                                    concile-nagios.sh on line 91
Consolidation complete.
 Reply
#2
Can I please see your backup.nems file to diagnose this? Seems I'm looking for files in the wrong location (it's not finding your nconf configs).

Email to [email protected] - thanks!

-Robbie
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#3
I have received your file, thank you. Good news: your backup.nems file looks intact. It would appear this is in fact a bug with the restore functionality of nems-migrator.

I'm investigating this for you.

In the meantime, I've made the output a little more verbose to see if it sheds light on the issue for us.

Please run:
Code:
sudo nems-quickfix


And then try your restore again. You'll see a bit more details in the error output. Please post that here.

Thanks!
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#4
I ran the update and tried the migration again.  Here is the output.

Backup file is from NEMS 1.2.3. Proceeding.
Reconciling 9 files...
Scanning /tmp/nems_migrator_restore/etc/nagios3/Default_collector/advanced_services.cfg... File found. Loading...Found 288 lines... Importing.Scanning /root/nems/nems-migrator/data/nagios/Default_collector/advanced_services.cfg... File not found. Cannot load.
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/reconcile-nagios.sh on line 102
Scanning /tmp/nems_migrator_restore/etc/nagios3/Default_collector/hostgroups.cfg... File found. Loading...Found 48 lines... Importing.Scanning /root/nems/nems-migrator/data/nagios/Default_collector/hostgroups.cfg... File not found. Cannot load.
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/reconcile-nagios.sh on line 102
Scanning /tmp/nems_migrator_restore/etc/nagios3/Default_collector/hosts.cfg... File found. Loading...Found 2856 lines... Importing.Scanning /root/nems/nems-migrator/data/nagios/Default_collector/hosts.cfg... File not found. Cannot load.
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/reconcile-nagios.sh on line 102
Scanning /tmp/nems_migrator_restore/etc/nagios3/Default_collector/servicegroups.cfg... File found. Loading...Found 5 lines... Importing.Scanning /root/nems/nems-migrator/data/nagios/Default_collector/servicegroups.cfg... File not found. Cannot load.
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/reconcile-nagios.sh on line 102
Scanning /tmp/nems_migrator_restore/etc/nagios3/Default_collector/services.cfg... File found. Loading...Found 146 lines... Importing.Scanning /root/nems/nems-migrator/data/nagios/Default_collector/services.cfg... File not found. Cannot load.
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/reconcile-nagios.sh on line 102
Scanning /tmp/nems_migrator_restore/etc/nagios3/global/checkcommands.cfg... File found. Loading...Found 270 lines... Importing.Scanning /root/nems/nems-migrator/data/nagios/global/checkcommands.cfg... File not found. Cannot load.
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/reconcile-nagios.sh on line 102
Scanning /tmp/nems_migrator_restore/etc/nagios3/global/host_templates.cfg... File found. Loading...Found 144 lines... Importing.Scanning /root/nems/nems-migrator/data/nagios/global/host_templates.cfg... File not found. Cannot load.
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/reconcile-nagios.sh on line 102
Scanning /tmp/nems_migrator_restore/etc/nagios3/global/misccommands.cfg... File found. Loading...Found 30 lines... Importing.Scanning /root/nems/nems-migrator/data/nagios/global/misccommands.cfg... File not found. Cannot load.
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/reconcile-nagios.sh on line 102
Scanning /tmp/nems_migrator_restore/etc/nagios3/global/service_templates.cfg... File found. Loading...Found 45 lines... Importing.Scanning /root/nems/nems-migrator/data/nagios/global/service_templates.cfg... File not found. Cannot load.
PHP Notice:  Undefined variable: definitions in /root/nems/nems-migrator/data/reconcile-nagios.sh on line 102
Consolidation complete.
Removing all NEMS NConf configuration... Done.
Importing Nagios3 Configs to NEMS NConf...
  Importing: timeperiod
  Importing: misccommand
  Importing: checkcommand
  Importing: contact
  Importing: contactgroup
  Importing: host-template
  Importing: host
  Importing: hostgroup
  Importing: host-dependency
  Importing: service-template
  Importing: service
  Importing: advanced-service
  Importing: servicegroup
  Importing: service-dependency
Done.
 Reply
#5
That's fantastic - thank you. Just what I needed to know.

I'll work on this tonight and patch your system. Will let you know when it's ready.
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#6
Okay - patch applied.
Please run:

Code:
sudo nems-quickfix


Then run your restore operation again and paste the output here.
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#7
thank you sir.  All of my hosts showed up.  below is the output

This will WIPE OUT the configuration on this NEMS deployment.
The configuration will be replaced with the one stored in your NEMS backup.

Please do this on a fresh deployment of NEMS to prevent data loss.
I am not responsible for this script breaking everything you have done Smile
Backup, backup, backup.

Are you sure you want to attempt restore? [y/N] y
Backup file is from NEMS 1.2.3. Proceeding.
Reconciling 9 files...
Scanning /tmp/nems_migrator_restore/etc/nagios3/Default_collector/advanced_services.cfg... File found. Loading...Found 288 lines... Importing.
Scanning /root/nems/nems-migrator/data/nagios/conf/Default_collector/advanced_services.cfg... File found. Loading...Found 59 lines... Importing.
Scanning /tmp/nems_migrator_restore/etc/nagios3/Default_collector/hostgroups.cfg... File found. Loading...Found 48 lines... Importing.
Scanning /root/nems/nems-migrator/data/nagios/conf/Default_collector/hostgroups.cfg... File found. Loading...Found 6 lines... Importing.
Scanning /tmp/nems_migrator_restore/etc/nagios3/Default_collector/hosts.cfg... File found. Loading...Found 2856 lines... Importing.
Scanning /root/nems/nems-migrator/data/nagios/conf/Default_collector/hosts.cfg... File found. Loading...Found 15 lines... Importing.
Scanning /tmp/nems_migrator_restore/etc/nagios3/Default_collector/servicegroups.cfg... File found. Loading...Found 5 lines... Importing.
Scanning /root/nems/nems-migrator/data/nagios/conf/Default_collector/servicegroups.cfg... File found. Loading...Found 5 lines... Importing.
Scanning /tmp/nems_migrator_restore/etc/nagios3/Default_collector/services.cfg... File found. Loading...Found 146 lines... Importing.
Scanning /root/nems/nems-migrator/data/nagios/conf/Default_collector/services.cfg... File found. Loading...Found 10 lines... Importing.
Scanning /tmp/nems_migrator_restore/etc/nagios3/global/checkcommands.cfg... File found. Loading...Found 270 lines... Importing.
Scanning /root/nems/nems-migrator/data/nagios/conf/global/checkcommands.cfg... File found. Loading...Found 290 lines... Importing.
Scanning /tmp/nems_migrator_restore/etc/nagios3/global/host_templates.cfg... File found. Loading...Found 144 lines... Importing.
Scanning /root/nems/nems-migrator/data/nagios/conf/global/host_templates.cfg... File found. Loading...Found 83 lines... Importing.
Scanning /tmp/nems_migrator_restore/etc/nagios3/global/misccommands.cfg... File found. Loading...Found 30 lines... Importing.
Scanning /root/nems/nems-migrator/data/nagios/conf/global/misccommands.cfg... File found. Loading...Found 40 lines... Importing.
Scanning /tmp/nems_migrator_restore/etc/nagios3/global/service_templates.cfg... File found. Loading...Found 45 lines... Importing.
Scanning /root/nems/nems-migrator/data/nagios/conf/global/service_templates.cfg... File found. Loading...Found 45 lines... Importing.
Consolidation complete.
Removing all NEMS NConf configuration... Done.
Importing Nagios3 Configs to NEMS NConf...
  Importing: timeperiod
  Importing: misccommand
  Importing: checkcommand
  Importing: contact
  Importing: contactgroup
  Importing: host-template
  Importing: host
  Importing: hostgroup
  Importing: host-dependency
  Importing: service-template
  Importing: service
  Importing: advanced-service
  Importing: servicegroup
  Importing: service-dependency
Done.
Connecting default monitor to NEMS... Done.
Connecting default monitor to MEC HP... Done.
Connecting default monitor to MEC PS... Done.
Connecting default monitor to MEC SMH Dining... Done.
Connecting default monitor to Plant Firewall... Done.
Connecting default monitor to Parisi Cafe PP... Done.
Connecting default monitor to Plant Internet - TWC... Done.
Connecting default monitor to Parisi Cafe US... Done.
Connecting default monitor to Caves Firewall -Eth... Done.
Connecting default monitor to Caves - Cogent... Done.
Connecting default monitor to Carefree Internet... Done.
Connecting default monitor to Carefree Firewall... Done.
Connecting default monitor to GFE-LV-Internet... Done.
Connecting default monitor to pb01... Done.
Connecting default monitor to pb02... Done.
Connecting default monitor to pb-server01... Done.
Connecting default monitor to pb-server02... Done.
Connecting default monitor to pb-cheeseroom... Done.
Connecting default monitor to 92A-IT... Done.
Connecting default monitor to 92A-Coffee... Done.
Connecting default monitor to gfe01... Done.
Connecting default monitor to gfe02... Done.
Connecting default monitor to pb-multi01... Done.
Connecting default monitor to pb-multi02... Done.
Connecting default monitor to freezer01... Done.
Connecting default monitor to pb-distro01... Done.
Connecting default monitor to carefree01... Done.
Connecting default monitor to coffee plant... Done.
Connecting default monitor to Avaya IP Office Primary... Done.
Connecting default monitor to Avaya IP Office Secondary... Done.
Connecting default monitor to EMC-DD2200... Done.
Connecting default monitor to EMC-VNXe3150... Done.
Connecting default monitor to http://ftp.it.local... Done.
Connecting default monitor to pb-specialtyweb... Done.
Connecting default monitor to pb-web... Done.
Connecting default monitor to pb-wiki... Done.
Connecting default monitor to shipgfe.com... Done.
Connecting default monitor to status.it.local... Done.
Connecting default monitor to parisicoffee.com_cervasi.com... Done.
Connecting default monitor to cafereports.it.local... Done.
Connecting default monitor to datex01.it.local... Done.
Connecting default monitor to gfets01.it.local... Done.
Connecting default monitor to it-syslog.it.local... Done.
Connecting default monitor to it-unifi.it.local... Done.
Connecting default monitor to it-vcenter.it.local... Done.
Connecting default monitor to pbts01.it.local... Done.
Connecting default monitor to management.it.local... Done.
Connecting default monitor to pb-activefax.it.local... Done.
Connecting default monitor to it-lansweeper.it.local... Done.
Connecting default monitor to pb-bakery.it.local... Done.
Connecting default monitor to pb-corp-edi.it.local... Done.
Connecting default monitor to pb-corp-pdc.it.local... Done.
Connecting default monitor to pb-corp-sdc.it.local... Done.
Connecting default monitor to pb-eportal.it.local... Done.
Connecting default monitor to pb-exch13.it.local... Done.
Connecting default monitor to pb-fileserv.it.local... Done.
Connecting default monitor to pb-insight.it.local... Done.
Connecting default monitor to pb-knowsync.it.local... Done.
Connecting default monitor to pb-labelmatrix.it.local... Done.
Connecting default monitor to pb-motherweb.it.local... Done.
Connecting default monitor to pb-printserver.it.local... Done.
Connecting default monitor to pb-sage500.it.local... Done.
Connecting default monitor to pb-sageapps.it.local... Done.
Connecting default monitor to pb-sagecrm.it.local... Done.
Connecting default monitor to pb-seems.it.local... Done.
Connecting default monitor to pb-sophos.it.local... Done.
Connecting default monitor to pb-worldox.it.local... Done.
Connecting default monitor to pb-wsus.it.local... Done.
Connecting default monitor to services.it.local... Done.
Connecting default monitor to tsasparis.it.local... Done.
Connecting default monitor to 92A-1... Done.
Connecting default monitor to 92A-2... Done.
Connecting default monitor to 92A-3... Done.
Connecting default monitor to 92A-4... Done.
Connecting default monitor to 92A-5... Done.
Connecting default monitor to carefree1... Done.
Connecting default monitor to carefree10... Done.
Connecting default monitor to carefree11... Done.
Connecting default monitor to carefree12... Done.
Connecting default monitor to carefree13... Done.
Connecting default monitor to carefree14... Done.
Connecting default monitor to carefree15... Done.
Connecting default monitor to carefree2... Done.
Connecting default monitor to carefree3... Done.
Connecting default monitor to carefree4... Done.
Connecting default monitor to carefree5... Done.
Connecting default monitor to carefree6... Done.
Connecting default monitor to carefree7... Done.
Connecting default monitor to carefree8... Done.
Connecting default monitor to carefree9... Done.
Connecting default monitor to cold1... Done.
Connecting default monitor to cold10... Done.
Connecting default monitor to cold11... Done.
Connecting default monitor to cold12... Done.
Connecting default monitor to cold13... Done.
Connecting default monitor to cold14... Done.
Connecting default monitor to cold2... Done.
Connecting default monitor to cold3... Done.
Connecting default monitor to cold4... Done.
Connecting default monitor to cold5... Done.
Connecting default monitor to cold6... Done.
Connecting default monitor to cold7... Done.
Connecting default monitor to cold8... Done.
Connecting default monitor to cold9... Done.
Connecting default monitor to GFE 5STG9... Done.
Connecting default monitor to GFE 7STG3... Done.
Connecting default monitor to GFE COF85... Done.
Connecting default monitor to GFE DD022... Done.
Connecting default monitor to GFE F034... Done.
Connecting default monitor to GFE G049... Done.
Connecting default monitor to GFE G12... Done.
Connecting default monitor to GFE JO19... Done.
Connecting default monitor to GFE L034... Done.
Connecting default monitor to GFE NO50... Done.
Connecting default monitor to GFE NODock... Done.
Connecting default monitor to GFE Office... Done.
Connecting default monitor to GFE SB089... Done.
Connecting default monitor to GFE SC119... Done.
Connecting default monitor to GFE STG27... Done.
Connecting default monitor to IT Office... Done.
Connecting default monitor to PB-BackOffice... Done.
Connecting default monitor to PB-Distro-1... Done.
Connecting default monitor to PB-Distro-2... Done.
Connecting default monitor to PB-Distro-3... Done.
Connecting default monitor to PB-Distro-4... Done.
Connecting default monitor to PB-Distro-5... Done.
Connecting default monitor to PB-Distro-6... Done.
Connecting default monitor to PB-Distro-7... Done.
Connecting default monitor to PB-Distro-8... Done.
Connecting default monitor to PB-Distro-Dock... Done.
Connecting default monitor to PB-Office... Done.
Connecting default monitor to caves-intel-01... Done.
Connecting default monitor to Plant 1st Floor AP... Done.
Connecting default monitor to Plant 3rd Floor AP... Done.
Connecting default monitor to Plant Internet - Spectrum... Done.
Activating default host presets...  Done.
 Reply
#8
Not an error in sight! Fantastic.

Enjoy NEMS 1.3! Can't wait to hear what you think of the new system.
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#9
will do.  thanks for you help.  Have a happy Thanksgiving.
 Reply
#10
Thanks, you as well!
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
 
 
Forum Jump:

Users browsing this thread: 1 Guest(s)