[mrtg] Cisco VOIP Monitoring
cdstock at ccis.edu
Tue Nov 24 17:20:16 CET 2009
I've not yet migrated to RRD, routers2, etc. and so had to come up with a hack for traditional MRTG running on Windows. My process is very similar to Dan's, in walking the SNMP tree and counting the number of channels set to 4 (established). It gives me the number of calls in progress for the entire gateway instead of per trunk, but it's a start. I'm running on Windows (with gnu grep & snmpwalk installed). At any given moment, the results of the .BAT file match the sum of the lines in use as reported by the Cisco RTMT.
My slightly cleaned .BAT script & target follow:
snmpwalk -v 2c -c <public string> <gateway IP address> 22.214.171.124.126.96.36.199.188.8.131.52.9 | grep "INTEGER: 4" -c > \inuse.txt
echo Calls in progress
### Calls in progress
Target[ccvg01_current_calls]: `cmd /c \mrtg\scripts\testcalls.bat`
YLegend[ccvg01_current_calls]: Current Calls
Legend1[ccvg01_current_calls]: Current Calls
Legend3[ccvg01_current_calls]: Maximum observed current calls
Title[ccvg01_current_calls]: Current calls for CCVG01.ccis.edu
Options[ccvg01_current_calls]: growright, gauge, unknaszero, noo, nopercent
PageTop[ccvg01_current_calls]: <h1>Current calls for CCVG01 </h1>
From: mrtg-bounces at lists.oetiker.ch [mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Eric Brander
Sent: Monday, November 23, 2009 8:35 AM
To: mrtg at lists.oetiker.ch
Subject: [mrtg] Cisco VOIP Monitoring
I see in the archives a few questions over the years about monitoring Cisco VOIP for such things as active calls, trunks in use and other performance stats. Not many (or any) answers really. I've searched through MIBs and OIDs and really have come up empty. By chance is anyone here using MRTG and SNMP or a script to monitor such things on a Cisco Call Manager or a router acting as a voice gateway?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mrtg