nagiosxi backup issue

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

nagiosxi backup issue

Post by benhank »

a commercial break from the " my snmptt is busted" show


When I run a backup on my Production server, it completes with no errors.
When i scp the tar file to my secondary server, and then run the restore script, I get an error saying "blah blah you are screwed" unexpected end of file"
This was working fine up until a few weeks ago.
I am including the scripts I use for your viewing pleasure
Last edited by sreinhardt on Thu Sep 12, 2013 4:03 pm, edited 1 time in total.
Reason: removed files for passwords
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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: nagiosxi backup issue

Post by sreinhardt »

First note, and could be from uploading to the servers, they are in dos format not unix. Otherwise nothing is screaming at me that its wrong, what line is the error at?

Edit: You are missing a semi-colon on 86, 67, 53, 42, 18 and 7, yep in revers order. Otherwise there are just a few missing spaces between ; and then in a few places but still nothing major or that should cause an issue.
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.
Locked