Automatic delete indexes not working

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Post Reply
osloaz
Posts: 3
Joined: Mon Jun 05, 2023 1:02 am

Automatic delete indexes not working

Post 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.
User avatar
lgute
Posts: 117
Joined: Mon Apr 06, 2020 2:49 pm

Re: Automatic delete indexes not working

Post by lgute »

Hi @osloaz, thanks for reaching out.

What version of Nagios Log Server are you running and what OS/version?
Please let us know if you have any other questions or concerns.

-Laura
osloaz
Posts: 3
Joined: Mon Jun 05, 2023 1:02 am

Re: Automatic delete indexes not working

Post by osloaz »

Hi. Sorry for the late reply.

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


Regards.
User avatar
swolf
Developer
Posts: 302
Joined: Tue Jun 06, 2017 9:48 am

Re: Automatic delete indexes not working

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