[mrtg] Voice Calls Help

Daniel J McDonald dan.mcdonald at austinenergy.com
Mon May 19 23:03:14 CEST 2008


On Mon, 2008-05-19 at 16:01 -0400, Frank Misak wrote:
> Hi Eric,
> 
> 	I found that in the docs for mrtg 2.16.  I tried it since the
> values I get from the snmpwalk are not integers, I need the number of
> lines returned:
> 
> Counted SNMP Walk

>        Target[myrouter]:
> CnTWaLK1.3.6.1.4.1.9.10.55.1.1.1.1.3&CnTWaLK1.3.6.1.4.1.9.10.55.1.1.1.1.
> 3:public at myrouter
> 
> But not working right...

You are missing the instance (.3) and so the number of calls is above
max-bytes, and mrtg is discarding the value.

Here is the template that I use:
# First see if there are VOIP interfaces:
my %iftype;

if ($$router_opt{'interfaces'}) {
   foreach my $ifindex (sort {int($a) <=> int($b)} keys %$router_ref) {
        next unless $ifindex =~ /^\d+$/;
             my $i = $$router_ref{$ifindex};
             my $if_type = $$i{ifType};
             ++$iftype{$if_type};
        }
}
if ($iftype{81} +$iftype{102} > 0) {
   my $maxcalls = $iftype{81}+$iftype{102};
   my $target_name = $router_name.".call";
   $head_lines .= <<CALLS
#.....................................................................
# Voip Concurrent Calls
#

Target[$target_name]:  CnTWaLKcvCommonDcCallActiveCoderTypeRate&PseudoZero:public:$router
SnmpOptions[$target_name]: $v3options
MaxBytes[$target_name]: $maxcalls
routers.cgi*ShortDesc[$target_name]:  Calls
bb*host[$target_name]: $router_name
bb*svc[$target_name]: call
routers.cgi*Graph[$target_name]: ALL_CALLS
bb*red[$target_name]: 90%
bb*yellow[$target_name]: 70%
Options[$target_name]:  gauge, noo
Directory[$target_name]: $directory_name
WithPeak[$target_name]: wmy
YLegend[$target_name]: calls
ShortLegend[$target_name]: calls
Legend1[$target_name]: calls
LegendI[$target_name]:  calls :
Title[$target_name]: $sysname
PageTop[$target_name]: <H1>$sysname Concurrent Calls</H1>
 <TABLE>
   <TR><TD>System:</TD><TD>$sysname  </TD></TR>
   <TR><TD>Location:</TD><TD>$syslocation </TD></TR>
 </TABLE>
CALLS
; 
}


My LoadMibs: includes these items, amongst others:
LoadMibs: /usr/share/snmp/mibs/CISCO-SMI-V1SMI.my /usr/share/snmp/mibs/CISCO-TC-V1SMI.my  /usr/share/snmp/mibs/CISCO-VOICE-COMMON-DIAL-CONTROL-MIB-V1SMI.my /usr/share/snmp/mibs/CISCO-CCM-MIB.my 


> 
> 
> 
> -----Original Message-----
> From: mrtg-bounces at lists.oetiker.ch
> [mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Eric Brander
> Sent: Monday, May 19, 2008 3:57 PM
> To: mrtg at lists.oetiker.ch
> Subject: Re: [mrtg] Voice Calls Help
> 
> On Mon, May 19, 2008 at 1:42 PM, Frank Misak
> <Frank.Misak at mpiresearch.com> wrote:
> 
> >
> > Target[NODE_IP_calls]:
> >
> CnTWaLK1.3.6.1.4.1.9.9.63.1.3.1.1.1&CnTWaLK1.3.6.1.4.1.9.9.63.1.3.1.1.1:
> <READSTRING>@<NODEIP>:
> >
> 
> 
> What is "CnTWaLK"? Those should not be there. Might not be your only
> problem but it's a start.
> 
> HTH,
-- 
Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy
http://www.austinenergy.com



More information about the mrtg mailing list