[mrtg] Re: SNMP gettng there
Brian Steele
bsteele at morrisprintinggroup.com
Thu Aug 4 17:48:12 MEST 2005
Martin,
It looks like you're using linux/unix of some sort. Try this:
1) Make sure snmpwalk is installed
> snmpwalk
This should display the snmpwalk help.
2) Check connectivity to the device using a generic interface
snmpwalk -v1 -c admin 136.119.174.205 1.3.6.1.2.1.25.1.5
If this fails, try backing up the OID 1 # at a time until you get something
back. Or try using 'interface' instead of your OID. If you get data back,
then you can be sure your community is correct and that nothing is blocking
SNMP traffic to the device. (Though this should not be a problem for you
since snmpwalk works.)
Sometimes you have to add a .0 to the end of the OID for it to work. I'm
too ignorant of SNMP to understand why this is, but it's helped me before.
Brian
-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On
Behalf Of Koelstra, J. (Jan)
Sent: Thursday, August 04, 2005 9:45 AM
To: Martin Macleod-Brown; mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: SNMP gettng there
Martin,
In this case more errors is a change for the better.
With the $ signs you had errors inside the config file and MRTG would not
even run.
The new errors tell you that the config errors are gone. MRTG starts working
and finds out there is something wrong with the SNMP communication between
your MRTG host and the target machine. There can be several reasons for
this:
1. The both machines are located in separate parts of the network where SNMP
traffic can not get through. Make sure UDP port 161 is not blocked.
2. SNMP is not running or not properly configured at the target host.
3. You don't use the right community string in your mrtg config file.
4. The oid you use in your config file is not valid or not supported at the
target machine.
5...
To resolve problems with SNMP you best use a mibbrowser from the box where
MRTG is installed.
If you have mrtg set up on a unix box you can use snmpwalk, if mrtg is on a
Windows box getif is a usefull mibbrowser.
Hth,
Jan.
-----Original Message-----
From: Martin Macleod-Brown [mailto:mmacleod at london.edu]
Sent: Thursday, August 04, 2005 4:13 PM
To: Koelstra, J. (Jan); mrtg at list.ee.ethz.ch
Subject: RE: [mrtg] Re: SNMP gettng there
Thanks for the suggestion.
Target is at the beginning of the line, just my error in formatting
(sorry!).... If I remove the $ I get even more error messages....
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.25.1.5)
SNMPv1_Session (remote host: "163.119.174.205" [163.119.174.205].161)
community: "admin"
request ID: 1586531513
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib64/mrtg2/SNMP_util.pm line 490
SNMPGET Problem for 1.3.6.1.2.1.25.1.5 1.3.6.1.2.1.25.1.5 sysUptime sysName
on admin at 163.119.174.205::::::v4only at /usr/bin/mrtg line 1851
ERROR: Target[163.119.174.205][_IN_] ' $target->[0]{$mode} ' did not eval
into defined data
ERROR: Target[163.119.174.205][_OUT_] ' $target->[0]{$mode} ' did not eval
into defined data
And putting the $ back takes back to just the original 2 lines of
errors.....
-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On
Behalf Of Koelstra, J. (Jan)
Sent: 04 August 2005 14:03
To: Martin Macleod-Brown; mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: SNMP gettng there
Martin,
My bet is that you have to remove the $ signs from your targetline. Also
make sure "Target" is at the beginning of the line. In your message below it
continues from at the "Workdir" line.
Hth,
Jan.
-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On
Behalf Of Martin Macleod-Brown
Sent: Thursday, August 04, 2005 2:54 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] SNMP gettng there
Thank you for all those people that replied to yesterdays post ;) I can
defintely confirm that the OID sting is right, confirmed with getif doing an
smnpwalk. Running the cofig file below gives me the following errors at the
bottom....
WorkDir: /var/www/html/mrtg/wireless
Target[163.119.174.205]:1.3.6.1.2.1.25.1.5&1.3.6.1.2.1.25.1.5:$admin@$163.11
9.174.205
MaxBytes[163.119.174.205]: 100
kMG[163.119.174.205]: ,M,,,
Options[163.119.174.205]: gauge, nopercent, absolute, unknaszero
YLegend[163.119.174.205]: Users Attached
ShortLegend[163.119.174.205]: Users Attached
WithPeak[163.119.174.205]: wmy
Colours[163.119.174.205]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
Legend1[163.119.174.205]: Number of Users Attached
Legend2[163.119.174.205]: .
Legend3[163.119.174.205]: Peak Number of Users Attached
Legend4[163.119.174.205]: .
LegendI[163.119.174.205]: Users:
LegendO[163.119.174.205]: .
Title[163.119.174.205]: $SNAP-WAT1-T3
PageTop[163.119.174.205]: <H1>SNAP-WAT1-T3</H1>
Directory[163.119.174.205]: wat1-t3
Error.....
ERROR: Target[163.119.174.205][_IN_]
'1.3.6.1.2.1.25.1.5&1.3.6.1.2.1.25.1.5:$admin@$163.119.174.205' (warn):
(Missing operator before ?)
ERROR: Target[163.119.174.205][_OUT_]
'1.3.6.1.2.1.25.1.5&1.3.6.1.2.1.25.1.5:$admin@$163.119.174.205' (warn):
(Missing operator before ?)
Am I right in thinking that this is to do with the mrtg file rather than
this config script? What does the missing operator message mean, there is
no ? In the config file, can anyone help me by pointing me in the right
direction please??
Many thanks
Martin
Information Systems Division
London Business School, Sussex Place, Regents Park, London. NW1 4SA
t: +44 (0)20 7000 7772 direct
+44 (0)20 7262 5050 general
fax: +44 (0)20 7000 7771 direct
+44 (0)20 7724 7875 general
e: mailto:mmacleod at london.edu http://www.london.edu/technology/
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
_________________________________________________________
Het ministerie van Sociale Zaken en Werkgelegenheid sluit elke
aansprakelijkheid uit in verband met het niet juist, onvolledig of niet
tijdig overkomen van de informatie in deze e-mail. Aan dit bericht kunnen
geen rechten worden ontleend.
Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet
voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en de
inhoud van dit bericht te vernietigen.
_________________________________________________________
The ministry of Social Affairs and Employment is not liable for any
incorrect or incomplete transmission of the information in this e-mail or
for any delay in its receipt. This message shall not constitute any
obligations.
This message is intended solely for the addressee.
If you have received this message in error, please inform us immediately and
delete its content.
_________________________________________________________
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System on
behalf of the London Business School community. For more information please
visit http://www.messagelabs.com/email
______________________________________________________________________
_________________________________________________________
Het ministerie van Sociale Zaken en Werkgelegenheid sluit elke
aansprakelijkheid uit in verband met het niet juist, onvolledig of niet
tijdig overkomen van de informatie in deze e-mail.
Aan dit bericht kunnen geen rechten worden ontleend.
Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet
voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en de
inhoud van dit bericht te vernietigen.
_________________________________________________________
The ministry of Social Affairs and Employment is not liable for any
incorrect or incomplete transmission of the information in this e-mail or
for any delay in its receipt.
This message shall not constitute any obligations.
This message is intended solely for the addressee.
If you have received this message in error, please inform us immediately and
delete its content.
_________________________________________________________
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the mrtg
mailing list