Page 1 of 1

How to keep my graphs after a reboot

Posted: Mon Oct 01, 2012 4:36 pm
by WirelessRudy
When I reboot my router, I lose all my graphs.
How can I preserve the info of the graphs so after a reboot I can still read them?

Re: How to keep my graphs after a reboot

Posted: Mon Oct 01, 2012 4:47 pm
by randolf
Saving them to disk. There is an option to do that.

Re: How to keep my graphs after a reboot

Posted: Tue Oct 02, 2012 2:57 am
by WirelessRudy
Saving them to disk. There is an option to do that.
Can you explain me how that works? The manual is not showing any example. All it says 'store-on-disk' can be set to 'yes', which is default and with me always 'yes'.
But in the file list I don't see any file being created? (Not even after days...)

So, good suggestion, but how to do it?

Re: How to keep my graphs after a reboot

Posted: Tue Oct 02, 2012 12:58 pm
by randolf
I think that the files are hidden but I can assure you that it works. In order the graphic system be stored you have to check "Store on disk" in every graph tou are using. An advice: put a period of saving to disk much longer like "hour" I think that It saves flash write cycles.

Regards,

Re: How to keep my graphs after a reboot

Posted: Tue Oct 02, 2012 1:36 pm
by WirelessRudy
I think that the files are hidden but I can assure you that it works. In order the graphic system be stored you have to check "Store on disk" in every graph tou are using. An advice: put a period of saving to disk much longer like "hour" I think that It saves flash write cycles.

Regards,
Wel, if they are 'hidden' how do I 'unhide' them? I don't even know what name these files would get....

Re: How to keep my graphs after a reboot

Posted: Tue Oct 02, 2012 1:40 pm
by mrz
You can't unhide them. Stored data files is for system use only and are not accessible by users.

Re: How to keep my graphs after a reboot

Posted: Tue Oct 02, 2012 2:48 pm
by janisk
also, it helps to read the manual:
http://wiki.mikrotik.com/wiki/Manual:Tools/Graphing

Re: How to keep my graphs after a reboot

Posted: Tue Oct 02, 2012 3:57 pm
by WirelessRudy
You can't unhide them. Stored data files is for system use only and are not accessible by users.
That's not a lot of help then... Can you than help me out how such data can survive a reboot?
also, it helps to read the manual:
http://wiki.mikrotik.com/wiki/Manual:Tools/Graphing
What a good suggestion! Like I haven't already done so. In fact, this tread already told I've done so. The manual is just not of any help here....

The bottom line is: How does graph info that is very useful to see what is and has been happening over time, survive a reboot of a router?
I still would like to see my traffic over some interface after a reboot. And I would like to see what the memory usage was before a reboot.

You guys should be able to give me slightly better answers on this topic..... :(

Re: How to keep my graphs after a reboot

Posted: Tue Oct 02, 2012 4:07 pm
by janisk
from this section in manual:
http://wiki.mikrotik.com/wiki/Manual:To ... ng#General
store-every (24hours | 5min | hour; Default: 5min) How often to write collected data to system drive.
maybe you can suggest on how to change the text to make it more obvious, that 'store-every' with options of 24hours, 5 minutes or 1 hour make sure that collected data is saved to storage (system storage) and this is done to prevent graphing data from disappearing.

edit:

this is how it look in CLI:

ros code

[admin@OriginC] /interface ethernet> /tool graphing set store-every=

StoreEvery ::= 24hours | 5min | hour

Re: How to keep my graphs after a reboot

Posted: Tue Oct 02, 2012 5:20 pm
by WirelessRudy
I don't know if I'm getting somewhere now.
I set the store time from every 5m to 24Hours. See what happens.

Does that now mean that if the router is rebooted after the start up it picks up old date from that 'hidden' system file?
And is that than data only from the last 24hours?
What with data from the last days/weeks/months/year?
And why is that not working when the disk write is set to 5mins? (This is always been the setting, for years...)

The month and year graph is the only way I can see if the graphs my provider are sending me (and basis for the contract/bill) are sort of the same as what I see in my router.

Re: How to keep my graphs after a reboot

Posted: Tue Oct 02, 2012 5:50 pm
by mrz
24h setting means that it will store data every 24hours if your router reboots before that nothing will be stored.
What exactly is not working with 5min?

Re: How to keep my graphs after a reboot

Posted: Tue Oct 02, 2012 7:04 pm
by WirelessRudy
Well, when I reboot the router, all the graphs (interfaces, cpu, memory, queues..) are gone and I am presented with a new graph....

But maybe it is this router? I have other issues now with this one too. (support request made). Dns cache can't be used. Nothing ends up in the cache. Also after some hours people start to loose ability to go on line. After a reboot all clients can go online again. (But than my graphs were all gone again...)
I see a notice of bad sectors on the hd. Can that have something to do with it?

Re: How to keep my graphs after a reboot

Posted: Tue Oct 02, 2012 8:26 pm
by Caci99
I believe what you are looking for is broken since after version 5.x, although I am not 100% sure.
The reason might be the ntp synchronizing time. The ntp clients takes a while to synchronise, thus causing
the graph to start at 1970 I believe.
Any way, as I said I am not completely sure. That is because as much as I like the graphing tool on RouterOS,
I never considered it as reliable, so it is better to store the data on some other server, like Cacti.

Re: How to keep my graphs after a reboot

Posted: Tue Oct 02, 2012 10:50 pm
by 01101110110110
I remember there was a script that generated actual files for the graphs using the fetch command, I can't recall what it was called but I'm sure you could check out the script repository on the wiki and find it.

Re: How to keep my graphs after a reboot

Posted: Mon Jul 27, 2020 7:23 am
by neck
I believe what you are looking for is broken since after version 5.x, although I am not 100% sure.
The reason might be the ntp synchronizing time. The ntp clients takes a while to synchronise, thus causing
the graph to start at 1970 I believe.
Any way, as I said I am not completely sure. That is because as much as I like the graphing tool on RouterOS,
I never considered it as reliable, so it is better to store the data on some other server, like Cacti.
Yes, that's right, that's why you need to write a script that synchronizes the time when turned on.
/ system ntp client set enabled = no
/ system ntp client set enabled = yes
Set to write to disk 1 hour, this will prevent writing immediately after the router boots, for 1970. And the schedule will be saved.
  / tool graphing set store-every = hour
Good luck :)

Image