[mrtg] newbie quertyion [custom OID]

Martin McFlySr Martin at McFlySr.Kurgan.Ru
Mon Oct 23 08:01:15 MEST 2000


Hello mrtg at list.ee.ethz.ch,

1. Machine1 (machine1.dom.org)
ucd-snmp installed.

snmpd.conf:
exec .1.3.6.1.4.1.2021.50 postfix /usr/bin/perl /etc/postfix/snmp/mailstats.pl

machine1$snmpwalk localhost community .1.3.6.1.4.1.2021.50
enterprises.ucdavis.50.1.1 = 1
enterprises.ucdavis.50.2.1 = "postfix"
enterprises.ucdavis.50.3.1 = "/usr/bin/perl /etc/postfix/snmp/mailstats.pl"
enterprises.ucdavis.50.100.1 = 0
enterprises.ucdavis.50.101.1 = "RECEIVED:local 43."
enterprises.ucdavis.50.101.2 = "RECEIVED:smtp 3846."
enterprises.ucdavis.50.101.3 = "SENT:local 5225."
enterprises.ucdavis.50.101.4 = "SENT:smtp 1094."
enterprises.ucdavis.50.102.1 = 0

Machine2 (machine2.dom.org)
MRTG 2.9.2 installed, ucd-snmp installed.

machine2$snmpwalk machine1 at dom.org community .1.3.6.1.4.1.2021.50
enterprises.ucdavis.50.1.1 = 1
enterprises.ucdavis.50.2.1 = "postfix"
enterprises.ucdavis.50.3.1 = "/usr/bin/perl /etc/postfix/snmp/mailstats.pl"
enterprises.ucdavis.50.100.1 = 0
enterprises.ucdavis.50.101.1 = "RECEIVED:local 43."
enterprises.ucdavis.50.101.2 = "RECEIVED:smtp 3846."
enterprises.ucdavis.50.101.3 = "SENT:local 5225."
enterprises.ucdavis.50.101.4 = "SENT:smtp 1094."
enterprises.ucdavis.50.102.1 = 0

Ok.

MRTG/machine2 config for machine1:

Target[postfix]: .1.3.6.1.4.1.2021.50:community at machine1.dom.org
MaxBytes[postfix]: 1250000
Options[postfix]: gauge, growright
Title[postfix]: Postfix Statistics
PageTop[postfix]: <H1><b>Postfix Statistics</b></H1>
WithPeak[postfix]: dwmy
YLegend[postfix]: No. of messages
ShortLegend[postfix]: messages
LegendI[postfix]: &nbsp;Incoming:
LegendO[postfix]: &nbsp;Outgoing:

#mrtg mach1.cfg
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.2.2.1.10.50)
SNMPv1_Session (remote host: "machine1.dom.org" [1.2.3.4].161
                  community: "community"
                 request ID: 1188522867
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)

SNMPGET Problem for ifInOctets.50 ifOutOctets.50 on communinty at machine1.dom.org

i try


Target[postfix]: 1.3.6.1.4.1.2021.50:community at machine1.dom.org
Target[postfix]: 1.3.6.1.4.1.2021.50&1.3.6.1.4.1.2021.51:community at machine1.dom.org
Target[postfix]: .1.3.6.1.4.1.2021.50&.1.3.6.1.4.1.2021.51:community at machine1.dom.org
(add exec .1.3.6.1.4.1.2021.51     postfix    /usr/bin/perl
/etc/postfix/snmp/mailstats.pl to snmpd.conf)

but anyway get

SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.4.1.2021.50)


and    i  have  a question: what must i do for get statistics from machine1
for MRTG?


Thank you,


-- 
Monday, October 23, 2000,
09:49

Best regards from future,
Martin McFlySr, HillDale.



--
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