Home Forums OS X Server and Client Discussion Questions and Answers MRTG on Panther server.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #357804
    Lohquetis
    Participant

    Hiya everyone…

    Anyone tried to get MRTG going at all on Panther? I tried this hint:
    http://www.macosxhints.com/article.php?story=20031019185335693&query=build+firewall

    No luck, it “broke” due to differences in Jaguar client and Panther server… Any luck out there?

    Yours
    Bobbi Style

    aka Lohquetis

    #359413
    Anonymous
    Guest

    Do a “man snmpd.conf” and take a look. There’s a perl script it will tell you about, that will walk you through configuring your server’s SNMP settings. Once you go through this process, mrtg should be able to pull the snmp data and go to town.

    #363187
    Anonymous
    Guest

    Has Richard or anyone got MRTG working on Mac OS 10.x server? Any infor on MRTG set up would be great. I would like to have MRTG running on our corporate Mac OS 10.4 Server to graph router throughput. I don’t really need to track/monitor Mac OS 10.x Server throughput. I undestand MRTG is just-another-unix application that can be set up to monitor and graph data from any SNMP host (ie most routers and computers running SNMP service).

    #363320
    Anonymous
    Guest

    RRDtool is a logging and graphing tool that grew out of the MRTG project.

    #364026
    serversolutions
    Participant

    [QUOTE BY= Sam Venning] Has Richard or anyone got MRTG working on Mac OS 10.x server? Any infor on MRTG set up would be great. I would like to have MRTG running on our corporate Mac OS 10.4 Server to graph router throughput. I don’t really need to track/monitor Mac OS 10.x Server throughput. I undestand MRTG is just-another-unix application that can be set up to monitor and graph data from any SNMP host (ie most routers and computers running SNMP service).[/QUOTE]Yes I’ve got it working, rather than utilize all of the poorly written instructions I decided to go it from scratch and I was amazed that it’s much simpler than the other instructions imply.

    install zlib-1.2.3, jpeg-v6b, libpng-1.2.8-config, libgd-2.0.33 using prefix of /usr/local.

    Using the OS Installer CD/DVD, install X11 stuff if you haven’t already installed this when you installed the developer tools.

    for mrtg, issue: (no options)

    ./configure

    Here’s a tested 10.4 startup item for /System/Library/LaunchDaemons.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Iterations</key>
    <integer>3</integer>
    <key>Label</key>
    <string>com.mrtg</string>
    <key>LowPriorityIO</key>
    <true/>
    <key>Nice</key>
    <integer>1</integer>
    <key>OnDemand</key>
    <false/>
    <key>ProgramArguments</key>
    <array>
    <string>/usr/local/mrtg-2/bin/mrtg</string>
    <string>--logging</string>
    <string>/var/log/mrtg.log</string>
    <string>/usr/local/etc/mrtg/mrtg.cfg</string>
    </array>
    <key>ServiceIPC</key>
    <false/>
    </dict>
    </plist>

    then

    /usr/local/mrtg-2/bin/cfgmaker --ifref=descr \\
    --global 'WorkDir: /Library/WebServer/Documents/mrtg/' \\
    --global 'Options[_]: bits,growright' \\
    --output /usr/local/etc/mrtg/mrtg.cfg \\
    IP of snmp device

    /usr/local/mrtg-2/bin/indexmaker \\
    --output=/Library/WebServer/Documents/mrtg/index.html \\
    /usr/local/etc/mrtg/mrtg.cfg

    touch /var/log/mrtg.log

    Using BBEdit (or a simiar text editor) edit “/usr/local/etc/mrtg/mrtg.cfg” and change

    EnableIPv6: no
    WorkDir: /Library/WebServer/Documents/mrtg/
    Options[_]: bits,growright

    to

    NoDetach: Yes
    RunAsDaemon: Yes
    EnableIPv6: Yes
    WorkDir: /Library/WebServer/Documents/mrtg/
    Options[_]: bits,growright

    Now start it up

    launchctl load /System/Library/LaunchDaemons/com.mrtg.plist

    Check the mrtg log, you may need to add some perl modules.

    I added the following perl modules: (cpan must already be configured)

    IO::Socket
    Socket6
    IO::Socket::INET6

    — Dale

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Comments are closed