BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

{bb} MRTG & BB once again



Hello,


I have BB & MRTG successfully running separately and would like to add the
MRTG column to the BB display.  I downloaded the tar file from the archive
and I've added the two changes to the mrtg file.  I am stuck on the
following instructions though:
                                            
 

Position yourself in the 2nd block added in ./mrtg then:

 

1) Set up the associative array to reflect your installation (%mrtgfiletag)

1) Set the correct path to the bb executable ($BBHOME/bin/bb). You

        must specify the full path name (i.e /home/bb/bin/bb)

2) Set the correct IP address for BBDISPLAY (numerically like usual)

3) Set the correct URL where the MRTG html files are saved


If I am looking in the correct area these changes would need to go in this
part of the mrtg program:

    if( $peri eq "d" ) {

 

        # Use this hash to create a relationship between the MRTG interface

                my $addr = join '', unpack 'C4', gethostbyname $bbrouter ;

                # It resolved, notify

                if ( $addr ne "" ) {

                    @args = ($bbpath, $bbpager, "page ${mrtgbberr}${addr}
$bbcol
or $Today  Current In: $percin%  Current Out: $percout%");

                }

                else {

                    @args = ($bbpath, $bbpager, "page
${mrtgbberr}255255255255 $
bbcolor $Today  Current In: $percin%  Current Out: $percout%");

                }                                             
I am not a programmer, obviously :-)  Would someone be able to guide me a
little more on what I need to do and where I need to do it?  Please guide me
fellow brothers.


Thanks,


Marty Kirwan                
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Please send mail for the mailing list to: bb@taex001.tamu.edu
  To [un]subscribe to this list, send e-mail to majordomo@taex001.tamu.edu
     with [un]subscribe bb in the BODY of the message.
  Please contact the mailing-list-owner as: bb-owner@taex001.tamu.edu


Home | Main Index | Thread Index