Page 1 of 1

Can Nagios be installed to not use /home/nagios?

Posted: Mon Oct 17, 2011 9:13 am
by pdindak
On a server where I am installing Nagios 3.3.1 as sudo root, no /home directories are allowed.

Can I configure Nagios install to place /home/nagios somewhere else?

Thanks for your help!

Phil

Re: Can Nagios be installed to not use /home/nagios?

Posted: Mon Oct 17, 2011 10:52 am
by agriffin
Yes, you can create the nagios user before you start the installation (from source) and give it a different home directory. For example:

Code: Select all

# /usr/sbin/useradd -r -m -d /var/log/nagios -s /bin/sh -c "Nagios User" nagios
This will put it in /var/log/nagios instead of /home/nagios. Hope that helps!

Re: Can Nagios be installed to not use /home/nagios?

Posted: Mon Oct 17, 2011 2:06 pm
by pdindak
It sure did! Thanks for the info!

Phil

Re: Can Nagios be installed to not use /home/nagios?

Posted: Mon Oct 17, 2011 2:48 pm
by agriffin
You're welcome, Phil! Glad I could help!