# # SysWatch v1.5.1 - CGI Script to gather and report various system information. # Copyright (C) 2000-2001 Chris Martino # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # Memory/Swap info. You must plug these in manually if you are # using something other than Linux, FreeBSD, NetBSD or SunOS. $memory = ""; # How much memory, in megabytes. $swap = ""; # How much swap, in megabytes. $toploc = "/usr/bin/top"; #Path to top program. # List of devices that you don't want to see (We automagically exclue NFS $exclude_nfs = "TRUE"; @exclude_devs = ( "/proc", "proc", "fd" ); # URL to the greendot.gif and reddot.gif image. $image = '/images/greendot.gif'; $full_image = '/images/reddot.gif'; # Color & Table Configuration $bgcolor = "#000000"; # Background color $text = "#FFFFFF"; # Text color $tbgcolor = "#000000"; # Table background color $tdcolor = "#231d53"; # Table header color $titlecolor = "#FFFFFF";# Table header text color $twidth = "60%"; # Can be pixels or a percentage # Refresh Configuration $refresh = 1; # 0 = off ; 1 = on $interval = 300; # Seconds until refresh # [1/0] What information do you want the CGI to display? # 1 = show info ; 0 = don't show info. $showdrivemap = 1; # Do you want to show the drivemaps? $showwhat = 1; # Do you want to show what people are doing? $showtail = 1; # Do you want to show recent system messages? $showhogs = 1; # Do you want to show what is taking up # alot of resources? # Which system message do you want displayed? $logs = "/var/log/messages"; # How many lines to output for "System Messages" $taillines = "20";