script to dump historical data but it threw errors

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
daviddief
Posts: 24
Joined: Mon Oct 01, 2018 2:24 pm

script to dump historical data but it threw errors

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: script to dump historical data but it threw errors

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

Be sure to check out our Knowledgebase for helpful articles and solutions!
daviddief
Posts: 24
Joined: Mon Oct 01, 2018 2:24 pm

Re: script to dump historical data but it threw errors

Post by daviddief »

yep, working now...sweet, thanks !
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: script to dump historical data but it threw errors

Post by mbellerue »

Glad to hear everything is working!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked