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    


graph PPPOE online users on Cisco 72xx

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



Joined: 14 Feb 2005
Posts: 25
Location: MV

PostPosted: Tue Mar 11, 2008 1:31 am    Post subject: graph PPPOE online users on Cisco 72xx Reply with quote

I dont know if this is helpful for any of you guys, it had helped me a lot.

This gives you a nice graph of the currently number of online PPPOE sessions (users) on a cisco BRAS.

I am using the Cisco OID and get the number of online sessions put it in a bash script and format so that cacti can get them.

create the data input metthod - use script/command as the input type.
and the following as input method:
/bin/bash <path_cacti>/scripts/pppoe_users.sh <comstring> <hostname>
U add two fields as input Fields: comstring and hostname.
And as output field 'bras'

Then import the templates and you are good to go.
This can be further extend to graph a group of online users based on their IP addr - possibly on a particular DHCP range etc. (if you have the relevant OID then u can use it )

I have posted some sample graphs.



pppoe.PNG
 Description:
 Filesize:  15.83 KB
 Viewed:  3022 Time(s)

pppoe.PNG



cisco_pppoe.rar
 Description:

Download
 Filename:  cisco_pppoe.rar
 Filesize:  3.44 KB
 Downloaded:  177 Time(s)

Back to top
sigey



Joined: 14 Feb 2005
Posts: 25
Location: MV

PostPosted: Sat Apr 12, 2008 11:30 pm    Post subject: Reply with quote

This template is useful if you have Cisco 7200 series as BRAS to terminate pppoe sessions.

This will graph the number of active pppoe sessions on the BRAS.

I have modified the template so that less effort will be required for the implementation.

The old template used Script input methods and configuration of that part was a bit manual.

I have now used data query method and XML.

Following is the procedure to use this template.
unpack the attached .rar file and import the files using cacti import function:
cacti_data_query_snmp_-_cisco_pppoe_users.xml
cacti_data_template_snmp_-_cisco_pppoe_users.xml
cacti_graph_template_snmp_cisco_pppoe_session_info.xml

place this file in the cacti_path/resource/snmp_queries -
pppoe_info.xml



snmp cisco pppoe.rar
 Description:

Download
 Filename:  snmp cisco pppoe.rar
 Filesize:  8.25 KB
 Downloaded:  164 Time(s)

Back to top
GrayCardinal



Joined: 03 Jul 2008
Posts: 1

PostPosted: Thu Jul 03, 2008 5:03 am    Post subject: Cacti don;t import this templates Reply with quote

cacti 0.8.6i - Debian Etch stable
When I'm trying to import any of these scripts - Cacti says: "Error: XML: Hash version does not exist."

Can you wrote step-by-step mini-manual to define these graphs ? Thank you !

PS: Just upgraded to last version. It works!
Back to top
grfmaniak



Joined: 23 Sep 2007
Posts: 2

PostPosted: Sat Aug 30, 2008 10:38 am    Post subject: Re: Cacti don;t import this templates Reply with quote

GrayCardinal wrote:
cacti 0.8.6i - Debian Etch stable
When I'm trying to import any of these scripts - Cacti says: "Error: XML: Hash version does not exist."

Can you wrote step-by-step mini-manual to define these graphs ? Thank you !

PS: Just upgraded to last version. It works!


But how I can use this script on STABLE debian, NOT on last cacti?
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