I am taking over support for the Nagios Log Server we run. Someone retired and I get the support task.
I see that there are no repository configured for snapshots. I have a 4 node cluster and understand the CIFS/NFS issue. All my Nagios users and groups UID and GID are consistent across my systems so I am not worried about that.
What I am concerned with is the sizing. I cannot grok the size requirements from the documentation I have read.
I am getting the Log Server healthy. It has been ignored for a long time but I plan to use it heavily now.
I just need to know clearly how much space to reserve for the common location where the repository data will go.
I have 4 servers with 800GB drive space allocated on each.
So, doing the match, 3.2 TB total.
Not much is used right now. Less than 6GB in use at this moment.
Please advise.
Thanks
Steve B
Snapshot > Repository - Sizing question
-
SteveBeauchemin
- Posts: 524
- Joined: Mon Oct 14, 2013 7:19 pm
Snapshot > Repository - Sizing question
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
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
Re: Snapshot > Repository - Sizing question
The repos will hold a complete copy of the indices that are snapshotted and will need to be sized according to how many indices you'll want to keep on the repo and their sizes. You can get an idea of the space required by going to Admin > System > Cluster Status and looking at the primary sizes.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
SteveBeauchemin
- Posts: 524
- Joined: Mon Oct 14, 2013 7:19 pm
Re: Snapshot > Repository - Sizing question
Thanks you. That is good information.
Final question on this topic: I have a 4 node NLS cluster, should the snapshots go to a non-NLS system as a best practice?
Thanks.
Steve B
Final question on this topic: I have a 4 node NLS cluster, should the snapshots go to a non-NLS system as a best practice?
Thanks.
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
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
Re: Snapshot > Repository - Sizing question
Yes, snapshots should go to another remote server and not a NLS node.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
SteveBeauchemin
- Posts: 524
- Joined: Mon Oct 14, 2013 7:19 pm
Re: Snapshot > Repository - Sizing question
okay, I think I'm good.
Nagios user exists on all 5 systems with the same UID and GID.
On all 5 systems:
Then on the non-NLS host I added this line to the /etc/exports file
Where IP1, IP2, etc are the IP of the NLS hosts. That way I can enforce security on the location.
Next I exported the file system.
Then, on all 4 NLS hosts I did this: (maybe overkill, but I don't care)
Make sure NFS is running so I can import a file system
Edit the /etc/fstab file and add one line:
Then I mount it.
And tested, as the nagios user, by adding files from each NLS host. I could see and delete from each system.
From the NLS GUI, I made up a Repository name, and added /usr/local/backups
Looks like it worked. I just wanted to be really clear on how I did this work. Good docs help everyone save time.
Thanks
Steve B
(You can close this)
Nagios user exists on all 5 systems with the same UID and GID.
On all 5 systems:
Code: Select all
mkdir /usr/local/backups
chown nagios:nagios /usr/local/backups
Code: Select all
/usr/local/backups <IP1>(rw,root_squash,sync) <IP2>(rw,root_squash,sync) <IP3>(rw,root_squash,sync) <IP4>(rw,root_squash,sync)
Next I exported the file system.
Code: Select all
exportfs -aMake sure NFS is running so I can import a file system
Code: Select all
systemctl enable rpcbind
systemctl enable nfs-server
systemctl enable nfs-lock
systemctl enable nfs-idmap
systemctl start rpcbind
systemctl start nfs-server
systemctl start nfs-lock
systemctl start nfs-idmap
Code: Select all
<Exported-IP-of-disk-location>:/usr/local/backups /usr/local/backups nfs defaults 0 0Code: Select all
mount <Exported-IP-of-disk-location>:/usr/local/backupsFrom the NLS GUI, I made up a Repository name, and added /usr/local/backups
Looks like it worked. I just wanted to be really clear on how I did this work. Good docs help everyone save time.
Thanks
Steve B
(You can close this)
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
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
Re: Snapshot > Repository - Sizing question
Thanks for sharing your steps!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.