Page 1 of 1

Automatic delete indexes not working

Posted: Fri Dec 01, 2023 6:16 am
by osloaz
Hi. I have a problem with maintenance taks. It doesn't delete automatically old indices.
I only can delete it manually with root user.

If I try to delete it manually with "nagios" user y get the next error.

Code: Select all

/usr/local/nagioslogserver/scripts/curator.sh delete indices --older-than 180 --time-unit days --timestring %Y.%m.%d
Traceback (most recent call last):
  File "/bin/curator", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3007, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: elasticsearch-curator==3.4.0
I have check many information but I can't solve it.

Any idea what the problem is?

Thank you very much.

Re: Automatic delete indexes not working

Posted: Fri Dec 01, 2023 4:06 pm
by lgute
Hi @osloaz, thanks for reaching out.

What version of Nagios Log Server are you running and what OS/version?

Re: Automatic delete indexes not working

Posted: Mon Dec 18, 2023 1:20 am
by osloaz
Hi. Sorry for the late reply.

NLS Version: 2.1.15
OS: Red Hat Enterprise Linux Server release 7.9


Regards.

Re: Automatic delete indexes not working

Posted: Tue Dec 19, 2023 11:39 am
by swolf
Hi @osloaz,

I've filed a bug report for this issue. As a workaround for now, if you're comfortable with it, try adding a cron job that runs the script as root. It's not ideal, but I would expect that to work for you until we're able to address the issue properly.

Please let us know if you have any further questions or concerns.