Wrong backup size in gui

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Shades007
Posts: 8
Joined: Thu Jul 08, 2021 3:17 am

Wrong backup size in gui

Post by Shades007 »

Hi Support,

Our nagios local and ssh backup size is around 13GB from terminal (ll -h /store/backups/nagiosxi ) while gui shows only 4.83GB
The backup is healthy though.
size.PNG
Anyfix for this?

Regards,
Sobhan.
You do not have the required permissions to view the files attached to this post.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Wrong backup size in gui

Post by gsmith »

Hi,

Could you please provide the output of:

Code: Select all

ll -h /store/backups/nagiosxi
Thanks
Shades007
Posts: 8
Joined: Thu Jul 08, 2021 3:17 am

Re: Wrong backup size in gui

Post by Shades007 »

total 112G
drwxr-xr-x 2 nagios nagios 77 Sep 10 10:34 1631241243
drwxr-xr-x 2 nagios nagios 77 Sep 29 00:00 nagiosxi.1632844802
-rw-r--r-- 1 nagios nagios 13G Oct 24 03:05 nagiosxi.1635012002.tar.gz
-rw-r--r-- 1 nagios nagios 13G Oct 25 01:04 nagiosxi.1635091201.tar.gz
-rw-r--r-- 1 nagios nagios 13G Oct 25 03:06 nagiosxi.1635098401.tar.gz
-rw-r--r-- 1 nagios nagios 13G Oct 26 01:13 nagiosxi.1635177602.tar.gz
-rw-r--r-- 1 nagios nagios 13G Oct 26 03:06 nagiosxi.1635184801.tar.gz
-rw-r--r-- 1 nagios nagios 13G Oct 27 01:10 nagiosxi.1635264001.tar.gz
-rw-r--r-- 1 nagios nagios 13G Oct 27 03:05 nagiosxi.1635271201.tar.gz
-rw-r--r-- 1 nagios nagios 13G Oct 28 01:09 nagiosxi.1635350401.tar.gz
-rw-r--r-- 1 nagios nagios 13G Oct 28 03:12 nagiosxi.1635357601.tar.gz
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Wrong backup size in gui

Post by gsmith »

Hi,

Could you please send me a System Profile so I can try to duplicate this issue?

1. Login to the Nagios XI GUI using a web browser.
2. Click the "Admin" > "System Profile" Menu
3. Click the "Download Profile" button
4. Save the profile.zip file and share the file in a private message and then
reply to this post to bring it up in the queue.

Thank you
Shades007
Posts: 8
Joined: Thu Jul 08, 2021 3:17 am

Re: Wrong backup size in gui

Post by Shades007 »

Hi gsmith,

Have pm you the profile.


Thanks..
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Wrong backup size in gui

Post by gsmith »

Hi

Please run this on the xi server from a CLI:

Code: Select all

echo "select * from xi_options where name like '%scheduledbackups_last_backup_size%'" | mysql -u root -pnagiosxi nagiosxi
Let me know the result.

Thanks!
Shades007
Posts: 8
Joined: Thu Jul 08, 2021 3:17 am

Re: Wrong backup size in gui

Post by Shades007 »

Hi gsmith,

as requested.

# echo "select * from xi_options where name like '%scheduledbackups_last_backup_size%'" | mysql -u root -pnagiosxi nagiosxi

option_id name value
155 scheduledbackups_last_backup_size 5182008811

Thanks.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Wrong backup size in gui

Post by gsmith »

Hi,

So now we have three values for the size of the backup:

1. 13 G - filesystem (-rw-r--r-- 1 nagios nagios 13G Oct 28 03:12 nagiosxi.1635357601.tar.gz) <---TRUTH
2. 4.83 G as reported on the Backups web page
3. 5.2 G - the value stored in the database

I see that in another forum post that Benjamin Smith was helping you with NDO issues. I would
like you to ensure that that is corrected first. Once it is then take a backup and lets look to
see if the web page is now reporting the correct value for the backup size.

Thanks
Locked