Skip to content

Commit

Permalink
um
Browse files Browse the repository at this point in the history
  • Loading branch information
flores committed Sep 8, 2011
1 parent 5268aa4 commit 25d42f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dircheck.pl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/perl -w

# emails any user and sysadmin for home dirs using > 100MB. - carlo
# emails any user and sysadmin for home dirs using > 100MB. - lo

use strict;
my $host=`hostname`;
Expand All @@ -25,6 +25,6 @@
# if ($usage > $thresh)
# {
# print "$user over $thresh";
# system "echo \"Hi $user. Please free space on your home directory on $host. Our limit is $thresh M. You are using $usage M.\" | /bin/mail -s \"disk usage on $host\" $user\@somehost.com,carlo\@somehost.com";
# system "echo \"Hi $user. Please free space on your home directory on $host. Our limit is $thresh M. You are using $usage M.\" | /bin/mail -s \"disk usage on $host\" $user\@somehost.com,lo\@somehost.com";
# }
}
2 changes: 1 addition & 1 deletion md5check_nagios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# just checks md5sum of file, to see if
# loadbalancing or some other thing is
# corrupting the file -- carlo
# corrupting the file -- lo

/usr/bin/wget http://somefile
CHECK=$(/usr/bin/md5sum ./somefile |/bin/awk '{print $1}')
Expand Down
4 changes: 2 additions & 2 deletions squid_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Gets times to load different elemnts of the cps. Can be used for any
# cp server as long as one first makes a cookie.site file for authentication
# -- carlo
# -- lo

if [ ${#1} -lt 2 ]; then
echo "$0 <squid ip> <site/target host>"
Expand Down Expand Up @@ -62,7 +62,7 @@ REPORT=$($WGET "http://$IP/someresource" && $TIME)
echo "login:$LOGIN menu:$MENU ext:$EXT report:$REPORT stats:$STATS"
#
## CSV friendly
#echo -e "$DATE,$TIME,$LOGIN,$MENU,$EXT,$REPORT,$STATS" >> ~carlo/$SITE\_loadtimes
#echo -e "$DATE,$TIME,$LOGIN,$MENU,$EXT,$REPORT,$STATS" >> ~lo/$SITE\_loadtimes



Expand Down

0 comments on commit 25d42f3

Please sign in to comment.