[mrtg] help with MRTG-2.16.3 & OS X 10.6.3
jwiggins
jwiggins at salon.com
Wed Apr 21 00:43:11 CEST 2010
Hi Niall.
Thanks for chiming in here.
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..
launchctl load -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist
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:
There is Pod::Usage (pod-parser-1.38), Pod::Usage::CommandLine (pod-usage-commandline-0.04), Pod::Usage (perl-5.8.1).
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.
nevertheless, the Pod-parser compile is going on right now, and its been chugging for over an hour!?
Thanks again guys
JW
On Apr 20, 2010, at 3:35 PM, Niall O'Reilly wrote:
> On 20/04/10 17:42, jwiggins wrote:
>> Hi MRTG team/users:
>> I am trying to get a deployment of MRTG configured with Mac OS X
>> 10.6.3 and am running into some issues with the initial deployment
>> part, I think I am just making the situation worse for myself and/or
>> causing further frustration & not getting anywhere.
>> I got to the part where I would run cfgmaker, and I entered these
>> parameters in:
>> sh-3.2# ./cfgmaker --global 'WorkDir: /Library/WebServer/Documents/mrtg' \
>>> --global 'Options[_]: bits,growright' \
>>> --output /usr/local/mrtg-2/cfg/mrtg.cfg \
>>>
>> But got this error message
>> Can't locate object method "initialize" via package "Pod::Usage" at
>> /usr/local/mrtg-2/bin/../lib/mrtg2/Pod/Usage.pm line 516.
>
> I'm only at a brightly-coloured-belt level with MRTG,
> so one of the black belts may give you better help. I guess that means that cfgmaker noticed something missing from the command line, tried to display some documentation to help, and tripped over something in your installation.
>
>> I checked my version of Perl, its 5.10.0
>
> You'll need one of those black belts to say whether this
> is significant.
>
>> Then I tried again, this time adding a public at localhost for the SNMP portion:
>> sh-3.2# ./cfgmaker --global 'WorkDir: /Library/WebServer/Documents/mrtg' \
>>> --global 'Options[_]: bits,growright' \
>>> --output /Library/WebServer/mrtg/cfg/SALMEDIA-MONITOR.cfg \
>>> public at localhost
>> This did not appear to work correctly:
>> SNMP Error:
>> no response received
>> SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
>> community: "public"
>> request ID: 1714125174
>> PDU bufsize: 8000 bytes
>> timeout: 2s
>> retries: 5
>> backoff: 1)
>> at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 629
>> SNMPWALK Problem for 1.3.6.1.2.1.1 on public at localhost::::::v4only
>> at ./cfgmaker line 956
>> WARNING: Skipping public at localhost: as no info could be retrieved
>
> That looks to me like a warning that your target host
> (localhost: the Mac itself) is not running an SNMP daemon, or is blocking incoming SNMP probe requests on the localhost
> address.
>
> Is your Mac actually running an SNMP daemon?
> ( try 'ps -ef | grep snmp' or 'ps auxww | grep snmp' )
>
> Are you actually trying to monitor the Mac on which you plan to run MRTG? If so, MRTG has to be able to talk
> to the SNMP daemon, which must be running and reachable. Otherwise, you should point cfgmaker at the unit you want to monitor, rather than at localhost.
>
>> Is it wrong to assume that I can't do indexmaker at this point -
>> right? as when I tried that it failed also:
>> Use of uninitialized value $first in hash element at ./indexmaker line 353.
>
> If the configuration contained no targets, indexmaker would have nothing to go on. Your assumption is reasonable.
>
> I hope this helps.
>
> ATB
> Niall O'Reilly
>
>
More information about the mrtg
mailing list