Changeset 220

Show
Ignore:
Timestamp:
03/01/07 12:06:04 (2 years ago)
Author:
ludo
Message:

low space warning added for /tftpboot (from r4076)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/webmin/lbs_common/lang/en

    r131 r220  
    156156err_cantlink=Unable to link <tt>$1</tt> with <tt>$2</tt> . 
    157157err_gcr_not_running=The 'getClientResponse' or 'lrsd' daemon is not running. You probably have a license problem. Check that your licenses are correct <a href="/lbs/license.cgi">here</a> or restart the LRS service by clicking <a href="/lbs/restart.cgi">here</a>. 
    158 err_space_low=Warning ! Available space in the /var disk is low. You should free some space or some LRS services may fail. 
     158err_space_low=Warning ! Available space in the $1 disk is low. You should free some space or some LRS services may fail. 
    159159 
    160160index_title=LRS : Control Center 
  • trunk/webmin/lbs_common/lang/fr

    r131 r220  
    154154err_cantlink=Impossible détablir un lien <tt>$1</tt> avec <tt>$2</tt> . 
    155155err_gcr_not_running=Le service 'getClientResponse' ou 'lrsd' ne tourne pas. Vous avez probablement un problème de licence. Vérifiez la validité de votre licence <a href="/lbs/license.cgi">ici</a> ou relancez le service LRS en cliquant <a href="/lbs/restart.cgi">ici</a>. 
    156 err_space_low=Attention ! L'espace disponible dans /var est bas. Vous devriez libérer de l'espace ou certains services LRS pourraient mal fonctionner. 
     156err_space_low=Attention ! L'espace disponible dans $1 est bas. Vous devriez libérer de l'espace ou certains services LRS pourraient mal fonctionner. 
    157157 
    158158index_title=LRS : Centre de Contrôle 
  • trunk/webmin/lbs_common/lbs_common.pl

    r194 r220  
    11401140 
    11411141# 
    1142 # Check if there's at least 100MB in /var 
     1142# Check if there's at least 100MB in /var and 1GB in /tftpboot 
    11431143# 
    11441144sub checkforspace () { 
     
    11471147        { 
    11481148            print "<font size='+2' color='red'><br>"; 
    1149             print $text{'err_space_low'}; 
     1149            print text('err_space_low', "/var"); 
     1150            print "<br><br></font>"; 
     1151        } 
     1152     
     1153    $run = `df -Pm /tftpboot|tail -1|awk '{print \$4}'`; 
     1154    if ($run < 1024) 
     1155        { 
     1156            print "<font size='+2' color='red'><br>"; 
     1157            print text('err_space_low', "/tftpboot"); 
    11501158            print "<br><br></font>"; 
    11511159        }