I'm using nagios Core 3.5.1 and NagiosQL 3.2.0
My goal is defined two config one for monitor the production server and
another for monitor test server
I defined by NagiosQL two Target configuration (localhost and TestServer)
with different dir for nagiosql configuraton file .
Also I defined a new nagios config file /etc/nagios/nagiostest.cfg for target TestServer
I defined a new datadomain TestServer with config Target TestServer .
I defined a TestOperator user and group and I config this user to the taget .
I'am able to save the config files and restart nagios but I don't undestand
how a user can view the server of the TestServer tarfet from nagios core interface .
I know It is not easy to explain but .... please ask all question as you like to understand .
Tks
Emilio
Nagios Core and NagiosQL
Re: Nagios Core and NagiosQL
Just to clarify, are you trying to run two separate nagios monitoring configurations from the same box or are you just trying to set up 2 different hosts to be monitored?emi65 wrote:I'am able to save the config files and restart nagios but I don't undestand
how a user can view the server of the TestServer tarfet from nagios core interface .
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Nagios Core and NagiosQL
The goals is to have
one nagios installation running on the one linux machine
and when get in with user1 I want
to see serverA and when I get in with user2 I want to see serverB.
I hope to clarify the situation .
Tks
Emilio
one nagios installation running on the one linux machine
and when get in with user1 I want
to see serverA and when I get in with user2 I want to see serverB.
I hope to clarify the situation .
Tks
Emilio
Re: Nagios Core and NagiosQL
If that is the case, just set each user as separate contacts:
-User1 as a contact on ServerA
-User2 as a contact on ServerB
Check cgi.cfg to verify that neither of the contacts are authorized for all hosts and servers, otherwise they will be able to each see both servers.
-User1 as a contact on ServerA
-User2 as a contact on ServerB
Check cgi.cfg to verify that neither of the contacts are authorized for all hosts and servers, otherwise they will be able to each see both servers.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Nagios Core and NagiosQL
OK this solution works welll |||
.... but ...
Does it possible to get the same result using hostgroup ?
When get in with user1 I want
to see the servers in HOSTGROUPA and when I get in with user2 I want to see servers
in HOSTGROUPB .
Many thks for your help
Emilio
.... but ...
Does it possible to get the same result using hostgroup ?
When get in with user1 I want
to see the servers in HOSTGROUPA and when I get in with user2 I want to see servers
in HOSTGROUPB .
Many thks for your help
Emilio
Re: Nagios Core and NagiosQL
A hostgroup can have the following definitions:
It does not look like there is a way to add a contact to a hostgroup. You will have to assign contacts to hosts individually.
For instance: you have two users, John and Amy. You assign John to host A and host B, and Amy to host C. All of these hosts are in the same hostgroup.
John will see the hostgroup, but it will only contain hosts A and B. Amy will see the hostgroup as well, but she will only see host C. I hope this helps clear things up.
If you are looking for a solution with more robust multi-tenancy features, Nagios XI makes configuration of this sort a lot easier. Thank you!
Code: Select all
hostgroup_name hostgroup_name
alias alias
members hosts
hostgroup_members hostgroups
notes note_string
notes_url url
action_url url
For instance: you have two users, John and Amy. You assign John to host A and host B, and Amy to host C. All of these hosts are in the same hostgroup.
John will see the hostgroup, but it will only contain hosts A and B. Amy will see the hostgroup as well, but she will only see host C. I hope this helps clear things up.
If you are looking for a solution with more robust multi-tenancy features, Nagios XI makes configuration of this sort a lot easier. Thank you!
Re: Nagios Core and NagiosQL
Hi Jolson
Many thanks for all your help
Bye
Emilio
Many thanks for all your help
Bye
Emilio
Re: Nagios Core and NagiosQL
No problem - is there anything else we can help you with, or is this thread good to close?
Re: Nagios Core and NagiosQL
Thanks+
You can consider close this 3rd
Ciao
Emilio
You can consider close this 3rd
Ciao
Emilio