Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Pre and Post Action for Data Queries

 
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests
Author Message
henkwiedig



Joined: 06 Aug 2009
Posts: 7
Location: Germany

PostPosted: Wed Sep 02, 2009 4:21 am    Post subject: Pre and Post Action for Data Queries Reply with quote

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

PostPosted: Wed Sep 02, 2009 4:40 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group