i think there comes a day in everyone life when you suddenly realize that you can do something that is prolly really simple:
as crazy as it may sound I have never had to restore an entire snapshot into nagios. yes yes you may laugh.
we haven't upgraded to 20 12 yet.
snapshots
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: snapshots
Are you asking how to backup and restore from a snapshot? Or simple explaining that you have found out how? 
Re: snapshots
We will wait to laugh until your upgrade is completed and stable. You may want to check out this doc for a chuckle though 
http://assets.nagios.com/downloads/nagi ... ing_XI.pdf
Maybe this one to:
http://assets.nagios.com/downloads/nagi ... ctions.pdf
http://assets.nagios.com/downloads/nagi ... ing_XI.pdf
Maybe this one to:
http://assets.nagios.com/downloads/nagi ... ctions.pdf
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.
"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.
Re: snapshots
I know those things (i hope) but what I mean is that when you get a failed apply config, and it shows you the latest snapshot (in red) and the snapshot prior to that, How do I revert to the good one?
I tried the restore_xi.sh but it didn't work.
So i am asking how do I roll back to the good snapshot?
I tried the restore_xi.sh but it didn't work.
So i am asking how do I roll back to the good snapshot?
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
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
Re: snapshots
As it never writes out the configs on fail, your old configs are still on the older "working" version even though the database is wrong. You can either undo your changes by hand, or revert the snapshot. To revert, go to the snapshot page in XI:
Config --> Core Config Manager --> Quick Tools --> Config Snapshots
Click on the Green action arrows next to the snapshot you want to revert to.
Config --> Core Config Manager --> Quick Tools --> Config Snapshots
Click on the Green action arrows next to the snapshot you want to revert to.
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.
"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.
Re: snapshots
thats the difficulty we havent upgraded to 2012 yet, so I have to do the rollback old school. (prior to 2012).
Let me clarify, I have to rollback to the previous snapshot, using the method (that I dont know), that was used prior to 2012. I don't have the green arrows option.
Let me clarify, I have to rollback to the previous snapshot, using the method (that I dont know), that was used prior to 2012. I don't have the green arrows option.
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
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
Re: snapshots
I apologize, as I missed the 2011 bit.
restore_xi.sh will only work if you have run backup_xi.sh previously. Any config snapshots you have are just compressed archives of the nagios cfgs, not backups of the ql db.
If you did not run backup_xi.sh, you will have to remove the broken configs in the XI CCM by hand before the upgrade.
restore_xi.sh will only work if you have run backup_xi.sh previously. Any config snapshots you have are just compressed archives of the nagios cfgs, not backups of the ql db.
If you did not run backup_xi.sh, you will have to remove the broken configs in the XI CCM by hand before the upgrade.
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.
"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.
Re: snapshots
Sorry I know that this is simple. I just want to make sure that I got this:
after a busted apply config, if if I can't seem to fix the error that cause apply config to fail,\
the only way to get the apply config to not fail is by figuring out what went wrong and changing it?
In 2012, you can roll back to the last good config by hitting those green arrows.
in pre 2012, there is no manual way to roll back to the last good config, you have to fix the problem correct?
man I can't wait till we upgrade...
after a busted apply config, if if I can't seem to fix the error that cause apply config to fail,\
the only way to get the apply config to not fail is by figuring out what went wrong and changing it?
In 2012, you can roll back to the last good config by hitting those green arrows.
in pre 2012, there is no manual way to roll back to the last good config, you have to fix the problem correct?
man I can't wait till we upgrade...
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: snapshots
Correct, this was a big addition IMO.benhank wrote:in pre 2012, there is no manual way to roll back to the last good config, you have to fix the problem correct?
The best bet is to go to Configure -> CCM -> Tools -> Write Config Files
Do each item top down until you see an error.
STOP
use the error to fix the problem
repeat until there are no errors and then click the final button to restart nagios using this configuration.