Restored Nagios Log Server

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
kmartin
Posts: 17
Joined: Tue Jan 21, 2020 11:50 am

Restored Nagios Log Server

Post 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?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Restored Nagios Log Server

Post by Box293 »

This documentation should assist you:
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.
kmartin
Posts: 17
Joined: Tue Jan 21, 2020 11:50 am

Re: Restored Nagios Log Server

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Restored Nagios Log Server

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kmartin
Posts: 17
Joined: Tue Jan 21, 2020 11:50 am

Re: Restored Nagios Log Server

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Restored Nagios Log Server

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked