Hi guys,
I am new to cacti...I am working on a monitoring application in PHP which will allow the users to select certain statistics and then build graphs for them.
The data is retrieved using a script I have written. I wanted to know how to invoke the poller and then view the graphs for the data that is given by the script. It would be great if someone could help me with this.
Thanks in advance.
help needed to integrate my web application with cacti
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: help needed to integrate my web application with cacti
There would be two parts - the Cacti cli scripts will allow you to add graphs to Cacti, and a script query (or maybe several) to read data from your script and store it. The poller runs every x minutes as normal - you don't invoke it specially.pappu wrote:Hi guys,
I am new to cacti...I am working on a monitoring application in PHP which will allow the users to select certain statistics and then build graphs for them.
The data is retrieved using a script I have written. I wanted to know how to invoke the poller and then view the graphs for the data that is given by the script. It would be great if someone could help me with this.
Thanks in advance.
"a monitoring application in PHP which will allow the users to select certain statistics and then build graphs for them" is a pretty good description of Cacti itself. Possibly you should take a closer look and see if you can avoid writing more code
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
I am actually building a monitoring web application which would allow users to select certain statistics and these statistics would be relating to different web services.
I went through the CLI scripts which would let me add devices and graphs but what about the data source? I cannot possibly create a data template and input method if I do not know which statistic the user wants to see(there are about 50 of these for each web service and there are about 50 such services that I am monitoring). My web application can provide the data in the format required by cacti(ie. field name:value). Please suggest some method by which I can do this and Please let me know if you need anything from me.
It would be great if you could help me. I need to do this as soon as possible.
Thanks a lot!
I went through the CLI scripts which would let me add devices and graphs but what about the data source? I cannot possibly create a data template and input method if I do not know which statistic the user wants to see(there are about 50 of these for each web service and there are about 50 such services that I am monitoring). My web application can provide the data in the format required by cacti(ie. field name:value). Please suggest some method by which I can do this and Please let me know if you need anything from me.
It would be great if you could help me. I need to do this as soon as possible.
Thanks a lot!
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please see whether Data Queries would be a solution: http://docs.cacti.net/manual:087:3a_adv ... alkthrough
Reinhard
Reinhard
Who is online
Users browsing this forum: No registered users and 5 guests