|
|
| Author |
Message |
henkwiedig
Joined: 06 Aug 2009 Posts: 7 Location: Germany
|
Posted: Wed Sep 02, 2009 4:21 am Post subject: Pre and Post Action for Data Queries |
|
|
We use a lot of Data Queries with do not get the data by snmp but insted we use SQL, CSV files, Web Pages, ...
It woult be useful to have a pre action in data queries wich could fetch the data to the local cacti maschine where it's then parsed, insted of for example calling the web page once per value.
Post acions could cleanup, start onother data gatering, ... |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 11822 Location: MI, USA
|
Posted: Wed Sep 02, 2009 4:40 am Post subject: |
|
|
I would prefer this to be done asynchronously. The pre and post actions, would likely slow things down.
By doing this asynchronously, we simply always expect the latest data to either be in your flat file, or database table.
So, I would like to reject this request, if you don't mind. There are too many published and unpublished plugins that already take the async route.
I suggest you look at a simple plugin like dsstats for a method to launch collectors in the background, if you want to do this in Cacti. There is a hook called poller_top and another called poller_bottom that address your requirement perfectly.
TheWitness |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|