Need help with some coding for perf graphs time selector

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Need help with some coding for perf graphs time selector

Post by Box293 »

I've been playing with some code trying to get functionality that allows for time selection in the perfgraphs sidebar. This is so I can view performance graphs for a specific time period.

I am attempting to build a url that has the specified &start=<some value>&end=<some value> added to it but I'm not having much luck.

Using my prepare button I am able to get information parsed back however I don't know how to build the url to show the time period I want.

It seems that the URL I end up creating is always http://nagiosxiserver/nagiosxi/perfgraphs/

Any help is greatly appreciated. As usual I'm stuck due to my lack of programming abilities, I just can't seem to work it out :cry:

Attached is a copy of my current work in progress.
index from perfgraphs.zip
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Need help with some coding for perf graphs time selector

Post by tonyyarusso »

The values should be in Unix epoch form, the number of seconds since midnight 1 January 1970.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
Locked