[Buffalo-pm] Malformed UTF-8 character...

Daniel Magnuszewski dmagnuszewski at yahoo.com
Thu Sep 4 12:44:10 CDT 2003


Skipped content of type multipart/alternative-------------- next part --------------
package MRTGViewerConfig;


# --
sub Load {
    my $Self = shift;

###########################################################
#----------------- CONFIG OPTIONS ------------------------#
# START EDITING HERE!				          #
###########################################################

	# CGI-BIN Directory
	$Self->{CGIBIN} = "/var/www/cgi-bin/mrtgv-2/";

	# Directory of MRTG Configuration
	$Self->{MRTGConfDir} = "/etc/mrtg/";

	# The script will try to search all directories from this main directory
	$Self->{MRTGMainWorkdir} = "/usr/local/mrtg/cfgs/";

	# Subdirectories
	# 0 = no subdirectories
	# 1 = enable subdirectories
	$Self->{Subdirectory} = "1";

	# Valid Subdirectories
	# Separate by space
	$Self->{ValidSubdirectories} = "pregi-net asti-net asti-net.err pregi-net.err";

        # Critical mrtg links directory
        # These are the links for UP/DOWN monitoring
        # For notification purposes
        $Self->{CriticalLinksDir} = "pregi-net asti-net";

        # Persons to notify when link is down/resumed operation
        # separate entries with one space only
        #$Self->{NotifyEmail} = "edwinv\@asti.dost.gov.ph cwgueco\@asti.dost.gov.ph";
        $Self->{NotifyEmail} = "edwinv\@asti.dost.gov.ph";

        # Enable Gnokii
        $Self->{Gnokii} = "0";
        # 1 -> enable gnokii (permit miscol to admin if trouble detected)
        # 0 -> disable gnokii function

        # Number to Notify via Missed Call
        $Self->{MisColNumber} = "09202612660";

	# HTML title tag
	$Self->{HTMLTitle} = "MRTG Viewer: PREGINET Network";

	# Page Content Title
	$Self->{PageTitle} = "PREGINET Network Status";


	
        #-- Page Content Title
        $Self->{Title} = "MRTG Viewer: Philippine Research Education and Government Information Network (PREGINET)";

        #-- Body Coolor
        #$Self->{bodyColor} = "lightblue";
        $Self->{bodyColor} = "#94D7EF";

        #-- Font Styles
        $Self->{Font1} = "<font face=Verdana size=-1>";
        $Self->{Font2} = "<font face=Verdana size=-2>";

        #-- Page Footer
        $Self->{Footer} = "<hr>Powered by MRTG Viewer 2.0 Copyright (c) 2002 Edwin D. Viñas Advanced Science and Technology Institute<br>>For comments or questions, <a href=\"mailto: pregi-web\@asti.dost.gov.ph\">contact us</a>.<br><a href=\"http://noc.asti.dost.gov.ph\">Back to NOC Homepage</a><br><a href=\"http://noc.asti.dost.gov.ph/webmaster/private/webmaster/index.php\">View Access Logs</a></body></html>";

        #-- Table Colors
        $Self->{thColor} = "lightorange";
        #$Self->{thColor} = "yellow";
        #$Self->{tdColor} = "lightgreen";


	# WWW Directory of MRTG
	$Self->{WWWMRTG} = "/mrtg/";

	# Date
	$Self->{Date} = `/bin/date`;
	
	# HostName
	$Self->{HostName} = `/bin/hostname`;
	
	# Refresh
	$Self->{Refresh} = "300";

	# Body Color
	#$Self->{BodyColor} = "#94D7EF";
	#$Self->{BodyColor} = "#D6D36E";

	# Font Style
	$Self->{Font} = "<font face=Verdana size=-1>";
	
	# Intro Text
	$Self->{Intro} = "
        The MRTG Viewer is a tool for monitoring the status of the PREGINET's network links based on MRTG. Once MRTG is installed in the server, the MRTG Viewer serves as a frontend for viewing available links and their corresponding graphs. It also indicates if the link is UP or DOWN based on the MRTG's timestamps. The last update time of the MRTG graphs are being compared with that of the server time to check if it is updating. If the graph doesn't update, it may serve as a warning that the link is down. The non-updating of MRTG graphs may mean that SNMP is not being received or the node is completely down. Ping/Traceroute tool are included for further diagnosis. If you found that the link is really down, please request a trouble ticket.
        </font>";

	# thColor
	$Self->{thColor} = "orange";
        #$Self->{thColor} = "#949294";

	# tdColor
        #$Self->{tdColor} = "lightgreen";
	$Self->{tdColor} = "cyan";
	#$Self->{tdColor} = "#C6C3C6";
	#$Self->{tdColor} = "#B5B2B5";

	# Time Lag (Non-update time)
	# More than or equal to this means trouble!
	$Self->{TimeLag} = "10";

	# Ping
	$Self->{Ping} = "/cgi-bin/ping.cgi";

	# Traceroute
	$Self->{Traceroute} = "/cgi-bin/trace.cgi";	

	# PTTS 
	$Self->{PTTS} = "/cgi-bin/webform.pl";

	# Javascripts
	$Self->{Javascript1} = "/usr/local/apache/cgi-bin/mrtg/Java1.js";
	$Self->{Javascript2} = "/usr/local/apache/cgi-bin/mrtg/Java2.js";


###########################################################
# STOP!!! DON'T EDIT THE CODE BELOW!			  #
###########################################################


}

# --
sub new {
    my $Type = shift;
    my %Param = @_;

    # allocate new hash for object
    my $Self = {};
    bless ($Self, $Type);

    # load config
    $Self->Load();
    return $Self;
}

# --
sub Get {
    my $Self = shift;
    my $What = shift;
    
    return $Self->{$What};
}
# --

1;



More information about the Buffalo-pm mailing list