Importing Config Files From Nagios Core into Nagios XI
Posted: Wed Jun 10, 2015 7:34 am
I copied the etc directory and sub directories from my currect nagios servers to usr/local/nagios/etc/cfgprep/orig on my nagios xi server. Next I started to run the below commands.
php /usr/local/nagiosxi/tools/xiprepimport.php orig/commands.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/contacts.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/dependencies.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/hostgroups.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/hosts.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/servicegroups.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/services.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/templates.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/timeperiods.cfg
I noticed that I did not have the following files dependencies.cfg, hosts.cfg, services.cfg, with the other files I had cp'ed from my old nagios server. I ssh'ed onto my old nagios server and as root ran "find / -name hosts.cfg" no file was found, that was the same for dependencies and servers. Is it possible to import the cfg files from a nagios 3.2.3 server into nagios xi? Is there something different I need to do?
php /usr/local/nagiosxi/tools/xiprepimport.php orig/commands.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/contacts.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/dependencies.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/hostgroups.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/hosts.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/servicegroups.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/services.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/templates.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/timeperiods.cfg
I noticed that I did not have the following files dependencies.cfg, hosts.cfg, services.cfg, with the other files I had cp'ed from my old nagios server. I ssh'ed onto my old nagios server and as root ran "find / -name hosts.cfg" no file was found, that was the same for dependencies and servers. Is it possible to import the cfg files from a nagios 3.2.3 server into nagios xi? Is there something different I need to do?