I want to get Cacti Monitored DataSource Values

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
manickkarthik
Posts: 7
Joined: Mon Feb 26, 2007 1:11 am

I want to get Cacti Monitored DataSource Values

Post by manickkarthik »

Hi Community

I am using cacti to monitor one server. Cacti stores the monitored values into RRD File. But i want to get that value in PHP Variables.

Thanks in Advance
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Sounds like you need to roll your own code to extract the data dynamically from the rrd file...
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

That is true, but you can use the rrdtool_fetch function in Cacti to do it.. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
manickkarthik
Posts: 7
Joined: Mon Feb 26, 2007 1:11 am

RE:

Post by manickkarthik »

I want to get the cacti monitored values before put it into RRD file. please give the cacti monitor file name where we can get that values.

Thanks
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: RE:

Post by Howie »

manickkarthik wrote:I want to get the cacti monitored values before put it into RRD file. please give the cacti monitor file name where we can get that values.

Thanks
I think the poller_top hook in the plugin architecture does what you want.

Grab a simple plugin like Links to see how the plugins work, and take a look at the hook documentation at docs.cacti.net
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!)
manickkarthik
Posts: 7
Joined: Mon Feb 26, 2007 1:11 am

Thanks for your help

Post by manickkarthik »

Thank u I will try taht one...
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Oops. I meant poller_output, not poller_top. That hook gets called once per device as the poller runs, with the data that will be going to the rrd files.

I'm just trying to figure out what the format is exactly myself for the data though. Threshold has some example code to read the structure.
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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest