Page 1 of 1

script to dump historical data but it threw errors

Posted: Sun Jul 21, 2019 8:25 pm
by daviddief
Hi,

Wanted to run the script to dump historical data but it threw errors and I still have history. The point to this is I have a lot in Operations Center showing like 200+ days due to this being non-prod for a while and I want to clear out all that junk and start fresh or at least maybe 30 days back.

No such file or directory error for lines 40/41/133/134

Running Nagios XI 5.6.4

Re: script to dump historical data but it threw errors

Posted: Mon Jul 22, 2019 12:15 pm
by benjaminsmith
Hi David,

Are you running the script as root user? If not, please try to run it once more as root user. It's working for me on Nagios 5.6.4.

Code: Select all

# Log in as root
cd /usr/local/nagiosxi/scripts
./remove_historical_data.sh

Re: script to dump historical data but it threw errors

Posted: Mon Jul 22, 2019 12:25 pm
by daviddief
yep, working now...sweet, thanks !

Re: script to dump historical data but it threw errors

Posted: Mon Jul 22, 2019 1:09 pm
by mbellerue
Glad to hear everything is working!