
If you replace is_numeric by isset you introduce command line injection, so let's not just do that ;-) ;-(
While we can disable refresh on a set number of pages I wouldn't want to disable refresh on that page because - the people who manually edited the URL (likely for dashboard/noc wall purposes) will no longer have a refreshing graph - if the from/to stay static you'll just refresh the same graph, no harm no foul
So yes, I still follow you re if you click on the graph you get that graph, and maybe we should/could support 1d/1w etc but as there is already a workaround, even if it's in seconds, it should help most people out. If Ian wants to display that page on the noc wall, he just needs to sort out the from= parameter to whatever period is wanted in the graph...
Tom
On 2/14/2018 10:09 PM, Adam Armstrong wrote:
(i have historical uses for this, like having windows open during ddos/maintenance/etc and wanting to keep exactly that snapshot visible for future comparison, I actually think that page should not be refreshing, and at some point that was disabled, IIRC)
On 2018-02-14 21:08:24, Adam Armstrong adama@observium.org wrote:
Yes. It seems annoying to me that if I click a graph and then go to lunch, when I come back that graph is gone!
I did fiddle with the options to see if the RRD date fiddling works. I did notice that setting negative numerical values worked, but didn't think doing it seconds was useful :D
TBH, it just needs the is_numeric() swapped with isset() to allow the RRD date stuff to work.
adam.
On 2018-02-14 21:05:26, Tom Laermans tom.laermans@powersource.cx wrote:
We already can do this somewhat - you can already omit to= and set from= to -3600 for example to get the last hour etc. But the graph preset links are hardcoded to unix timestamps.
I challenged this once, a long time ago, and you were of the opinion that if you click on a minigraph that you see, you should then get that exact graph but larger. I had to agree, it made/makes sense :-) It's just totally useless if you set that page to refresh, unless you edit the URL as detailed above...
Tom
On 2/14/2018 9:55 PM, Adam Armstrong wrote:
So, looking at the code history, this page has never really operated in any other way. It's used UNIX timestamps for from and to variables in the URL as far back as revision 2500 in 2012.
The one way it would have behaved as a "rolling" display is that if you go to the page without any timestamps set, it uses the default of "from one day ago to now".
It would be possible to modify the page to accept periods (we have an number of these defined) and/or allow rrdtool-style non-numeric time strings (like -1d, -1y).
adam.
On 2018-02-14 20:17:26, Adam Armstrong adama@observium.org wrote:
That page only auto refreshes because every page does.
We didn't make every page auto refresh just so that one would for no reason, obviously.
adam.
On 2018-02-14 20:15:00, Ian Armstrong ian.armstrong@weltec.ac.nz wrote:
Hi,
I have some large TV screens where we monitor network traffic. So we want to see a the most recent traffic of course.
In the previous version of Observium it worked like a charm - I clicked whatever graph of traffic I was interested in and it updated every minute so I could see traffic throughout the day.
I don't want this to sound like a dumb question but what is the point of have the page refresh then - if the graph data isn't being refreshed?
Is there a way to cause Observium to behave as it did - the "rolling time-window" style?
Ian
*From:* observium observium-bounces@observium.org on behalf of Adam Armstrong adama@memetic.org *Sent:* Thursday, 15 February 2018 1:51:37 a.m. *To:* 'Observium' *Cc:* 'Observium' *Subject:* Re: [Observium] Graphs not showing most recent data when refreshing Ohh, you mean on the graph browser page?
Aha. You didn't specify that originally, so I assumed you meant the line-of-four arrangement we use.
The graph browser has fixed times in the URL by design, this is so the UI doesn't change user selected time periods.
The graph browser won't show you an auto-refreshing rolling time-window. This was intentional!
What exactly are you trying to accomplish?
Adam.
Sent from BlueMail http://www.bluemail.me/r?b=11998 On 14 Feb 2018, at 08:24, Ian Armstrong <Ian.Armstrong@weltec.ac.nz mailto:Ian.Armstrong@weltec.ac.nz> wrote:
Hmmm... I haven't modified anything. I installed it as per the instructions and added devices and that's all. As I say the previous version refreshed the graphs to show data relative to the current time. Perhaps seeing is believing. The screenshot below shows server time and the graph. The graphs was displayed about 7 or 8 minutes before the screenshot. You can see that the graph ends at about 21:12, but the server time is after 21:20. You can also see the data presets are not for the last 6 hours. But I don't want to cloud the issue if the data presents value is irrelevant. Any other thoughts perchance? Ian ------------------------------------------------------------------------ *From:* observium <observium-bounces@observium.org> on behalf of Adam Armstrong <adama@memetic.org> *Sent:* Wednesday, 14 February 2018 1:29:45 p.m. *To:* 'Observium' *Cc:* 'Observium' *Subject:* Re: [Observium] Graphs not showing most recent data when refreshing Hi, I'm not sure I understand the question. The graph time periods are dynamically generated at each page load as relative to the current time. There's no real scope for the behaviour you're describing unless you've modified something and broken how the graph timestamps are generated. Adam. Sent from BlueMail <http://www.bluemail.me/r?b=11998> On 14 Feb 2018, at 00:18, Ian Armstrong <Ian.Armstrong@weltec.ac.nz <mailto:Ian.Armstrong@weltec.ac.nz>> wrote: Hi, I have set Refresh pages to 1 minute and web pages are visibly refreshing, however, they do not show the latest data. The refresh just displays the same data between the "Data presets" value. It doesn't make sense to me: having a refresh but only showing the same data. The same problem is occuring for the Event Log display. I have checked around to see if I should be using a different value for Data Presets but they are all just for a particular time period. There is nothing for "Latest 6 hours" or some such this. In an older version of Observium it worked fine. Graphs always refresh to show the latest data. It is only now that I have installed a new version (a fresh install not an upgrade) that this problem has appeared. Many thanks for your help in advance. Version information is below. Versions: *Observium CE* 17.9.0 (25th September 2017) *OS* Linux 4.4.0-62-generic [amd64] (Ubuntu 16.04) *Apache* 2.4.18 (Ubuntu) *PHP* 7.0.25-0ubuntu0.16.04.1 (OPcache: ENABLED) *Python* 2.7.12 *MySQL* 5.7.17-0ubuntu0.16.04.1 (extension: mysqli 5.0.12-dev) *SNMP* NET-SNMP 5.7.3 *RRDtool* 1.5.5 Ian *Ian Armstrong* *Principal Academic Staff Member* *School of Information Technology* *DDI*: +64 4 830 3055 *Email*:ian.armstrong@weltec.ac.nz <mailto:joe.serci@weltec.ac.nz>_ _*URL*: www.weltec.ac.nz <http://www.weltec.ac.nz/>_ _* **WelTec* Private Bag 39803, Lower Hutt 5045 Wellington, New Zealand 1504644128592_PastedImage ------------------------------------------------------------------------ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium ------------------------------------------------------------------------ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium