Only in procstatd-1.4.2/webwatch: .README.swp diff -ru procstatd-1.4.2/webwatch/clean_ipc procstatd-1.4.2/webwatch/clean_ipc --- procstatd-1.4.2/webwatch/clean_ipc 2002-06-22 20:01:05.000000000 +0200 +++ procstatd-1.4.2/webwatch/clean_ipc 2002-06-22 20:01:31.000000000 +0200 @@ -44,7 +44,7 @@ if( defined($opt_f) ) { $configfile = $opt_f; } else { - $configfile = "/home/shiva/jpormann/webwatch/webwatch.config"; + $configfile = "/etc/webwatch.config"; } # create machine list diff -ru procstatd-1.4.2/webwatch/clean_procstatd procstatd-1.4.2/webwatch/clean_procstatd --- procstatd-1.4.2/webwatch/clean_procstatd 2002-06-22 20:01:05.000000000 +0200 +++ procstatd-1.4.2/webwatch/clean_procstatd 2002-06-22 20:02:52.000000000 +0200 @@ -32,15 +32,15 @@ if( defined($opt_f) ) { $configfile = $opt_f; } else { - $configfile = "/home/shiva/jpormann/webwatch/webwatch.config"; + $configfile = "/etc/webwatch.config"; } # clear hostlist and set some basic defaults @hostlist = (); $hearbeat = 10*60; # heartbeat (in seconds) $port = 7885; -$exelocation = "/home/shiva/jpormann/webwatch"; -$weblocation = "/home/shiva/jpormann/public_html"; +$exelocation = "/usr/bin"; +$weblocation = "/usr/share/httpd/htdocs/procstatd"; &read_config( $configfile ); diff -ru procstatd-1.4.2/webwatch/clean_prog procstatd-1.4.2/webwatch/clean_prog --- procstatd-1.4.2/webwatch/clean_prog 2002-06-22 20:01:05.000000000 +0200 +++ procstatd-1.4.2/webwatch/clean_prog 2002-06-22 20:06:08.000000000 +0200 @@ -43,7 +43,7 @@ if( defined($opt_f) ) { $configfile = $opt_f; } else { - $configfile = "/home/shiva/jpormann/webwatch/webwatch.config"; + $configfile = "/etc/webwatch.config"; } # clear hostlist and set some basic defaults diff -ru procstatd-1.4.2/webwatch/start_procstatd procstatd-1.4.2/webwatch/start_procstatd --- procstatd-1.4.2/webwatch/start_procstatd 2002-06-22 20:01:05.000000000 +0200 +++ procstatd-1.4.2/webwatch/start_procstatd 2002-06-22 20:07:03.000000000 +0200 @@ -32,15 +32,15 @@ if( defined($opt_f) ) { $configfile = $opt_f; } else { - $configfile = "/home/shiva/jpormann/webwatch/webwatch.config"; + $configfile = "/etc/webwatch.config"; } # clear hostlist and set some basic defaults @hostlist = (); $hearbeat = 10*60; # heartbeat (in seconds) $port = 7885; -$exelocation = "/home/shiva/jpormann/webwatch"; -$weblocation = "/home/shiva/jpormann/public_html"; +$exelocation = "/usr/bin"; +$weblocation = "/usr/share/httpd/htdocs/procstatd"; &read_config( $configfile ); diff -ru procstatd-1.4.2/webwatch/webwatch.config procstatd-1.4.2/webwatch/webwatch.config --- procstatd-1.4.2/webwatch/webwatch.config 2002-06-22 20:30:07.000000000 +0200 +++ procstatd-1.4.2/webwatch/webwatch.config 2002-06-22 20:44:10.000000000 +0200 @@ -1,30 +1,32 @@ # where to put the web page -weblocation = /home/shiva/jpormann/public_html -exelocation = /home/shiva/jpormann/webwatch +weblocation = /tmp +exelocation = /usr/bin # might as well use a fully qualified path to the ping command pingcmd = /bin/ping # all hostlist sets are accumulated into 1 list -hostlist = bull,cow1,cow2,cow3,cow4,cow5,cow6,cow7,cow8,cow9 -hostlist = cow10,cow11,cow12,cow13,cow14,cow15,cow16 -hostlist = beowulf1,beowulf2,beowulf3,beowulf4,beowulf5,beowulf6,beowulf7 -hostlist = beowulf8,beowulf9,beowulf10,beowulf11,beowulf12,beowulf13 -hostlist = beowulf14,beowulf15,beowulf16 +hostlist = localhost +#hostlist = bull,cow1,cow2,cow3,cow4,cow5,cow6,cow7,cow8,cow9 +#hostlist = cow10,cow11,cow12,cow13,cow14,cow15,cow16 +#hostlist = beowulf1,beowulf2,beowulf3,beowulf4,beowulf5,beowulf6,beowulf7 +#hostlist = beowulf8,beowulf9,beowulf10,beowulf11,beowulf12,beowulf13 +#hostlist = beowulf14,beowulf15,beowulf16 # data items to output -outputlist = load1:1,load5:1,load15:1,mem_used:1,shm_tot:1 +outputlist = load1:1,load5:1,load15:1,mem_used:1,shm_tot:1,mem_free:1,proc:1,uptime:1 # heart beat = refresh rate if no web hits -heartbeat = 10m +heartbeat = 30s # port number to hit on the procstatd hosts port = 7885 # header info for the web page -webtitle = EE Department Beowulf Cluster -webimage1 = duke.emblem.jpg -webimage2 = magi.jpg -weblink1 = EE Department Home Page,http://www.ee.duke.edu -weblink2 = Duke University,http://www.duke.edu -weblink3 = Cluster Info,http://www.ee.duke.edu/~jpormann/cluster_info.html -weblink4 = Beowulf Home Page,http://cesdis.gsfc.nasa.gov/linux/beowulf/beowulf.html +webtitle = Beowulf Cluster +#webimage1 = duke.emblem.jpg +#webimage2 = magi.jpg +#weblink1 = EE Department Home Page,http://www.ee.duke.edu +#weblink2 = Duke University,http://www.duke.edu +#weblink3 = Cluster Info,http://www.ee.duke.edu/~jpormann/cluster_info.html +#weblink4 = Beowulf Home Page,http://cesdis.gsfc.nasa.gov/linux/beowulf/beowulf.html # for meterimage=meter_ and meterround=10 # you need to have files: meter_00.jpg, meter_10.jpg, ... meter_100.jpg +meterlocation = file:/usr/share/procstatd meterimage = meter_ meterround = 10 diff -ru procstatd-1.4.2/webwatch/webwatchd procstatd-1.4.2/webwatch/webwatchd --- procstatd-1.4.2/webwatch/webwatchd 2002-06-22 20:41:25.000000000 +0200 +++ procstatd-1.4.2/webwatch/webwatchd 2002-06-22 20:50:52.000000000 +0200 @@ -44,7 +44,7 @@ if( defined($opt_f) ) { $configfile = $opt_f; } else { - $configfile = "/home/shiva/jpormann/webwatch/webwatch.config"; + $configfile = "/etc/webwatch.config"; } if( defined($opt_V) ) { $opt_v = 1; @@ -55,8 +55,9 @@ @outputlist = (); $heartbeat = 10*60; # heartbeat (in seconds) $port = 7885; -$exelocation = "/home/shiva/jpormann/webwatch"; -$weblocation = "/home/shiva/jpormann/public_html"; +$exelocation = "/usr/bin"; +$weblocation = "/usr/share/httpd/htdocs/procstatd"; +$meterlocation = "."; $title = "EE Department Beowulf Cluster"; $image1 = "duke.emblem.xbm"; $image2 = $image1; @@ -112,7 +113,7 @@ print FP_HTML "

