Moving /home/nagios to a different location?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
disrael
Posts: 116
Joined: Tue Jun 19, 2012 3:16 pm

Moving /home/nagios to a different location?

Post by disrael »

The company I work for has a standard of putting home directories in a different partition called /u01/home, instead of the default /home. Is there an easy way to switch to the company standard or is something we should just have an exception for?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Moving /home/nagios to a different location?

Post by abrist »

XI/core does not use the home directory for almost anything other than a cookie file for curl. Feel free to move it, though you may want to symlink it back to /home/nagios just in case. Just a disclaimer: moving/linking any default locations is officially unsupported and your mileage may vary. But, symlinking should be fine.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
disrael
Posts: 116
Joined: Tue Jun 19, 2012 3:16 pm

Re: Moving /home/nagios to a different location?

Post by disrael »

So just set the nagios home as /u01/home/nagios in the passwd and then do the following

Code: Select all

cd /u01/home
ln -s  /home/nagios nagios
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Moving /home/nagios to a different location?

Post by abrist »

Looks fine. Let us know if you run into problems.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked