Running Nagios as another user ID.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cetanhota
Posts: 14
Joined: Tue Aug 07, 2012 8:02 am

Running Nagios as another user ID.

Post by cetanhota »

I need to run nagios with a user ID and group other than nagios/nagios. I need it to run under lets says userx/userx. I made those changes to the xi-sys.cfg file, but I am still seeing nagios compiling and running as nagios and not my userx ID. Due to the way things are done here where I work, I dont have the option to use the nagios ID and group.

Changes to my xi-sys.cfg

nagiosgroup='userx'
nagiosuser='userx'

Can some one please tell me what I need to do to have nagios run with the userx/userx ID and group. I have tried several things, but nothing seems to work.

Thank you so much for any help you can provide.

Wayne
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Running Nagios as another user ID.

Post by yancy »

cetanhota,

Unfortunately, there is no easy way to make this change currently.

If your brave, you could pick through the install script, and for each ./configure add in the new user.

for example, /subcomponents/nagioscore/install/

line 23 would need to be changed to:
./configure --with-nagios-user=<your new user> --with-nagios-group=<your new group>

This would also need to updated in the compile script for NSCA and others...

this is not recommended as there are many places where things could break if any of the users and groups are not configured properly.


Regards,

-Yancy
Locked