Page 2 of 2

Re: Log server installation issue - no clues

Posted: Thu Nov 05, 2015 12:41 pm
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'.

Re: Log server installation issue - no clues

Posted: Mon Dec 21, 2015 6:10 am
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...

Re: Log server installation issue - no clues

Posted: Mon Dec 21, 2015 11:19 am
by jolson
@gjcoevert, that is the correct procedure - thank you.

@sangeetha, please let us know if this works for you.

Re: Log server installation issue - no clues

Posted: Tue Dec 22, 2015 4:54 am
by sangeetha
I had gone with the VM rebuilt and my problem was solved.
thank you.

Re: Log server installation issue - no clues

Posted: Tue Dec 22, 2015 10:24 am
by jolson
Excellent, may I close this thread?