[mrtg] complex targets with math on just one input - Time for a script?

Daniel J McDonald dmcdonald at digicontech.com
Mon Mar 12 23:15:29 MET 2001


I just tried:
Target[austin_voip5]:
dialCtlPeerStatsConnectTime.5#VoiceOverIpPeer5:public at 172.1.0.1&
    dialCtlPeerStatsConnectTime.50#VoiceEncapPeer50:public at 172.16.0.1 +
    dialCtlPeerStatsConnectTime.502#VoiceEncapPeer502:public at 172.16.0.1

and got:
[dmcdonald at netmon mrtg]$ /usr/local/mrtg-2/bin/mrtg voiptest.cfg
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.2.1.2.2.1.10.37)
SNMPv1_Session (remote host: "172.16.0.1" [172.16.0.1].161)
                  community: "public"
                 request ID: 1285455711
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
SNMPGET Problem for ifName.37 ifInOctets.37 ifName.37 ifOutOctets.37
sysUptime sysName on public at 172.16.0.1
[...]
WARNING: could not match&get 172.16.0.1/ifInOctets for Name
'VoiceOverIpPeer5'
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.2.1.2.2.1.10.32)
SNMPv1_Session (remote host: "172.16.0.1" [172.16.0.1].161)
                  community: "public"
                 request ID: 1285455871
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
SNMPGET Problem for ifName.32 ifInOctets.32 ifName.32 ifOutOctets.32
sysUptime sysName on public at 172.16.0.1
[...]
WARNING: could not match&get 172.16.0.1/ifInOctets for Name
'VoiceEncapPeer50'
[... and so forth]


I take it I can't have the "input" side be a single variable and the
"output" side be the sum of a few variables, unless I write a script to do
my own polling...

Daniel J McDonald - CCIE 2495, CNX
Principal Network Specialist
Digicon Technologies
http://www.digicontech.com
dmcdonald at digicontech.com

Digicon - A Cisco Systems Partner, Silver Certified.


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list