Log server installation issue - no clues

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: Log server installation issue - no clues

Post by jolson »

Code: Select all

Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Try using 'y' at the above points instead of 'n'.
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.
gjcoevert
Posts: 1
Joined: Thu Nov 05, 2015 7:09 am

Re: Log server installation issue - no clues

Post by gjcoevert »

As far as I know, there is no option to use 'y' in this automated procedure, is there?
One of the scripts ( nagioslogserver/curator-expandwildcards.patch) which is kicked off during the installation of the Nagios Logserver, is executing the following code:

Code: Select all

--- curator.py~ 2015-07-20 17:21:21.300099384 -0400
+++ curator.py  2015-07-20 17:21:52.605118057 -0400
@@ -220,7 +220,7 @@

 def get_indices(client, prefix='logstash-', exclude_pattern=None):
     """Return a sorted list of indices matching prefix"""
-    _indices = sorted(client.indices.get_settings(index=prefix+'*', params={'expand_wildcards': 'closed'}).keys())
+    _indices = sorted(client.indices.get_settings(index=prefix+'*', params={'expand_wildcards': 'open,closed'}).keys())
     if exclude_pattern:
         pattern = re.compile(exclude_pattern)
         return list(filter(lambda x: not pattern.search(x), _indices))
This is the script which is causing the installation to fail. You could either adjust the file curator.py yourself to the original value, before patching.
Or you could deinstall the python package by running

Code: Select all

pip uninstall elasticsearch-curator
. This should be done from the directory /usr/lib/python2.7/site-packages (in case of RHEL 7). when choosing this option, you should remove and unpacke the nagioslogserver-latest.tar.gz once again. And run

Code: Select all

./fullinstall
This worked for me...
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Log server installation issue - no clues

Post by jolson »

@gjcoevert, that is the correct procedure - thank you.

@sangeetha, please let us know if this works for you.
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.
sangeetha
Posts: 21
Joined: Mon Sep 28, 2015 3:09 am

Re: Log server installation issue - no clues

Post by sangeetha »

I had gone with the VM rebuilt and my problem was solved.
thank you.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Log server installation issue - no clues

Post by jolson »

Excellent, may I close this thread?
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