Page 1 of 1

User creation based on hostgroups

Posted: Fri Mar 06, 2015 3:08 pm
by venkitesh
Hi All,

Is it possible to create a nagios xi user who should be able to view/write only to a particular hostgroup/servicegroup.

Suppose i have a hostgroup and servicegroup called windows-hosts and windows-services.

so a windows admin should only see these hostgroups/servicegroups which is related to windows.

rest all hosts/services should be hideen.

Anyways to do this

Re: User creation based on hostgroups

Posted: Fri Mar 06, 2015 3:20 pm
by jdalrymple
The workflow would be such:

Hostgroups are a construct designed to help aggregate hosts that have similar monitoring characteristics
Templates are the construct designed to help organize what hosts and services should be notified on, to whom and how.

For all of your hosts in question, apply a template - say "windows server" (this can have child templates such as "windows-web, windows-db, etc" and put the appropriate contactgroups in your template. You just have to be careful, templates are cumulative, so if you have nested templates and one of the parents has additional contactgroups they will get notified also. This can be both of benefit and detriment so it's important you understand the flow.

Here is some reading:

http://assets.nagios.com/downloads/nagi ... gement.pdf
http://nagios.sourceforge.net/docs/3_0/ ... tance.html

Re: User creation based on hostgroups

Posted: Fri Mar 06, 2015 3:27 pm
by venkitesh
hi,

thanks for your reply.

i am not bothered about the alerting mechianism.

in the nagiosxi web ui , if a windows admin logins he should be able to see only windows hosts and services. linux admins should use linux hosts/services.

PLease advise.

Re: User creation based on hostgroups

Posted: Fri Mar 06, 2015 4:35 pm
by scottwilkerson
For regular users without special permissions, this is how iit would work, actually a user can only see hosts/services they are contact for or are members of a contact group that is assigned to the host/service.

If they are admins, then they can see everything, but can create custom dashboard to focus on what is important to them.