|
|
| Author |
Message |
rafiso
Joined: 10 Dec 2005 Posts: 20
|
Posted: Mon Oct 06, 2008 3:07 am Post subject: How to create a new graph from a custom source |
|
|
Hello,
I would like to create a graph to monitor the connected users from a custom application. Of course the users are not known from SNMP so I will have a script that tells a script the number of connected users every 5 minutes somewhere...
I didn't found any tutorial to do something easy like that. Could you please help me :=) ?
| Code: |
reportConnectedUsers.sh (cron 5min) > connectedUsers.txt
__________________________________|
|
cacti every 5min
|
draw a nice graph with one line like
3 ____
2 | |
1 ____ | |_____
0___| |_______| |___________ => time
|
Thanks for any links, suggestions ... |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9691 Location: MI, USA
|
Posted: Mon Oct 06, 2008 6:58 am Post subject: |
|
|
Data Input method called Script. You need to read the Cacti How-To's at http://docs.cacti.net. Also, please note that there are several "good" examples in the default installation.
TheWitness |
|
| Back to top |
|
 |
Rael Cacti User
Joined: 05 Apr 2007 Posts: 128
|
Posted: Tue Oct 07, 2008 10:39 am Post subject: |
|
|
I finally figured out how to do this pretty reliably.
I had to go through the docs twice to understand the logic, but I can now write my own queries and such and graph the data, so it's not that hard. |
|
| Back to top |
|
 |
|