Nagios Multi website hosting
Posted: Wed Aug 02, 2017 10:35 am
We have an AWS instance, where we have installed Nagios Core and we want to host multiple monitoring for different set of hosts and services. For example, when we type: https://nagiosdev1.com/nagios_test1/ it should direct to one set of host groups, and https://nagiosdev1.com/nagios_test2/ it should direct to another set of host groups.
Test2 is cloned from Test1, and both web-pages are working,but they do not show their independent host groups. We modified all host groups in Test2 and they are different from Test1. At server level, we have specifically mentioned what host groups both should contain, but the GUI part for Test2 are showing the hosts of Test1. If we make any changes on Test1, it is getting replicated on Test2. But any changes on Test2 doesn't show up.
Test1
Test2
As you can see, Test2 has only 1 host group, while Test1 has 25.
The whole point being, one site will be holding production host groups and other site will be hosting non-prod host groups.
Anyone got ideas?
Test2 is cloned from Test1, and both web-pages are working,but they do not show their independent host groups. We modified all host groups in Test2 and they are different from Test1. At server level, we have specifically mentioned what host groups both should contain, but the GUI part for Test2 are showing the hosts of Test1. If we make any changes on Test1, it is getting replicated on Test2. But any changes on Test2 doesn't show up.
Test1
Test2
Code: Select all
[aghosh@nagiosdev apt]$ cd /usr/local/nagios
test1/ test2/
[aghosh@nagiosdev apt]$ pwd
/usr/local/test2/etc/apt
[aghosh@nagiosdev apt]$ ls | wc -l 1
[aghosh@nagiosdev apt]$ pwd
/usr/local/test1/etc/apt
[aghosh@nagiosdev apt]$ ls | wc -l 25
The whole point being, one site will be holding production host groups and other site will be hosting non-prod host groups.
Anyone got ideas?