|
This would be extremely complex... for a start you would have to allow selection of targets from the entire available list, and then override all the available options. These would have to be passed through the CGI unless you want to save state on the server, which has its own problems. This would be close to the work of making a web-based .cfg file editor.
I would expect that most people who want a custom graph will be able to create it in the .cfg files, since they would want it regularly anyway. I may be wrong, but I don't forsee much demand for an on-the-fly userdefined graph feature.
However... please feel free to try. It would need to be almost a separate program, although it could use the same routers2.conf file format and CGI parameters. The actual generation code inside uses data stored in the %interfaces hash (the various Targets,including userdefineds) and so you could create a new entry in this hash for a custom graph, then call the make_graph function as current userdefineds do.
Passed parameters should be embedded in the xgopts variable.
Steve
|