out of space!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
devildog31415
Posts: 48
Joined: Thu Jun 12, 2014 10:55 am

out of space!

Post by devildog31415 »

I had just expanded my / to 40G just a month ago from whatever the default size was in the ova file (I think it was 10, maybe 20).
I'm at 100% use and can't use the GUI.

Help!
devildog31415
Posts: 48
Joined: Thu Jun 12, 2014 10:55 am

Re: out of space!

Post by devildog31415 »

Additional info:

Ran:
du -a / | sort -n -r | head -n 10

And here are the results

36664880 /
30504072 /store
30504068 /store/backups
29897992 /store/backups/nagiosxi
3082472 /usr
1532196 /usr/local
1387452 /var
1311220 /usr/local/nagios
976396 /var/lib
894612 /usr/local/nagios/share
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: out of space!

Post by WillemDH »

Hey,

Do you store your backups locally? Not a good idea. Rsync or ftp them to remote storage.

Grtz
Nagios XI 5.8.1
https://outsideit.net
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: out of space!

Post by scottwilkerson »

I'm with WillemDH, if you have the scheduled backups setup for local it can fill a drive quickly, especially if it is only 40GB. The fact that the bulk of the storage is being taken up in /store/backups/nagiosxi leads me to this conclusion

The default ova is only 10GB in size, and should be expanded to match the amount of things you are going to be monitoring.
http://assets.nagios.com/downloads/nagi ... ements.pdf

40GB would be the recommended minimum, but that is not taking into account storing backups on the server
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
devildog31415
Posts: 48
Joined: Thu Jun 12, 2014 10:55 am

Re: out of space!

Post by devildog31415 »

The only backups I wanted are the config backups and I thought those were SMALL and I set it to only keep 5 copies. I grab those using TSM nightly.
What would these backups be and how do I disable it, or am I misunderstanding the backups/process?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: out of space!

Post by abrist »

Config backups are found in the snapshots. The full backups include the rrds, xi dir, etc, while the snapshots just include the nagios program and object configs. The snapshots should be located in the nom directory:

Code: Select all

/usr/local/nagiosxi/nom/checkpoints
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.
devildog31415
Posts: 48
Joined: Thu Jun 12, 2014 10:55 am

Re: out of space!

Post by devildog31415 »

ok... I want to keep my backups local since I have TSM backing up that folder.
What I would like to do is setup a job that runs and does something like the following command every day to clean up the old folders in the backup location:

Code: Select all

find /store/backups/nagiosxi/ -type d -mtime +7 -exec rm -rf "{}" \;
Can anyone advise me on the right process to get this running as a cron job or whatever you Linux people call it :)
<I'm such a linux newb, but I'M TRYING> :)

BTW: the find "action" of -delete doesn't work since I'm deleting non-empty directories (unless you have words of wisdom there so I can get rid of the "-exec" part)
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: out of space!

Post by abrist »

If you have upgraded to 2014, you could use our scheduled backup component to do this, specifying a max number of backups to preserve at any given time.
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.
devildog31415
Posts: 48
Joined: Thu Jun 12, 2014 10:55 am

Re: out of space!

Post by devildog31415 »

The following has been configured the entire time, is this what you mean or am I missing something still? Because I still ended up with 28G of backup directories in addition to the tar.gz files.
Capture.JPG
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: out of space!

Post by abrist »

How big is each backup? If they are around 4GB each, ~28GB would make sense. Have you considered decreasing the max number of backups to preserve?
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