Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


How to create a new graph from a custom source

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
rafiso



Joined: 10 Dec 2005
Posts: 20

PostPosted: Mon Oct 06, 2008 3:07 am    Post subject: How to create a new graph from a custom source Reply with quote

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: 9671
Location: MI, USA

PostPosted: Mon Oct 06, 2008 6:58 am    Post subject: Reply with quote

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

PostPosted: Tue Oct 07, 2008 10:39 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group