Page 1 of 1

Move nagios data to another FS

Posted: Thu Jan 19, 2017 1:07 pm
by gormank
Hi,
We're planning to build a bunch of hosts and there's a desire to standardize OS FS sizes. With that in mind, my thought is to have a separate FS, mounted at say /data and after installing XI, moving and symlinking /usr/local/nagios to /data/nagios.

I see backups are in /store, which is a link to /usr/local/store so I'd use a similar plan to move it as well. I also see various /usr/local/nag* dirs so they'd be moved and linked as well. Maybe even /var/www/html...

Can you bless or condemn this plan?

Code: Select all

# ll /usr/local/ | grep nag
drwxr-xr-x. 10 root   root   4096 Aug  5  2015 nagios
drwxr-xr-x.  6 root   root   4096 Mar  6  2015 nagiosmobile
drwxr-xr-x. 10 nagios nagios 4096 Mar  6  2015 nagiosxi
drwxr-xr-x.  5 apache apache 4096 Mar  6  2015 nagvis
drwxr-xr-x.  7 nagios nagios 4096 Mar  6  2015 nrdp

Re: Move nagios data to another FS

Posted: Thu Jan 19, 2017 2:06 pm
by SteveBeauchemin
Interesting - so I'm not the only one...

I have the entire /usr/local on its own volume separate from the OS and dedicated to Nagios files.

Note the VolGroup 00 and 10

Code: Select all

df -h
/dev/mapper/VolGroup00-LogVol00   10G  2.4G  7.7G  24% /
/dev/mapper/VolGroup10-LogVol00  125G   73G   53G  59% /usr/local
In /usr/local I have relocated /store and MySQL

Code: Select all

/store -> /usr/local/store/
/var/lib/mysql -> /usr/local/mysql/
So I have all my Nagios data on one volume, separated from the OS. I also put the MySQL temp files there.

Code: Select all

grep tmp /etc/my.cnf
tmpdir=/usr/local/mysqltmp
So, separate volumes have been working for me for years. I hope it is deemed okay.

Steve B

Re: Move nagios data to another FS

Posted: Thu Jan 19, 2017 2:45 pm
by bheden
I used to rock an mrtg nfs directory shared between gearman workers and the xi box, along with a shared xfs vmdk file for mysql and a shared ext4 (and xfs partition for rrd related directories) vmdk file for Nagios related things. It ended up working out great!

But to answer the question:
Can you bless or condemn this plan?
The plan is officially blessed, just so long as it is well understood that Nagios staff is not responsible for the non-Nagios related changes.

In other news, a few suggestions:
  • 1. Document every change you make.
    2. Document every change you make.
    3. Document every change you make.