\n"; print FP_HTML "


\n"; if( scalar(@webtext) > 0 ) { - print FP_HTML "\n"; + print FP_HTML "
\n"; for($i=0;$i\n"; print FP_HTML " \n"; @@ -128,8 +129,8 @@ print FP_HTML " Last Update: $tm\n
\n"; print FP_HTML " Update Frequency: $heartbeat seconds\n"; print FP_HTML "
\n

\n"; - print FP_HTML "

$webtext[$i]
\n"; - print FP_HTML " \n"; + print FP_HTML "
EE Cluster Statistics
\n"; + print FP_HTML " \n"; print FP_HTML " \n"; # print the basic stats print FP_HTML " \n"; @@ -184,9 +185,9 @@ # : now round $pct = int( $pct / $meterround + 0.5 ) * $meterround; if( $pct > 100.0 ) { - print FP_HTML " \n"; + print FP_HTML " \n"; } else { - print FP_HTML " \n"; + print FP_HTML " \n"; } # percent memory load @@ -200,9 +201,9 @@ # : now round $pct = int( $pct / $meterround + 0.5 ) * $meterround; if( $pct > 100.0 ) { - print FP_HTML " \n"; + print FP_HTML " \n"; } else { - print FP_HTML " \n"; + print FP_HTML " \n"; } for($j=0;$j\n \n"; - $pingok = `$pingcmd -w 0 -q -c 1 $host`; + $pingok = `$pingcmd -q -c 1 $host`; if( $pingok !~ m/1 packets received/ ) { # machine is down! if( defined($opt_v) ) { @@ -255,8 +256,8 @@ print FP_HTML " \n"; } } # if pingok - print FP_HTML " \n"; - print FP_HTML " \n"; + print FP_HTML " \n"; + print FP_HTML " \n"; for($j=0;$jn/a\n"; } @@ -270,7 +271,7 @@ # HTML footer and close the file print FP_HTML "
$title Statistics
Machine Name$host
No-D
\n"; print FP_HTML "

\n


\n

\n"; - print FP_HTML "\n \n"; + print FP_HTML "
Status
\n \n"; print FP_HTML " \n"; print FP_HTML " \n"; print FP_HTML " \n"; @@ -312,7 +313,11 @@ push( @outputlist, @fld ); } elsif( $_ =~ m/^heartbeat/i ) { @fld = split( /=\s+/, $_ ); - if( $fld[1] =~ m/m/i ) { + if( $fld[1] =~ m/s/i ) { + # time given in seconds + $heartbeat = $fld[1]; + $heartbeat =~ s/[Ss]//; + } elsif( $fld[1] =~ m/m/i ) { # time given in minutes $heartbeat = $fld[1]; $heartbeat =~ s/[Mm]//; @@ -332,6 +337,9 @@ } elsif( $_ =~ m/^exelocation/i ) { @fld = split( /=\s+/, $_ ); $exelocation = $fld[1]; + } elsif( $_ =~ m/^meterlocation/i ) { + @fld = split( /=\s+/, $_ ); + $meterlocation = $fld[1]; } elsif( $_ =~ m/^webimage1/i ) { @fld = split( /=\s+/, $_ ); $image1 = $fld[1]; @@ -457,12 +465,13 @@ @outputlist = (); $heartbeat = 10*60; # heartbeat (in seconds) $port = 7885; - $exelocation = "/home/shiva/jpormann/webwatch"; - $weblocation = "/home/shiva/jpormann/public_html"; + $exelocation = "/usr/bin"; + $weblocation = "/usr/share/httpd/htdocs/procstatd"; $image1 = "duke.emblem.xbm"; $image2 = $image1; @webtext = (); @weblink = (); + $meterlocation = "."; $meterimage = "meter_"; $meterround = 25; $pingcmd = "/bin/ping";
Status
UPMachine is up and daemon is running
INITMachine is up and daemon is being initialized
No-DMachine is up but no daemon is running