[mrtg] Cisco VOIP Monitoring

Stock, David cdstock at ccis.edu
Wed Nov 25 14:27:11 CET 2009


Rob,

Use your favorite search engine to search for "grep win32" or grab it from gnuwin32.sourceforge.net.  SNMPWalk is part of the net-snmp project found at www.net-snmp.org<http://www.net-snmp.org>.

David


From: Mersberger, Robert [mailto:robert.mersberger at goldenliving.com]
Sent: Tuesday, November 24, 2009 2:59 PM
To: Stock, David; 'Eric Brander'; mrtg at lists.oetiker.ch
Subject: RE: [mrtg] Cisco VOIP Monitoring

Where can I find  gnu grep & snmpwalk  for windows?  I would like to install it on my new mrtg on windows server.

Thanks

________________________________
From: mrtg-bounces at lists.oetiker.ch [mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Stock, David
Sent: Tuesday, November 24, 2009 10:20 AM
To: 'Eric Brander'; mrtg at lists.oetiker.ch
Subject: Re: [mrtg] Cisco VOIP Monitoring
Eric,

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:

Batch Script:
@echo off
snmpwalk -v 2c -c <public string> <gateway IP address> 1.3.6.1.2.1.10.21.1.3.1.1.9 | grep "INTEGER: 4" -c > \inuse.txt
type \inuse.txt
type \inuse.txt
echo 0
echo Calls in progress
del \inuse.txt

MRTG Target:
### Calls in progress
Target[ccvg01_current_calls]: `cmd /c \mrtg\scripts\testcalls.bat`
YLegend[ccvg01_current_calls]:  Current Calls
ShortLegend[ccvg01_current_calls]: &nbsp;
Legend1[ccvg01_current_calls]: Current Calls
Legend2[ccvg01_current_calls]: .
Legend3[ccvg01_current_calls]: Maximum observed current calls
Legend4[ccvg01_current_calls]: .
LegendI[ccvg01_current_calls]: Calls:
LegendO[ccvg01_current_calls]: Calls:
WithPeak[ccvg01_current_calls]: ywm
MaxBytes[ccvg01_current_calls]: 780
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>

HTH,
David

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

Greets List,

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?

TIA,

Eric Brander

________________________________
Please consider the environment before printing this e-mail.

CONFIDENTIAL NOTICE:
This e-mail message and any attachment(s) (collectively,
this 'Email') are intended only for the confidential use of
the recipient(s) named above. If the reader of this message
is not the intended recipient named above or an agent
responsible for delivering it to the intended recipient
named above, you have received this Email in error.
Please notify the sender immediately and permanently delete
this Email and any copies thereof.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20091125/180ffc74/attachment-0001.htm 


More information about the mrtg mailing list