Page 1 of 1

Need help with some coding for perf graphs time selector

Posted: Tue Jan 04, 2011 6:57 am
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

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

Posted: Tue Jan 04, 2011 10:30 am
by tonyyarusso
The values should be in Unix epoch form, the number of seconds since midnight 1 January 1970.