LS Does not delete the index (maintenance)

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
alopera
Posts: 47
Joined: Fri Dec 21, 2018 5:08 am

LS Does not delete the index (maintenance)

Post by alopera »

I set un maintenance

Delete index older than 21 days

But the index are not deleted.

I can delete manually
alopera
Posts: 47
Joined: Fri Dec 21, 2018 5:08 am

Re: LS Does not delete the index (maintenance)

Post by alopera »

Snapshot_maintenance Job is SUCCESFULL
Is executed everyday
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: LS Does not delete the index (maintenance)

Post by cdienger »

Run this command on the NLS command line:

Code: Select all

tail -f /usr/local/nagioslogserver/var/jobs.log
and then while that is left running, manually run the snapshots_maintenance job under Admin > System > Command Subsystem. It may take a moment or two, but eventually you should see content in the jobs.log regarding the job. If you don't see anything after a minute, try running the job again from the XI interface.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
alopera
Posts: 47
Joined: Fri Dec 21, 2018 5:08 am

Re: LS Does not delete the index (maintenance)

Post by alopera »

LS is 2.0.8

The output is

Running command do_maintenance with args ' ' for job id: snapshot_maintenance
Tracebook (most recent call last):
File "/usr/bin/curator", line 7 in <module>
Import Error: No module name curator.curator
-----
Running cmd: /usr/local/nagioslogserver/scripts/curator.sh optime indices --older-than 2 -- time-unit days --timestring %Y.%m.%d
Return 1

-----
Tracebook (most recent call last):
File "/usr/bin/curator", line 7 in <module>
Import Error: No module name curator.curator
-----
Running cmd: /usr/local/nagioslogserver/scripts/curator.sh close indices --older-than 15 -- time-unit days --timestring %Y.%m.%d
Return 1

-----
Tracebook (most recent call last):
File "/usr/bin/curator", line 7 in <module>
Import Error: No module name curator.curator
-----
Running cmd: /usr/local/nagioslogserver/scripts/curator.sh delete indices --older-than 21 -- time-unit days --timestring %Y.%m.%d
Return 1

-----
SUCCESS
Running command run_alerts with args ' ' for job id: run_all_alerts
SUCCESS
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: LS Does not delete the index (maintenance)

Post by cdienger »

It appears that /usr/lib/python2.7/site-packages/ is missing from the system. Can you verify if you see it there or not? If you don't see it then try installing it with:
pip install elasticsearch-curator-3.4.0
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked