E A S Y question!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

E A S Y question!

Post by benhank »

fellas!
how do I change this script:

Code: Select all

/usr/local/nagiosxi/scripts/backup_xi.sh
so that it excludes the perfdata directory (I don't want to include the perfdata in my backup)? (and don't say "Google" spence...
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: E A S Y question!

Post by tmcdonald »

benhank wrote:(and don't say "Google" spence...
The Trevor will say it: Google!

http://stackoverflow.com/questions/9842 ... es-folders

You'll just need to exclude the directory you want. Are you looking to exclude the RRDs or the unprocessed perfdata?

Also, update your signature. Seeing 1.6 is making me uneasy.
Former Nagios employee
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: E A S Y question!

Post by abrist »

Update yo' signature! R1.6?
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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: E A S Y question!

Post by slansing »

I'd also recommend that you update your signature :)
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: E A S Y question!

Post by sreinhardt »

1.6? man time to update that nagios box!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: E A S Y question!

Post by benhank »

alright alright sheesh....

its this one

Code: Select all

/usr/local/nagios/share/perfdata
it's 39 gigs over here!
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: E A S Y question!

Post by abrist »

In /usr/local/nagiosxi/scripts/backup-xi.sh, change line #84 from:

Code: Select all

tar czfps $mydir/nagios.tar.gz /usr/local/nagios
To:

Code: Select all

tar czfps $mydir/nagios.tar.gz tar --exclude='/usr/local/nagios/share/perfdata' /usr/local/nagios
That should help keep the size of the backup down. If you care about the perfdata, just tar it up every once in a while and overwrite the old perfdata tar.
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.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: E A S Y question!

Post by benhank »

THANKS!
Does my new sig make me look fat?

Lock er up fellas i is be all set!
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: E A S Y question!

Post by abrist »

You really should think about moving to windows me for the personal touch or os/2 warp for the street cred.
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.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: E A S Y question!

Post by benhank »

windowsme? we dont need no newfangled os's. next thing you know you will be telling me to bump my ram up to 4mb's, no sir we are good. lock er up fellas!
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Locked