Hi,
I've searched around the forum and Google but have not found anything relating to my need. What I have currently is a bash script that is passed a single parameter which is the host name of a server. The script returns about 1000 output fields in the form <Name1>:<Value1> <Name2>:<Value2>...
The fields are things like transactions per second, concurrency and latency of various API's exposed on the host. E.g. deleteUserTPS:3 deleteUserLatency:123 addUserTPS:6 addUserLatency:222 etc
My goal is to use Cacti to be able to plot these values over time, one value per graph. In the ideal world, I want to be able to add a device in Cacti and stipulate that its a device that runs our API's and then have Cacti fetch the data with our script and add it to RRA's. If we add a new API e.g. modifyUser and the script starts to add those outfield field's e.g. deleteUserTPS:3 deleteUserLatency:123 addUserTPS:6 addUserLatency:222 modifyUserTPS:2 modifyUserLatency:321 then I would like to see that under the hosts that have that API, then there is now a graph for the TPS and a graph for the latency of modifyUser.
I have managed to get this working end-to-end in Cacti, but only through manually adding an output field on the data input method, then adding data sources, setting up a graph etc etc. This is just not viable though for 1000 fields and would need me to manually do this whenever new fields come through.
Is it not possible to have Cacti plot a graph for every different output field that it finds on a host without the need to pre-specify what to expect and manually configure everything on a field-by-field basis?
If there is another way of doing this with a tool other than Cacti then I'm open to suggestions.
Thanks ever so much
How to quickly graph lots of data
Moderators: Developers, Moderators
Who is online
Users browsing this forum: No registered users and 1 guest