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.commailto:jobee@linktransit.com
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 mailto:jobee@linktransit.com
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
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
Yep, that sounds like what I'm looking for.
Thanks,
Joe Brouillette IT Specialist Link Transit 509.664.7643 jobee@linktransit.commailto:jobee@linktransit.com
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Tom Laermans Sent: Monday, June 4, 2018 3:12 PM To: observium@observium.org 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.commailto:jobee@linktransit.com
_______________________________________________
observium mailing list
observium@observium.orgmailto:observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Thanks Tom, that is exactly the fix I was looking for. He just opens my web page (or just presses F5) and he has updated graphs.
Thanks,
Joe Brouillette IT Specialist Link Transit 509.664.7643 jobee@linktransit.commailto:jobee@linktransit.com
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Tom Laermans Sent: Monday, June 4, 2018 3:12 PM To: observium@observium.org 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.commailto:jobee@linktransit.com
_______________________________________________
observium mailing list
observium@observium.orgmailto:observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Be careful with this. Doing a "live" query of a platform can potentially spike the CPU of that target platform, and that can have potentially undesirable results for your traffic passing through that platform. This is one of the reasons why you generally want to be polling your devices every five minutes, not every five seconds.
.Ron
From: observium observium-bounces@observium.org On Behalf Of Joe Brouillette Sent: Monday, June 4, 2018 4:43 PM To: 'Observium' observium@observium.org Subject: [Observium] Create a shortcut to a live graph?
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 mailto:jobee@linktransit.com
I think he was referring to the "link to graph" feature producing links with fixed unixtime timestamps in them.
I actually added the "realtime" graph feature to Observium precisely so I could have a dashboard open all the time with realtime graphs of transit/peering links. Remarkably useful during maintenance slots to see traffic moving around between links and to know very quickly if something didn't work right.
Polling a couple of OIDs at intervals measured in seconds isn't really going to be noticed by the device, not even by something 2 decades old.
You definitely don't want to "for real" poll even a modern device this quickly, though. Especially chassis-based or "stacked" devices will often behave very badly, since they communicate between individual OS instances to collect statistics, and this is often not cached very well.
But err, I don't think this is what he meant. :)
adam.
------ Original Message ------ From: "Ron Marosko" ron@rjr-services.com To: "'Observium'" observium@observium.org Sent: 2018-06-04 23:18:36 Subject: Re: [Observium] Create a shortcut to a live graph?
Be careful with this. Doing a “live” query of a platform can potentially spike the CPU of that target platform, and that can have potentially undesirable results for your traffic passing through that platform. This is one of the reasons why you generally want to be polling your devices every five minutes, not every five seconds.
…Ron
From: observium observium-bounces@observium.org On Behalf Of Joe Brouillette Sent: Monday, June 4, 2018 4:43 PM To: 'Observium' observium@observium.org Subject: [Observium] Create a shortcut to a live graph?
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
-- This message has been scanned for viruses and dangerous content by E.F.A. Project http://www.efa-project.org, and is believed to be clean. Click here to report this message as spam. http://smtp.rjr-services.com/cgi-bin/learn-msg.cgi?id=829C21010BB.ABC25&token=ffbd6223bac9c81c901243e40cb0b438
Yeah, I didn’t speak clearly when I said live. Seeing graphs that update every five minutes would work just fine.
Thanks everyone,
Joe Brouillette IT Specialist Link Transit 509.664.7643 jobee@linktransit.commailto:jobee@linktransit.com
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Monday, June 4, 2018 3:25 PM To: Observium observium@observium.org Subject: Re: [Observium] Create a shortcut to a live graph?
I think he was referring to the "link to graph" feature producing links with fixed unixtime timestamps in them.
I actually added the "realtime" graph feature to Observium precisely so I could have a dashboard open all the time with realtime graphs of transit/peering links. Remarkably useful during maintenance slots to see traffic moving around between links and to know very quickly if something didn't work right.
Polling a couple of OIDs at intervals measured in seconds isn't really going to be noticed by the device, not even by something 2 decades old.
You definitely don't want to "for real" poll even a modern device this quickly, though. Especially chassis-based or "stacked" devices will often behave very badly, since they communicate between individual OS instances to collect statistics, and this is often not cached very well.
But err, I don't think this is what he meant. :)
adam.
------ Original Message ------ From: "Ron Marosko" <ron@rjr-services.commailto:ron@rjr-services.com> To: "'Observium'" <observium@observium.orgmailto:observium@observium.org> Sent: 2018-06-04 23:18:36 Subject: Re: [Observium] Create a shortcut to a live graph?
Be careful with this. Doing a “live” query of a platform can potentially spike the CPU of that target platform, and that can have potentially undesirable results for your traffic passing through that platform. This is one of the reasons why you generally want to be polling your devices every five minutes, not every five seconds.
…Ron
From: observium <observium-bounces@observium.orgmailto:observium-bounces@observium.org> On Behalf Of Joe Brouillette Sent: Monday, June 4, 2018 4:43 PM To: 'Observium' <observium@observium.orgmailto:observium@observium.org> Subject: [Observium] Create a shortcut to a live graph?
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.commailto:jobee@linktransit.com
-- This message has been scanned for viruses and dangerous content by E.F.A. Projecthttp://www.efa-project.org, and is believed to be clean. Click here to report this message as spam.http://smtp.rjr-services.com/cgi-bin/learn-msg.cgi?id=829C21010BB.ABC25&token=ffbd6223bac9c81c901243e40cb0b438
participants (4)
-
Adam Armstrong
-
Joe Brouillette
-
Ron Marosko
-
Tom Laermans