ibdata1 file size increasing in fusion server

This support forum board is for questions relating to Nagios Fusion.
amane
Posts: 77
Joined: Thu Jan 18, 2018 9:53 am

ibdata1 file size increasing in fusion server

Post by amane »

Hi,

We are using fusion 4. In the fusion server ibdata1 file size is continuously increasing.
Now the ibdata1 file size is 119309074432 bytes. Could you please tell me how we can reduce the size of this file.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: ibdata1 file size increasing in fusion server

Post by cdienger »

Is it 4.0 ? Newer versions should do a better job of keeping the database pruned. I'd suggest upgrading if it's not on 4.1.4 - https://assets.nagios.com/downloads/nag ... ctions.pdf

You can also try freeing up some space immediately by running:

/usr/local/nagiosfusion/scripts/truncate_polled.php
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
amane
Posts: 77
Joined: Thu Jan 18, 2018 9:53 am

Re: ibdata1 file size increasing in fusion server

Post by amane »

Is it 4.0 ? Newer versions should do a better job of keeping the database pruned. I'd suggest upgrading if it's not on 4.1.4 -
We are using 4.0.1. Need to resolve this issue before upgrade to 4.1.4.

You can also try freeing up some space immediately by running:
/usr/local/nagiosfusion/scripts/truncate_polled.php
We have ran above command but its not reduced the ibdata1 size.


is there any way to reduce the size of this file? is there any issue if we delete this file?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: ibdata1 file size increasing in fusion server

Post by cdienger »

Run the following to reclaim space:

cd /usr/local/nagiosfusion/scripts
./truncate_polled.php
echo 'OPTIMIZE TABLE polled_extras;' |mysql -u fusion -pfusion fusion
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
amane
Posts: 77
Joined: Thu Jan 18, 2018 9:53 am

Re: ibdata1 file size increasing in fusion server

Post by amane »

Thanks cdienger,

Do this script need to run with using root account? I have ran this script but not sure if it is working.

[nagios@lxfusnagprd001 scripts]$ ./truncate_polled.php
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: ibdata1 file size increasing in fusion server

Post by cdienger »

I would recommend running it as root. You can run:

echo $?

after running the command. This will show you the result code of the previous command. A 0 means it existed normally.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
amane
Posts: 77
Joined: Thu Jan 18, 2018 9:53 am

Re: ibdata1 file size increasing in fusion server

Post by amane »

Hi cdienger,

Approx. how much time it will take to complete this script??
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: ibdata1 file size increasing in fusion server

Post by cdienger »

It's hard to say. The truncation should be relatively quick, but the optimization I believe requires making a copy of data remaining in the tables after truncation and would depend on system hardware.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
amane
Posts: 77
Joined: Thu Jan 18, 2018 9:53 am

Re: ibdata1 file size increasing in fusion server

Post by amane »

We ran this script again and we got the output as well but idata1 file size is not reduced.

[root@lxfusnagprd001 scripts]# ./truncate_polled.php
polled tables truncated!
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: ibdata1 file size increasing in fusion server

Post by cdienger »

You must run the optimization command as well to reclaim space taken by the database.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked