Move nagios data to another FS

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Move nagios data to another FS

Post 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
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: Move nagios data to another FS

Post 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
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
bheden
Product Development Manager
Posts: 179
Joined: Thu Feb 13, 2014 9:50 am
Location: Nagios Enterprises

Re: Move nagios data to another FS

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Nagios Enterprises
Senior Developer
Locked