Cisco Call Manager - Phones
Moderators: Developers, Moderators
-
- Posts: 45
- Joined: Wed Dec 06, 2006 12:02 am
- Location: Perth , Australia
I sure do...
I'm not in the office at the momment, sp I'll post it when I get back on Monday. But I have one for active calls and also registered/unregistered gateways (This one is really good if you use a lot of ATA's or VG224/248 for analogue lines)
I also have posted a MGCP script and template at the bottom of the following topic:
http://forums.cacti.net/viewtopic.php?t ... light=mgcp
If you use h.323 gateways or wanted to graph another type of CCM data that is available through the perfmon interface then you could mod that script too do it.
I'm not in the office at the momment, sp I'll post it when I get back on Monday. But I have one for active calls and also registered/unregistered gateways (This one is really good if you use a lot of ATA's or VG224/248 for analogue lines)
I also have posted a MGCP script and template at the bottom of the following topic:
http://forums.cacti.net/viewtopic.php?t ... light=mgcp
If you use h.323 gateways or wanted to graph another type of CCM data that is available through the perfmon interface then you could mod that script too do it.
-
- Posts: 45
- Joined: Wed Dec 06, 2006 12:02 am
- Location: Perth , Australia
I haven't had much contact with SIP as yet with CCM. Are you using CCM4 or 5? I am running 4.1(3) which is on a windows platform. So to get active Calls I query the perfmon library on the CCM using Perl.
Basically I use a script data input method that uses the following script
use Win32::PerfMon;
$ccm = ($ARGV[0]);
my $PerfObj = Win32::PerfMon->new("\\\\$ccm");
$PerfObj->AddCounter("Cisco CallManager","CallsActive", "-1");
# Populate the counters from perfmon
$PerfObj->CollectData();
# Now retrieve the data
$ccm_activeCalls = $PerfObj->GetCounterValue("Cisco CallManager","CallsActive", "-1");
$err = $PerfObj->GetErrorText();
print "ccm_activeCalls:".$ccm_activeCalls.".00";
Then I graph the returned data. It is basically the same idea as the MGCP gateway script I linked too before.
I will post the templates and the script on monday morning for you. If you are using awindows based callmanager and the info you want is in perfmon then we should be able to work something out to pull that info....
Let me know if you have any questions.
Basically I use a script data input method that uses the following script
use Win32::PerfMon;
$ccm = ($ARGV[0]);
my $PerfObj = Win32::PerfMon->new("\\\\$ccm");
$PerfObj->AddCounter("Cisco CallManager","CallsActive", "-1");
# Populate the counters from perfmon
$PerfObj->CollectData();
# Now retrieve the data
$ccm_activeCalls = $PerfObj->GetCounterValue("Cisco CallManager","CallsActive", "-1");
$err = $PerfObj->GetErrorText();
print "ccm_activeCalls:".$ccm_activeCalls.".00";
Then I graph the returned data. It is basically the same idea as the MGCP gateway script I linked too before.
I will post the templates and the script on monday morning for you. If you are using awindows based callmanager and the info you want is in perfmon then we should be able to work something out to pull that info....
Let me know if you have any questions.
-
- Posts: 45
- Joined: Wed Dec 06, 2006 12:02 am
- Location: Perth , Australia
Unfortunatly No.....
What you might want too look at though is CallManager Real-Time Monitoring Tool (RTMT)
The collector service on the linux call manager writes logfiles containing the data you want to /var/log/active/cm/log/amc
You could use a script to pull out the following data from those logs for graphing:
Call Activity - Attempted and completed calls, trunk usage, Gateway Usage
Phone Stats - Reg/unreg phones/gateways
Service Stats
The log files are in a format that is readable by NT perfmon viewer. If you PM'd me a copy of one of these logs I'm more then happy to have a look at it for you.
What you might want too look at though is CallManager Real-Time Monitoring Tool (RTMT)
The collector service on the linux call manager writes logfiles containing the data you want to /var/log/active/cm/log/amc
You could use a script to pull out the following data from those logs for graphing:
Call Activity - Attempted and completed calls, trunk usage, Gateway Usage
Phone Stats - Reg/unreg phones/gateways
Service Stats
The log files are in a format that is readable by NT perfmon viewer. If you PM'd me a copy of one of these logs I'm more then happy to have a look at it for you.
-
- Posts: 45
- Joined: Wed Dec 06, 2006 12:02 am
- Location: Perth , Australia
umm I don't know. I don't actually know all that much about Call manager under linux.
I wonder if maybe you need to use the actual RTMT application to pull the logs? Did you setup the call manager yourself? Could be a privleged accoutn setup to access this stuff??
I have a VM image of CCM 5. When I get a chance I'll fire it up and see what I find
I wonder if maybe you need to use the actual RTMT application to pull the logs? Did you setup the call manager yourself? Could be a privleged accoutn setup to access this stuff??
I have a VM image of CCM 5. When I get a chance I'll fire it up and see what I find
H.323 script
Hi
Is it possible for someone to give me a script to monitor the H.323 gateway as I am not clued up with this.
Thanks
Is it possible for someone to give me a script to monitor the H.323 gateway as I am not clued up with this.
Thanks
-
- Posts: 4
- Joined: Thu May 31, 2007 8:40 am
Get the Templates
Hi crackrocksteady,
you mentioned to publish the templates for e.g. active calls on a callmanager. As we just trippled the amount of active phones, I really would like to monitor this via cacti.
Also we use a vg248 and a couple of SATAs so I you could publish the other mentioned template also.
Would be really kind
Thanks
Maik
you mentioned to publish the templates for e.g. active calls on a callmanager. As we just trippled the amount of active phones, I really would like to monitor this via cacti.
Also we use a vg248 and a couple of SATAs so I you could publish the other mentioned template also.
Would be really kind
Thanks
Maik
-
- Posts: 45
- Joined: Wed Dec 06, 2006 12:02 am
- Location: Perth , Australia
I don't have any specific script/snmp query for VG224/248's.
I use 1.3.6.1.4.1.9.9.156.1.5.8.0 to get the number of registered gateways.
as for active calls I use this script : ccm_activeCalls.pl that I have attached...
note that this will only work on a windows based call manager as I am using perl to get the data out of perfmon.
If you need any more help let me know.
I use 1.3.6.1.4.1.9.9.156.1.5.8.0 to get the number of registered gateways.
as for active calls I use this script : ccm_activeCalls.pl that I have attached...
note that this will only work on a windows based call manager as I am using perl to get the data out of perfmon.
If you need any more help let me know.
- Attachments
-
- ccm_activeCalls.pl
- (462 Bytes) Downloaded 941 times
-
- Posts: 45
- Joined: Wed Dec 06, 2006 12:02 am
- Location: Perth , Australia
Here is the template to import for that script...
- Attachments
-
- cacti_graph_template_ccm_active_calls.xml
- (7.37 KiB) Downloaded 1017 times
-
- Posts: 45
- Joined: Wed Dec 06, 2006 12:02 am
- Location: Perth , Australia
Umm that template should have everthing you need. Reg/unreg phones doesn't need a script as I am just querying the OID's.
Registered phones : 1.3.6.1.4.1.9.9.156.1.5.5.0
Unregistered phones : 1.3.6.1.4.1.9.9.156.1.5.6.0
Also phones will usually register with the subscriber so it is usual to see 0 registered phones on the publisher under normal operation.
Registered phones : 1.3.6.1.4.1.9.9.156.1.5.5.0
Unregistered phones : 1.3.6.1.4.1.9.9.156.1.5.6.0
Also phones will usually register with the subscriber so it is usual to see 0 registered phones on the publisher under normal operation.
Who is online
Users browsing this forum: No registered users and 6 guests