I restored a single-node instance as a test which worked according to instructions here -
https://assets.nagios.com/downloads/nag ... Server.pdf
I was able to restore our config
I was able to get snapshots restored and searchable
However, I see a bogus instance under Instance Status. One is legit - localhost which is the restored version with a different IP/hostname from production. But the other lists the IP/hostname of the production instance with red exclamation marks under elasticsearch and logstash - all other fields are blank. There is a trashcan icon to delete the instance. When I click it I get page is not working http error 500.
How to delete the bogus instance from the restored system?
Restored Nagios Log Server
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Restored Nagios Log Server
This documentation should assist you:
https://assets.nagios.com/downloads/nag ... luster.pdf
https://assets.nagios.com/downloads/nag ... luster.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Restored Nagios Log Server
Nope. cluster_hosts was clean - just had 2 lines, one with localhost and the other with the restored server's IP. I removed the localhost entry anyway and restarted elasticsearch. curl -XGET 'http://localhost:9200/_cat/nodes?v' only shows one node with loopback IP, however instance status in GUI still shows a bogus entry as shown in attached screen cap.
I'll add that System Status does not report anything (wheel constantly spins) for instance localhost, but shows green checkmarks for the bogus instance.
I'll add that System Status does not report anything (wheel constantly spins) for instance localhost, but shows green checkmarks for the bogus instance.
You do not have the required permissions to view the files attached to this post.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Restored Nagios Log Server
What is the output of these commands:
Code: Select all
curl -XGET 'http://localhost:9200/_cat/nodes?v'
curl -XGET 'http://localhost:9200/_cat/health?v'
cat /usr/local/nagioslogserver/var/cluster_hostsAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Restored Nagios Log Server
[root@localhost ~]# curl -XGET 'http://localhost:9200/_cat/nodes?v'
host ip heap.percent ram.percent load node.role master name
localhost.localdomain 127.0.0.1 15 80 2.74 d * 001dd557-fa78-4ad5-a6b9-83211ab3a84d
[root@localhost ~]# curl -XGET 'http://localhost:9200/_cat/health?v'
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks
1584110911 07:48:31 c7bf78c7-aa4a-40fb-ba28-c955add17829 yellow 1 1 22 22 0 0 10 0
[root@localhost ~]# cat /usr/local/nagioslogserver/var/cluster_hosts
192.168.88.130
host ip heap.percent ram.percent load node.role master name
localhost.localdomain 127.0.0.1 15 80 2.74 d * 001dd557-fa78-4ad5-a6b9-83211ab3a84d
[root@localhost ~]# curl -XGET 'http://localhost:9200/_cat/health?v'
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks
1584110911 07:48:31 c7bf78c7-aa4a-40fb-ba28-c955add17829 yellow 1 1 22 22 0 0 10 0
[root@localhost ~]# cat /usr/local/nagioslogserver/var/cluster_hosts
192.168.88.130
Re: Restored Nagios Log Server
Run the following to get a copy of the current settings index:
PM me the nagioslogserver.tar.gz file that it creates and I can take a closer look.
Code: Select all
curl -XPOST http://localhost:9200/nagioslogserver/_export?path=/tmp/nagioslogserver.tar.gzAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.