I set un maintenance
Delete index older than 21 days
But the index are not deleted.
I can delete manually
LS Does not delete the index (maintenance)
Re: LS Does not delete the index (maintenance)
Snapshot_maintenance Job is SUCCESFULL
Is executed everyday
Is executed everyday
Re: LS Does not delete the index (maintenance)
Run this command on the NLS command line:
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.
Code: Select all
tail -f /usr/local/nagioslogserver/var/jobs.logAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: LS Does not delete the index (maintenance)
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
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
Re: LS Does not delete the index (maintenance)
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.