Page 1 of 1

create particular user to watch particular CFG_DIR

Posted: Tue Dec 22, 2015 5:05 am
by SJ04
Hello all,

I have a question regarding to CFG_DIR. I want to make a different different user, for nagios Web login , and each user is only allowed to watch the Specific CFG_DIR.which was assigned to him.

as mentioned about theCFG_DIR.

i have need to monitor different different IT Location. so for example.

i have created different different CFG_DIR for monitoring in nagios as the name of the Location.

example.

Code: Select all

/usr/local/nagios/etc/london
/usr/local/nagios/etc/moscow
/usr/local/nagios/etc/paris
/usr/local/nagios/etc/newyork
and inside of this cfg_dirare all Configuration Files for IT Equipment.

now when i login via web login account i see all the Location in the Nagios Web Monitoring page.

so what i want to do is : if someone in London (For example) login via Web admin account then , he /she is only able to watch the nagios Monitoring for IT equipment form London.


thanks you so much in advance,

SJ

Re: create particular user to watch particular CFG_DIR

Posted: Tue Dec 22, 2015 11:49 am
by rkennedy
Can you please provide clarification on what you're attempting to do?

The cfg_dir variable in nagios.cfg, is used to specify listening directories for configuration files. It doesn't associate based on user, or with the Nagios web login.

If you're looking to control what users can see, then I think you want to use groups. See this link for more information here - https://assets.nagios.com/downloads/nag ... tions.html

Re: create particular user to watch particular CFG_DIR

Posted: Mon Dec 28, 2015 12:37 pm
by tgrtjake
You'll want to create a contactgroup for London equipment and add that group to each equipment cfg.

Re: create particular user to watch particular CFG_DIR

Posted: Mon Dec 28, 2015 12:47 pm
by hsmith
Thanks @tgrtjake.

@SJ04 did you still need help with this one?