create particular user to watch particular CFG_DIR

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
SJ04
Posts: 42
Joined: Sat Oct 17, 2015 3:14 pm

create particular user to watch particular CFG_DIR

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: create particular user to watch particular CFG_DIR

Post 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
Former Nagios Employee
tgrtjake
Posts: 20
Joined: Thu Sep 25, 2014 10:35 am

Re: create particular user to watch particular CFG_DIR

Post by tgrtjake »

You'll want to create a contactgroup for London equipment and add that group to each equipment cfg.
Nagios Core 4.1.1 running on Ubuntu 14.04
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: create particular user to watch particular CFG_DIR

Post by hsmith »

Thanks @tgrtjake.

@SJ04 did you still need help with this one?
Former Nagios Employee.
me.
Locked