<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi MRTG team:<div><br></div><div>Thanks for taking a few mins to read this. So I made it past the Pod::Usage module compile/install.</div><div><br></div><div>My next step moving forward is to use cfgmaker, which at first I got errors (which may be my problem with indexmaker), but it generated the file. Now to use indexmaker, and I'm getting the following error message:</div><div><br></div><div><div><b><br></b></div><div><b>Use of uninitialized value $first in hash element at /Users/xyzcorp/Downloads/mrtg-2.16.3/bin/indexmaker line 353.</b></div></div><div><font class="Apple-style-span" color="#2618EE" face="Times"><font class="Apple-style-span" color="#000000" face="Helvetica"><br></font></font></div><div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Times; color: rgb(38, 24, 238); "><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; "><div><font class="Apple-style-span" face="Times"><div><font class="Apple-style-span" color="#2618EE"><p><font class="Apple-style-span" color="#000000">this is the line # 353 --- </font><b><font class="Apple-style-span" color="#000000">my $host = $$rcfg{host}{$first};</font></b></p><p><font class="Apple-style-span" color="#000000">I've looked at 3 or 4 sample snmpd.conf files and made sure mine followed the best practices I saw</font></p><div><font class="Apple-style-span" color="#000000"><br></font></div><div><font class="Apple-style-span" color="#000000">I can't do an SNMPWALK though</font></div>
<h1><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">snmpwalk -v 1 -c public localhost
systemSNMPv2-MIB::sysContact.0 = STRING: Administrator </font></span></font><a href="mailto:xyz@salon.com"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">xyz@salon.com</font></span></font></a></h1><p><b><font class="Apple-style-span" color="#000000">End of MIB</font></b></p><p><font class="Apple-style-span" color="#000000">or...</font></p><p><b><font class="Apple-style-span" color="#000000">WebServer root# snmpwalk -v 1 -c public localhost
IP-MIB::ipAdEntIfIndex<br>
End of MIB</font></b></p></font></div><div><font class="Apple-style-span" color="#2618EE"><br></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">I am just nearing a deadline and am struggling with this setup. Thank you very much for looking at my problem</span></font></div><div><font class="Apple-style-span" color="#2618EE"><br></font></div></font></div></span></div></div><div><br></div><div><div>On Apr 20, 2010, at 3:43 PM, jwiggins wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Niall.<br><br>Thanks for chiming in here.<br><br>You are right, and Lyle stated the same thing to me - that a) SNMP didn't appear to be running, and that was true. I have kicked that off..<br><br>launchctl load -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist<br>But it also was stated that I needed to install Pod:Usage PERL module via CPAN. I did take a look at this before emailing the list, and I'm actually installing Pod-parser-1.38. This was actually confusing at first when searching CPAN because:<br><br>There is Pod::Usage (pod-parser-1.38), Pod::Usage::CommandLine (pod-usage-commandline-0.04), Pod::Usage (perl-5.8.1).<br><br>When I take a look at the last one, that is Pod::Usage (perl-5.8.1), wouldn't this be unnecessary since I am running perl 5.10.0, seeing that this package is perl-5.8.1.<br><br>nevertheless, the Pod-parser compile is going on right now, and its been chugging for over an hour!?<br><br>Thanks again guys<br><br>JW<br>On Apr 20, 2010, at 3:35 PM, Niall O'Reilly wrote:<br><br><blockquote type="cite">On 20/04/10 17:42, jwiggins wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite">Hi MRTG team/users:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I am trying to get a deployment of MRTG configured with Mac OS X<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">10.6.3 and am running into some issues with the initial deployment<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">part, I think I am just making the situation worse for myself and/or<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">causing further frustration & not getting anywhere.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I got to the part where I would run cfgmaker, and I entered these<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">parameters in:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">sh-3.2# ./cfgmaker --global 'WorkDir: /Library/WebServer/Documents/mrtg' \<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">--global 'Options[_]: bits,growright' \<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">--output /usr/local/mrtg-2/cfg/mrtg.cfg \<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">But got this error message<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Can't locate object method "initialize" via package "Pod::Usage" at<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">/usr/local/mrtg-2/bin/../lib/mrtg2/Pod/Usage.pm line 516.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>I'm only at a brightly-coloured-belt level with MRTG,<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>so one of the black belts may give you better help. <span class="Apple-tab-span" style="white-space:pre">        </span>I guess that means that cfgmaker noticed something missing <span class="Apple-tab-span" style="white-space:pre">        </span>from the command line, tried to display some documentation <span class="Apple-tab-span" style="white-space:pre">        </span>to help, and tripped over something in your installation.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">I checked my version of Perl, its 5.10.0 <br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>You'll need one of those black belts to say whether this<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>is significant.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Then I tried again, this time adding a public@localhost for the SNMP portion:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">sh-3.2# ./cfgmaker --global 'WorkDir: /Library/WebServer/Documents/mrtg' \<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">--global 'Options[_]: bits,growright' \<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">--output /Library/WebServer/mrtg/cfg/SALMEDIA-MONITOR.cfg \<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">public@localhost<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">This did not appear to work correctly:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">SNMP Error:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">no response received<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> community: "public"<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> request ID: 1714125174<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> PDU bufsize: 8000 bytes<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> timeout: 2s<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> retries: 5<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> backoff: 1)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 629<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">SNMPWALK Problem for 1.3.6.1.2.1.1 on public@localhost::::::v4only<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">at ./cfgmaker line 956<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">WARNING: Skipping public@localhost: as no info could be retrieved<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>That looks to me like a warning that your target host<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>(localhost: the Mac itself) is not running an SNMP daemon, <span class="Apple-tab-span" style="white-space:pre">        </span>or is blocking incoming SNMP probe requests on the localhost<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>address.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>Is your Mac actually running an SNMP daemon?<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>( try 'ps -ef | grep snmp' or 'ps auxww | grep snmp' )<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>Are you actually trying to monitor the Mac on which you <span class="Apple-tab-span" style="white-space:pre">        </span>plan to run MRTG? If so, MRTG has to be able to talk<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>to the SNMP daemon, which must be running and reachable. <span class="Apple-tab-span" style="white-space:pre">        </span>Otherwise, you should point cfgmaker at the unit you want <span class="Apple-tab-span" style="white-space:pre">        </span>to monitor, rather than at localhost.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Is it wrong to assume that I can't do indexmaker at this point -<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">right? as when I tried that it failed also:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Use of uninitialized value $first in hash element at ./indexmaker line 353.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>If the configuration contained no targets, indexmaker would <span class="Apple-tab-span" style="white-space:pre">        </span>have nothing to go on. Your assumption is reasonable.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>I hope this helps.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>ATB<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>Niall O'Reilly<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br>_______________________________________________<br>mrtg mailing list<br><a href="mailto:mrtg@lists.oetiker.ch">mrtg@lists.oetiker.ch</a><br>https://lists.oetiker.ch/cgi-bin/listinfo/mrtg<br></div></blockquote></div><br></div></body></html>