From 89bbb2d768a0e620c8b03f8104dad1298fa6f112 Mon Sep 17 00:00:00 2001 From: hjp Date: Tue, 29 Mar 2005 10:53:05 +0000 Subject: [PATCH] Changed to use new intranet. Added some notes on redesign. --- quotacheck/Notes | 22 ++++++++++++++++++++++ quotacheck/quotacheck.pl | 4 ++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 quotacheck/Notes diff --git a/quotacheck/Notes b/quotacheck/Notes new file mode 100644 index 0000000..1551653 --- /dev/null +++ b/quotacheck/Notes @@ -0,0 +1,22 @@ +Change to use statemachine: + + States: + + ok + soft + soft-urgent + hard + ok-again + + soft-urgent is soft, but expiry is < $n$ hours (48?) away. + All non-ok states revert to ok-again. ok-again turns into + ok after $n$ hours (168?). + + Notifications are sent on all state transitions except + ok->ok-again and periodically in the states soft-urgent and + hard. + + The message text reflects the different states. + + The graph is updated in all states except ok. + diff --git a/quotacheck/quotacheck.pl b/quotacheck/quotacheck.pl index 34b534f..020f1a7 100644 --- a/quotacheck/quotacheck.pl +++ b/quotacheck/quotacheck.pl @@ -43,7 +43,7 @@ sub warnmsg { "andere Netzplatte verschieben.\n" . "\n" . "Sie können sich Ihre Verbrauchsgraphen unter\n" . - "http://sww.wsr.ac.at/intranet/quotas/$user$mount_t.gif ansehen. \n" . + "http://intra.wsr.ac.at/informationssysteme/quotas/$user$mount_t.gif ansehen. \n" . "Der Graph zeigten den verbrauchten Platz ('used') sowie die beiden\n" . "Quotas ('soft' und 'hard')\n" . "Die Softquota können Sie kurzfristig (bis zu einer Woche) überschreiten,\n" . @@ -175,7 +175,7 @@ for my $ln (@df) { if (system (@startgraph) != 0) { die "cannot execute @startgraph"; } - system("@@@scp@@@", "/usr/local/www/wsr/intranet/quotas/$user$mount_t.gif", "sww.wsr.ac.at:/usr/local/www/wsr/intranet/quotas/$user$mount_t.gif"); + system("@@@scp@@@", "/usr/local/www//wsr/intranet/quotas/$user$mount_t.gif", "intra.wsr.ac.at:/usr/local/www/intra/informationssysteme/quotas/$user$mount_t.gif"); if (!-e $timestamp) { sendmail($user, $msg, $mount);