Hello There,
I have been using Cacti for a couple of weeks for my switch graphing and I am very pleased!
I am today playing around with the options and I am wondering if someone could advise me on how to go about doing something:
I run a standalone PHP script on my server which I have setup to create a variable which is a percentage of the users that are online. Basically I simply want to graph this as a percentage value out of 100.
I have limited knowledge of PHP and I am wondering what my best option is, do I need to send this number to an mysql database on the server and get cacti to read from there? or can I set it up to get it directly?
Thanks for your help,
Fred.
Graph php $variable
Moderators: Developers, Moderators
Thanks for the message,
I have looked at your tutorials and think I am heading in the right direction but I am not sure how to configure cacti.
I have made the following php script which echoes the percentage value that I want to graph:
http://www.fastfrags.co.uk/lgsl/percentage.php
From this how can I get cacti to graph this value on a scale of 0-100?
Thanks,
Fred.
I have looked at your tutorials and think I am heading in the right direction but I am not sure how to configure cacti.
I have made the following php script which echoes the percentage value that I want to graph:
http://www.fastfrags.co.uk/lgsl/percentage.php
From this how can I get cacti to graph this value on a scale of 0-100?
Thanks,
Fred.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Moved to General
[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]
Who is online
Users browsing this forum: No registered users and 4 guests