Page 1 of 1

Nagios Multi website hosting

Posted: Wed Aug 02, 2017 10:35 am
by Sabre
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
Image
Test2
Image

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
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?

Re: Nagios Multi website hosting

Posted: Wed Aug 02, 2017 2:36 pm
by dwhitfield
Why not just set up the hostgroups and then use direct links to the host groups? It would look like http://nagiosdev1.com/nagios/cgi-bin/st ... yle=detail

Alternatively, why not just set up two nagios core servers and have them completely separate?

You could probably get things going the way you want, and there may be some community members that want to help out, but our support team isn't really equipped to do custom mods for people.

Re: Nagios Multi website hosting

Posted: Thu Aug 03, 2017 3:26 am
by Sabre
I understand your point of view, However, where do I contact the 'community' since the 'support folks' are not equipped with custom mods assistance? Will it be the same sub-forum or something else?

Re: Nagios Multi website hosting

Posted: Thu Aug 03, 2017 9:05 am
by tmcdonald
"The community" largely refers to this forum, however our support staff regularly patrol it as well to answer questions. To clarify, it's not so much that we are "not equipped" as it is that custom mods would fall under paid custom development, and is not something we generally do for free.

Re: Nagios Multi website hosting

Posted: Thu Aug 03, 2017 9:47 am
by Sabre
tmcdonald wrote:"The community" largely refers to this forum, however our support staff regularly patrol it as well to answer questions. To clarify, it's not so much that we are "not equipped" as it is that custom mods would fall under paid custom development, and is not something we generally do for free.
Ahh ok, now I get the point. Though it will be great if any of the community members can give some insight.

Re: Nagios Multi website hosting

Posted: Fri Aug 04, 2017 12:29 pm
by tmcdonald
We will leave this open for community contribution.