Page 1 of 1

Restored Nagios Log Server

Posted: Tue Mar 10, 2020 12:20 pm
by kmartin
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?

Re: Restored Nagios Log Server

Posted: Tue Mar 10, 2020 6:01 pm
by Box293
This documentation should assist you:
https://assets.nagios.com/downloads/nag ... luster.pdf

Re: Restored Nagios Log Server

Posted: Wed Mar 11, 2020 10:36 am
by kmartin
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.

Re: Restored Nagios Log Server

Posted: Thu Mar 12, 2020 7:58 pm
by Box293
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_hosts

Re: Restored Nagios Log Server

Posted: Fri Mar 13, 2020 9:50 am
by kmartin
[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

Re: Restored Nagios Log Server

Posted: Fri Mar 13, 2020 5:20 pm
by cdienger
Run the following to get a copy of the current settings index:

Code: Select all

curl -XPOST http://localhost:9200/nagioslogserver/_export?path=/tmp/nagioslogserver.tar.gz
PM me the nagioslogserver.tar.gz file that it creates and I can take a closer look.