[CLOSED] CSV export only contains last 24 hours

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
dirikuteguh
Posts: 32
Joined: Wed Oct 05, 2016 3:41 pm

[CLOSED] CSV export only contains last 24 hours

Post by dirikuteguh »

Greetings all,

I just encountered a problem with my Cacti installation. When I tried to export graph to CSV, somehow it only contains the last 24 hours of data no matter what time range I used. This feature was never really used before; hence I didn't know about it until now. Cacti version 1.1.24 with MariaDB 5.5 and PHP 7 on RHEL 7.

I searched this forum for similar case, but I couldn't find it (perhaps because English is not my first language). Any pointers is much appreciated. Thank you.
Last edited by dirikuteguh on Mon Aug 21, 2023 8:52 pm, edited 1 time in total.
Teguh
Sysadmin by accident
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: CSV export only contains last 24 hours

Post by macan »

Tested on 1.2.25 (1.2.x branch on github now) and it works fine. I cannot find any issue with export to csv in CHANGELOG, strange.

Please show how you try to export the data.
Let the Cacti grow!
dirikuteguh
Posts: 32
Joined: Wed Oct 05, 2016 3:41 pm

Re: CSV export only contains last 24 hours

Post by dirikuteguh »

I did it the only way I know. I go to GRAPHS tab, select the device where the graph is located, select the time range preset that I need and then click the CSV export button. Simple step on screenshot attached.
csv-export.jpg
csv-export.jpg (201.14 KiB) Viewed 1364 times
But no matter presets selected, the result CSV is always the last 24 hours only.
Teguh
Sysadmin by accident
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: CSV export only contains last 24 hours

Post by macan »

Ok, the same way in 1.2.25 works fine. Try to update
Let the Cacti grow!
dirikuteguh
Posts: 32
Joined: Wed Oct 05, 2016 3:41 pm

Re: CSV export only contains last 24 hours

Post by dirikuteguh »

Is there any other things I should try first? By management order, all software and hardware upgrade (except patches or hardware error) is postponed until December this year (weird, I know). I went as far as replacing graph_xport.php with a fresh one (same version) from download page but to no avail.
Teguh
Sysadmin by accident
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: CSV export only contains last 24 hours

Post by TheWitness »

That's a real old version. We are too small to support such older versions. Our recommendation is to upgrade. Upgrading from 1.1.x to 1.2.x, you must also upgrade spine. Don't forget that. Upgrading is super easy otherwise:

Code: Select all

cd /var/www/html
git clone -b 1.2.x http://github.com/cacti/cacti.git cacti.new
/bin/cp -frp /cacti.new/* cacti
chown -R apache:apache cacti
The, go simply log into Cacti and follow the upgrade instructions.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
dirikuteguh
Posts: 32
Joined: Wed Oct 05, 2016 3:41 pm

Re: CSV export only contains last 24 hours

Post by dirikuteguh »

I will present this to management, see if they will make an eception. Thanks.
Teguh
Sysadmin by accident
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests