How to install and use 'Talker.pl'



Talker.pl was created by Daniel J McDonald and Paul C. Williamson, so any suggestions should be directed to them and not me.

What you will need to get this to work;


Step 1 - Getting the script to work.
Step 2 - Changing the script to suit your needs better.
Step 3 - Organising your scripts and using the "Groups" dropdown box.
Updates - What has been requested to add to talker.pl.

Step 1 - Getting the script to work.

As always, there are a few lines of code that need to be changed, these are;

Please note:
On a Windows based system you need to separate your folders by using a double back slash "\\"
On a *nix based system you use a single forward slash "/" (but I guess you *nix experts knew that
J)

MRTG library folder - Line 21

  • MRTG/RRDTOOL target script location - Line 131

    When you have completed the above changes point your web browser to http://YourWebServer/talker.pl to test your script.

    If it doesn't work, double check what changes you have made.

    Top


    Step 2 - Changing the script to suit your needs better.

    Date format - Line 73

    HTML Links within 'talker.pl' - Lines 261 & 265

    Number of talkers - Line 135

    Time Period (topparams) - Lines 103-109

    If there are any more tweaks or changes that merit being listed here drop me an e-mail and I'll add it.

    Top


    Step 3 - Organising your scripts and using the "Groups" dropdown box.

    First let me explain how I organise my scripts.
    Before talker.pl script was released I had three main scripts and a separate script for every device (that's just over 200 scripts altogether).

    Although this may not be the best way to organise your scripts, by me doing it this way I can
    manage all my scripts without searching through long text files to change/add/remove any targets.

    The main scripts are:

    What the script is for

    The main MRTG script

    The main RRDTool script

    A script that only contains 'Include' statements to the targets

    The name of the script

    mainscript.cfg

    rrdmain.cfg

    devices.cfg

    What the script contains WorkDir: c:\inetpub\wwwroot
    IconDir: ./
    XSize[_]: 600
    Options[_]: unknaszero,bits,growright
    WithPeak[_]: y
    Unscaled[_]: dwmy

    Include: c:\mrtg\bin\devices.cfg
    WorkDir: c:\inetpub\wwwroot\rrd
    IconDir: ./
    XSize[_]: 600
    Options[_]: unknaszero,bits,growright
    WithPeak[_]: y
    Unscaled[_]: dwmy

    LogFormat: rrdtool
    PathAdd: c:\mrtg\rrdtool\perl-shared\t
    LibAdd: c:\mrtg\rrdtool\perl-shared

    Include: c:\mrtg\bin\devices.cfg
    Include: c:\mrtg\scripts\router1.cfg
    Include: c:\mrtg\scripts\router2.cfg
    Include: c:\mrtg\scripts\router3.cfg
    Include: c:\mrtg\scripts\router4.cfg
    Include: c:\mrtg\scripts\router5.cfg

    Include: c:\mrtg\scripts\Server1.cfg
    Include: c:\mrtg\scripts\Server2.cfg
    Include: c:\mrtg\scripts\Server3.cfg
    Include: c:\mrtg\scripts\Sw1-p1.cfg
    Include: c:\mrtg\scripts\Sw1-p2.cfg
    Include: c:\mrtg\scripts\Sw1-p3.cfg
    Include: c:\mrtg\scripts\Sw1-p4.cfg
    etc...
    etc...

    My fourth script is my newest, it contains all the extra parameters used with the new talker.pl script and it is this that I point talker.pl to (see Step 1 for details),
    currently it only contains the Toptalker*group parameter that is used in the 'group' dropdown box.

    On my script, the dropdown box will contain 'Traffic', 'Server' & 'Switch'.

    toptalkers.cfg

    WorkDir: c:\inetpub\wwwroot\rrd

    Toptalker*group[router1]: Traffic
    Toptalker*group[router2]: Traffic
    Toptalker*group[router3]: Traffic
    Toptalker*group[router4]: Traffic
    Toptalker*group[router5]: Traffic

    Toptalker*group[Server1]: Server
    Toptalker*group[Server2]: Server
    Toptalker*group[Server3]: Server
    Toptalker*group[Sw1-p1]: Switch
    Toptalker*group[Sw1-p2]: Switch
    Toptalker*group[Sw1-p3]: Switch
    Toptalker*group[Sw1-p4]: Switch
    etc...
    etc...

    #The last line in the script should be...
    Include: c:\mrtg\bin\devices.cfg

    Top



    Below is an example of what you should see once you have correctly configured talker.pl.

    Selection screen

    Below is an example of what I see after I select 'Switch' from the group box, then click on the "Get ranking" button.

    Result screen

    If you have problems following these instruction please e-mail me and explain what part you don't understand and I will try to reword it.


    Current requested updates are;

    I'll keep you updated with any changes that I hear of.

    Top



    This page was created on, Thu Jul 06 16:39(BST) 2001
    And updated on, Fri Jul 27 10:51(BST) 2001

    Counter
    Hosting by WebRing.
    Navigation by WebRing.