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    


Cisco CallManager MGCP PRI usage
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
nduda78
Cacti User


Joined: 01 Mar 2005
Posts: 106

PostPosted: Fri Dec 09, 2005 10:42 am    Post subject: Cisco CallManager MGCP PRI usage Reply with quote

This is my first cacti template/script to share. We run a VOIP callcenter using multiple MGCP configed routers with PRI circuits. We needed to have a way to monitor PRI usage/capacity to plan for corrective action and new PRI circuits. The following scripts/template monitor each routers PRI capacity seperatly and in total.

This requires NSCLIENT as it runs on a Linux cacti install obtaining its info from a Windows CCM.

Obviously youll need to customize the script to get the counter info you need. You can add on to the script and datasource/templates for more than 2 routers.



graph1.GIF
 Description:
 Filesize:  142.12 KB
 Viewed:  16397 Time(s)

graph1.GIF



ccmtotalpriusage.sh.txt
 Description:

Download
 Filename:  ccmtotalpriusage.sh.txt
 Filesize:  519 Bytes
 Downloaded:  1482 Time(s)


cacti_graph_template_cisco_callmanager_mgcp_pri_usage.xml
 Description:

Download
 Filename:  cacti_graph_template_cisco_callmanager_mgcp_pri_usage.xml
 Filesize:  13.63 KB
 Downloaded:  997 Time(s)

Back to top
Brettw



Joined: 18 Mar 2005
Posts: 26

PostPosted: Wed Dec 14, 2005 4:58 am    Post subject: Reply with quote

Any Idea what the oid would be for the number of calls on a dual E1 card?

Ive tried this the details here --> http://www.eatworms.org.uk/cacti/isdncalls.php

However no joy

Thanks

Brett
Back to top
techguy



Joined: 07 Nov 2006
Posts: 8

PostPosted: Wed Nov 08, 2006 12:23 pm    Post subject: Reply with quote

Any thoughts on how to get this to work from a windows machine running Cacti? This would be a great asset to me.
Back to top
crackrocksteady



Joined: 06 Dec 2006
Posts: 45
Location: Perth , Australia

PostPosted: Tue Feb 06, 2007 12:03 am    Post subject: Reply with quote

I was thinking about doing this with Win32::PerfLib as a perl script to pull this info out perfmon. Has anybody attempted this? any tips?


Fletch
Back to top
crackrocksteady



Joined: 06 Dec 2006
Posts: 45
Location: Perth , Australia

PostPosted: Tue Feb 06, 2007 8:51 pm    Post subject: Reply with quote

Ok,

I had no luck with win32:perflib, but I did have success using Win32::Perfmon perl module.

The module is not available through the activestate repo's, so to compile the module you need to use virtual C++ 6 , which I couldn't find a copy of unfortunately. Luckily I was able to find a compiled copy on a third party repo, you can install Win32:Perfmon through ppm with the following:

ppm install http://www.bribes.org/perl/ppm/Win32-PerfMon.ppd

I have taken the original template and modified it slightly, allowing the script to be a little more dynamic and the labels a bit more generic. The call manager to get the data from is parsed through the hostname variable and the gateways are per-data source values that you define. It is currently setup for 2 gateways, but you could modify it too support more.


To Install
1) install Win32-Perfmon
2) place mgcp.pl in the scripts directory
3) Import the data template
4) Import the Graph template.

Note: I am not a programmer and this is my first contribution to the cacti community. If you spot anything stupid that I've done please let me know....

Thanks

Fletch
Back to top
crackrocksteady



Joined: 06 Dec 2006
Posts: 45
Location: Perth , Australia

PostPosted: Tue Feb 06, 2007 8:54 pm    Post subject: Reply with quote

Here are the files.


ccm_mgcp_graph_template.xml
 Description:
Graph Template, Import Through Cacti

Download
 Filename:  ccm_mgcp_graph_template.xml
 Filesize:  13.89 KB
 Downloaded:  544 Time(s)


ccm_mgcp_data_template.xml
 Description:
Data Template, Import through Cacti

Download
 Filename:  ccm_mgcp_data_template.xml
 Filesize:  5.71 KB
 Downloaded:  484 Time(s)


mgcp.pl.txt
 Description:
Script, place in your scripts Directory

Download
 Filename:  mgcp.pl.txt
 Filesize:  952 Bytes
 Downloaded:  815 Time(s)

Back to top
evanover



Joined: 11 May 2007
Posts: 3

PostPosted: Fri May 11, 2007 1:36 pm    Post subject: MGCP Script Reply with quote

Could you give a detailed explanation of the total PRI script elements? I am trying to modify to suit our environment, and I am having trouble try to figure out the the counter info.
Back to top
crackrocksteady



Joined: 06 Dec 2006
Posts: 45
Location: Perth , Australia

PostPosted: Mon May 14, 2007 7:47 pm    Post subject: Reply with quote

Can you elaborate on what you mean? I don't quite understand.
Back to top
evanover



Joined: 11 May 2007
Posts: 3

PostPosted: Tue May 15, 2007 8:24 am    Post subject: Script Layout Reply with quote

In the script there is the path to check_nt (I.E. pria=`/usr/local/nagios/libexec/check_nt -H ).
Then the ip address of the Call Manager (10.X.X.X -p 1248 -v)
Then the counter this is where it is not clear what the counter should be ( COUNTER -l "\\Cisco MGCP Gateways(BCXXXX)\\PRIChannelsActive"`.
Back to top
crackrocksteady



Joined: 06 Dec 2006
Posts: 45
Location: Perth , Australia

PostPosted: Thu May 17, 2007 7:24 pm    Post subject: Reply with quote

ok,

I don't use that check_nt script, have a look at my perl script for a comparison of another way to do it.

I am guessing that the name in the brackets is the name of your mgcp gateway. This is the name that your CCM gives it in perfmon. To find out what yours are called connect perfmon to your CCM and add the counter and see what they are called.

If your Call Manager is running on linux your not going to be able to pull this information out easily.
Back to top
evanover



Joined: 11 May 2007
Posts: 3

PostPosted: Fri May 18, 2007 11:54 am    Post subject: Perl Reply with quote

I
Back to top
evanover



Joined: 11 May 2007
Posts: 3

PostPosted: Fri May 18, 2007 11:55 am    Post subject: Perl Reply with quote

I
Back to top
evanover



Joined: 11 May 2007
Posts: 3

PostPosted: Fri May 18, 2007 11:57 am    Post subject: Perl Reply with quote

Thanks I will play with it and see what I can come up with. Unfortunately the only Win32-PerrfMon and Win32-Perflib I can find are for the Windoz platform. I am running cacti on a Linux box while CCM is on a Windoz box.
Back to top
crackrocksteady



Joined: 06 Dec 2006
Posts: 45
Location: Perth , Australia

PostPosted: Sun May 20, 2007 7:11 pm    Post subject: Reply with quote

ahhh k, I didn't think about the fact that win32-perlib needs to be compiled using Visual C.

It means you will need to use check_nt. I think this is an offshoot nagios thing and you might need to run an agent on your ccm.
Back to top
poezie



Joined: 28 Feb 2006
Posts: 22

PostPosted: Tue May 22, 2007 9:35 am    Post subject: Reply with quote

Hi crackrocksteady

Does your mgcp.pl work on linux as I get some errors ?
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
Goto page 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group