PARTIAL backups

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: PARTIAL backups

Post by jolson »

Let's see what your path setting looks like:

Code: Select all

curl -s -XGET localhost:9200/_nodes/?pretty | grep path -A7
If you're missing the 'repo' setting, you might have to remake your repository via the web GUI. After remaking the repository, does the 'repo' setting show up? If so, try deleting your PARTIALs and initializing another backup.

A working server of mine reports results as follows:
curl -s -XGET localhost:9200/_nodes/?pretty | grep path -A7
"path" : {
"data" : "/usr/local/nagioslogserver/elasticsearch/data",
"work" : "/usr/local/nagioslogserver/tmp/elasticsearch",
"home" : "/usr/local/nagioslogserver/elasticsearch",
"conf" : "/usr/local/nagioslogserver/elasticsearch/config",
"logs" : "/var/log/elasticsearch",
"repo" : "/"
},
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
stecino
Posts: 248
Joined: Thu Mar 14, 2013 4:42 pm

Re: PARTIAL backups

Post by stecino »

jolson wrote:Let's see what your path setting looks like:

Code: Select all

curl -s -XGET localhost:9200/_nodes/?pretty | grep path -A7
If you're missing the 'repo' setting, you might have to remake your repository via the web GUI. After remaking the repository, does the 'repo' setting show up? If so, try deleting your PARTIALs and initializing another backup.

A working server of mine reports results as follows:
curl -s -XGET localhost:9200/_nodes/?pretty | grep path -A7
"path" : {
"data" : "/usr/local/nagioslogserver/elasticsearch/data",
"work" : "/usr/local/nagioslogserver/tmp/elasticsearch",
"home" : "/usr/local/nagioslogserver/elasticsearch",
"conf" : "/usr/local/nagioslogserver/elasticsearch/config",
"logs" : "/var/log/elasticsearch",
"repo" : "/"
},

# curl -s -XGET localhost:9200/_nodes/?pretty | grep path -A7
"path" : {
"data" : "/usr/local/nagioslogserver/elasticsearch/data",
"work" : "/usr/local/nagioslogserver/tmp/elasticsearch",
"home" : "/usr/local/nagioslogserver/elasticsearch",
"conf" : "/usr/local/nagioslogserver/elasticsearch/config",
"logs" : "/var/log/elasticsearch",
"repo" : "/"
},
--
"path" : {
"data" : "/usr/local/nagioslogserver/elasticsearch/data",
"work" : "/usr/local/nagioslogserver/tmp/elasticsearch",
"home" : "/usr/local/nagioslogserver/elasticsearch",
"conf" : "/usr/local/nagioslogserver/elasticsearch/config",
"logs" : "/var/log/elasticsearch"
},
"config" : {
--
"path" : {
"data" : "/usr/local/nagioslogserver/elasticsearch/data",
"work" : "/usr/local/nagioslogserver/tmp/elasticsearch",
"home" : "/usr/local/nagioslogserver/elasticsearch",
"conf" : "/usr/local/nagioslogserver/elasticsearch/config",
"logs" : "/var/log/elasticsearch",
"repo" : "/"
},
--
"path" : {
"data" : "/usr/local/nagioslogserver/elasticsearch/data",
"work" : "/usr/local/nagioslogserver/tmp/elasticsearch",
"home" : "/usr/local/nagioslogserver/elasticsearch",
"conf" : "/usr/local/nagioslogserver/elasticsearch/config",
"logs" : "/var/log/elasticsearch",
"repo" : "/"
},

Looks like one of the nodes is missing the repo, also I have setup the backup as /NSL_BACKUP does it matter that repository name isn't properly recongnized?
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: PARTIAL backups

Post by jolson »

does it matter that repository name isn't properly recongnized?
No - that does not matter, what does matter is that the 'repo' shows up. Have you tried remaking your repo via the Web GUI and checking on the path once more?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
stecino
Posts: 248
Joined: Thu Mar 14, 2013 4:42 pm

Re: PARTIAL backups

Post by stecino »

jolson wrote:
does it matter that repository name isn't properly recongnized?
No - that does not matter, what does matter is that the 'repo' shows up. Have you tried remaking your repo via the Web GUI and checking on the path once more?
Repo doesn't show up for one of the nodes, does that matter? I can delete the repo and add it again through the gui.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: PARTIAL backups

Post by jolson »

Repo doesn't show up for one of the nodes, does that matter?
Yes it does.
I can delete the repo and add it again through the gui.
Please give that a try and see if your instance picks up the 'repo' path.

Code: Select all

curl -s -XGET localhost:9200/_nodes/?pretty | grep path -A7
Thanks!

Jesse
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked