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
I want to get Cacti Monitored DataSource Values
Moderators: Developers, Moderators
-
- Posts: 7
- Joined: Mon Feb 26, 2007 1:11 am
Sounds like you need to roll your own code to extract the data dynamically from the rrd file...
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
-
- Posts: 7
- Joined: Mon Feb 26, 2007 1:11 am
RE:
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
Thanks
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: RE:
I think the poller_top hook in the plugin architecture does what you want.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
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!)
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!)
-
- Posts: 7
- Joined: Mon Feb 26, 2007 1:11 am
Thanks for your help
Thank u I will try taht one...
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
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.
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!)
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!)
Who is online
Users browsing this forum: No registered users and 1 guest