Help - Search - Members - Calendar
Full Version: mrtg
The Planet Forums > Operating Systems > BSD
talkster5
Didnt really know where to put this so its going here icon_razz.gif

Well I am trying to setup mrtg on a FreeBSD box but I am having a problem when running the cfgmaker as it is giving the following error:

host# perl cfgmaker public@127.0.0.1 > mrtg.cfg
--base: Get Device Info on public@127.0.0.1:
SNMP Error:
no response received
SNMPv1_Session (remote host: "127.0.0.1" [127.0.0.1].161)
community: "public"
request ID: 956225036
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/local/mrtg/bin/../lib/mrtg2/SNMP_util.pm line 627
SNMPWALK Problem for 1.3.6.1.2.1.1 on public@127.0.0.1::::::v4only
at cfgmaker line 831
WARNING: Skipping public@127.0.0.1: as no info could be retrieved

Why possibly could it not be retrieving the data?
klaude
Is SNMP installed and running?
talkster5
I installed it from /usr/ports/net/net-snmpd and then did started the shell script.
klaude
Check to make sure it started. Are ports 161 and 162 open?

BTW: I'm moving this to the BSD forum.
talkster5
No they dont show up on netstat -an
talkster5
This is the right thing to start it?:

host# sh /usr/local/etc/rc.d/snmpd.sh start
klaude
That should do it. Cat out that file and make sure you don't need to add a line like "snmpd_enable=YES" to /etc/rc.conf.
talkster5
I added that line to rc.conf aswell but still doesnt work.
talkster5
It is working now. My last problem is with the 95th percentile script by sean adams. Do you know how to actually patch the mrtg with the changes that you need to make to get it to work?

http://www.seanadams.com/95/

I know how to do everything else its just the patch for mrtg.
facecake
afaik, the only way to do this would be to manuall compile it from source, without using ports (unless you edit the makefile etc)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.