Page 1 of 1

Migrating services from Core 3.5.1 to XI 5.8.2

Posted: Wed Mar 31, 2021 6:55 am
by hbouma
We have a customer who wants to upgrade their Nagios Core checks into Nagios XI. The current Core instance is running Nagios 3.5.1 created by juju (https://jaas.ai/u/npochet/nagios-charm/0). When I attempt to import the core checks, I see that the definition doesn't seem to match the standard setup for a Nagios XI or Nagios Core 4.X instance. How would I go about changing this Core 3.5.1 service definition into something compatible with an updated Nagios instance?

Code: Select all

define service {
    use                             active-service
    host_name                       HOST_NAME
    service_description             SERVICE_NAME
    check_command                   check_nrpe!check_ipmi
    servicegroups                   juju
}

Re: Migrating services from Core 3.5.1 to XI 5.8.2

Posted: Wed Mar 31, 2021 5:30 pm
by ssax
Did you run the cfgprep on them (you should if you didn't)?

https://assets.nagios.com/downloads/nag ... p-Tool.pdf

Everything needs to be imported in this order so that they import properly:

Code: Select all

Commands > Time Periods > Contact Templates > Contacts > Contact Groups > Host Templates > Hosts > Host Groups > Service Templates > Services > Service Groups
Did you follow that order for all configs from the 3.5.1 system?

See here as well:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Please PM me all of the 3.5.1 files you're trying to import.

Re: Migrating services from Core 3.5.1 to XI 5.8.2

Posted: Thu Apr 01, 2021 8:15 am
by hbouma
I have PM'd you the files from the server.

It appears that the nagios 3.5.1 was installed by the juju package manager, which does not contain a newer version.

Re: Migrating services from Core 3.5.1 to XI 5.8.2

Posted: Thu Apr 01, 2021 4:01 pm
by ssax
Responded via PM, please check.