You can think of graph.php as an API based on HTTP GET requests.
from and to can contain either a unix timestamp or a number of seconds relative to the current time.
This is how we use it internally, so the URL structure is pretty well defined and doesn't change.
Note that in general you need to be logged in to view graphs, so for this kind of thing I'd usually recommend either running a script to periodically GET the graphs (with authenticated CURL requests) and store them statically, or (less secure) to allow unauthenticated graph viewing from your office IP block.
adam.
------ Original Message ------ From: "Tom Laermans" tom.laermans@powersource.cx To: observium@observium.org Sent: 2018-06-04 23:12:06 Subject: Re: [Observium] Create a shortcut to a live graph?
Hi Joe,
If you remove the to= parameter, you can set from= to a negative number, i.e. number of seconds from now. To display a graph for the last 24 hours, set it to -86400.
Tom
On 6/4/2018 11:43 PM, Joe Brouillette wrote:
Hey all, is there a way to create a shortcut to a live graph in Observium? I’ve used the “Link to Graph” button but that just creates a static picture of what’s going on. I’d like to create a web page with graphs for my manager but those graphs need to display live data.
Thanks,
Joe Brouillette
IT Specialist
Link Transit
509.664.7643
jobee@linktransit.com
observium mailing list observium@observium.orghttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium