Page 1 of 1

Migrating Nagios core 4.0.8 open source to Nagios XI 5.6.10

Posted: Tue Feb 18, 2020 5:03 pm
by fsbeaunix
Hello,

I'm migrating our monitoring system from Nagios core 4.0.8 open source version to Nagios XI 5.6.10 supported version.
In the open source version we define all the services on the server on which Nagios is installed. Whereas in the Nagios XI version I have to create multiple .cfg files one foe each type of service on each and every server that we monitor. Instead I'm looking for a way to consolidate all these services into one single and place it on the server where Nagios is installed and manage the files from there similar to Nagios core version.

To make it simple below is what I have in current system and what I want to do in the supported version.

Current System setup:-

1) Nagios installed on acmutil server
2) Configuration file for all types of services is placed on acmutil as shown below. For each service we define the list of hosts to be monitored.

define service{
use cms-generic-service-ops
hosts ecmeventsvc2,ecmtasksrchapp2,ecmp8opssvc2,ecmdocsvc2,ecmtaskopssvc2,ecmdocapijboss2,ecmdocopssvc2,content3jboss5,content3jboss6,ecmdocsconvsvc1,ecmdocsconvsvc2,ecmcasecreationsvc1,ecmcasecreationsvc2,ecmfsbdocopsapi1,ecmfsbdocopsapi2
#servicegroups http-check
service_description http status
check_command check_web_ping_wrapper
}


define service{
use cms-generic-service-nopage
hosts fstroycmscmx01,fstroycmscmx02,fstroycmscmx03,fstroycmscmx04,fstroycmscmx05,fstroycmscmx06,fstroycmscmx07,fstroytimgcmx11
#servicegroups http-check
service_description http status
check_command check_web_ping_wrapper
}
3) Nothing is defined are no .cfg files are placed on the hosts.

Nagios XI 5.6.10 setup:-

1) Nagios is installed on unagt01
2) Inorder to monitor /export and /export/logs file systems I have to place the .cfg files on each of the hosts that we want to monitor.

To eliminate adding same config files on multiple hosts, please suggest me how can I do this migration process without editing multiple files. Also please suggest me if there is a way that to create only one config file and make it accessible from all the hosts.

If possible I would like to have a WebEx on this.

Thank you,
Supriya

Re: Migrating Nagios core 4.0.8 open source to Nagios XI 5.6

Posted: Tue Feb 18, 2020 8:11 pm
by Box293
This document explains how to use Nagios XI with static configuration files:

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

Re: Migrating Nagios core 4.0.8 open source to Nagios XI 5.6

Posted: Thu Feb 20, 2020 12:50 pm
by fsbeaunix
Hi Box293,

Thanks for the document. I understand that I manually manage the Nagios XI configurations similar to Nagios core.

Currently under /usr/local/nagios/etc/static/ I have just 3 sample files.

In out Nagios core settings,

Under
"/usr/local/nagios/etc/nag_cms/services", we have "services.cfg" file.
"/usr/local/nagios/etc/nag_cms/srcfiles", we have "chk_http_file.src" and "chk_http_file_ssl.src" files.
"/usr/local/nagios/etc/nag_cms", we have "cms_hostgroups.cfg", "cms_contacts.cfg", "cms_hosts.cfg", "cms_timeperiods.cfg" etc.,
"/usr/local/nagios/libexec", we have all the plugins/commands.

How do I start migrating these files to "/usr/local/nagios/etc/static/". Do I have to follow the same file structure? or can I place all the config files and plugins in the same location?

Re: Migrating Nagios core 4.0.8 open source to Nagios XI 5.6

Posted: Thu Feb 20, 2020 2:20 pm
by swolf
Hi @fsbeaunix,

You should be able to simply move the nag_cms directory (with all its contents) to /usr/local/nagios/etc/static/nag_cms. The libexec directory can remain as it is.

Re: Migrating Nagios core 4.0.8 open source to Nagios XI 5.6

Posted: Thu Feb 20, 2020 3:18 pm
by fsbeaunix
Hi Swolf,

Once I move the entire file system to the static folder and restart the Nagios, does all the objects like hosts, contacts and time periods that I defined in the config files appear in the Nagios XI Core Config Manager drop down options? or do I have to do any additional steps.

Thank you,

Re: Migrating Nagios core 4.0.8 open source to Nagios XI 5.6

Posted: Thu Feb 20, 2020 5:32 pm
by Box293
Using static configs means that nothing will appear in CCM. This method is commonly used by people who do not want to use the CCM GUI interface.

If you want everything to appear in CCM then you will need to do an import / migration.

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