I have the same host created twice in our environment using two different wizards (NCPA / MSSQL)
Host name: hostname1
Address: hostname1.domain.com
Template: NCPA template
Host name: hostname1.domain.com
Address: hostname1.domain.com
Template: MSSQL template
Both entities are actually the same host only having different sets of services provided by the wizard.
Is there a way I can merge both of these into a single object (including the services and also without losing any historical data)
Nagios XI 2024R1.1.4
CentOS Linux release 7.7.1908 (Core)
64bit \ VMware Image \ no special installs
Same host created twice ~ how to merge the two?
Same host created twice ~ how to merge the two?
thanks,
Jim
Jim
-
gwesterman
- Posts: 268
- Joined: Wed Aug 23, 2023 11:29 am
Re: Same host created twice ~ how to merge the two?
Hi @jrice02,
I have not tried this personally, so I cannot vouch for the efficacy of this solution, but here is my suggestion.
For the host objects, you should be able to consolidate their services by copying one of the host's services over to the other. You can do this in the CCM (via swapping out the hosts assigned to each service on the donor host) or directly by editing the configuration files.
For the historical data, you may just be able to copy the perfdata files (in /usr/local/nagios/share/perfdata/<host_name>) from the donor host folder to the recipient host. I am particularly hesitant about this step so make sure to save backups before making drastic changes. There also may be other historical data stored elsewhere.
I will continue looking into this and will give a more certain answer if I find one, but this is worth a try in the meantime.
Thank you!
I have not tried this personally, so I cannot vouch for the efficacy of this solution, but here is my suggestion.
For the host objects, you should be able to consolidate their services by copying one of the host's services over to the other. You can do this in the CCM (via swapping out the hosts assigned to each service on the donor host) or directly by editing the configuration files.
For the historical data, you may just be able to copy the perfdata files (in /usr/local/nagios/share/perfdata/<host_name>) from the donor host folder to the recipient host. I am particularly hesitant about this step so make sure to save backups before making drastic changes. There also may be other historical data stored elsewhere.
I will continue looking into this and will give a more certain answer if I find one, but this is worth a try in the meantime.
Thank you!