|
From: Jamie C. <jca...@we...> - 2006-09-19 18:46:06
|
On 19/Sep/2006 09:09 Thompson, Jimi wrote .. <blockquote type=3D"cite"> <div class=3D"Section1"> <p class=3D"MsoNormal"><font size=3D"2" face=3D"Arial"><span style=3D"font-size: 10pt; font-family: Arial;">I want to change the subject line and the text of the alert emails for the service monitor in webmin.=A0 The subject line and the alerts are so long that when I send them to my cell phone, the subject and the message body both get cut off.=A0 Where I can find the text so that I can shorten it? <o:p /></span></font></p> <p class=3D"MsoNormal"><font size=3D"2" face=3D"Arial"><span style=3D"font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p> <p class=3D"MsoNormal"><font size=3D"2" face=3D"Arial"><span style=3D"font-size: 10pt; font-family: Arial;">Thanks,</span></font><o:p /></p> <p class=3D"MsoNormal"><font size=3D"3" face=3D"Times New Roman"><span style=3D"font-size: 12pt;">=A0<o:p /></span></font></p> <p class=3D"MsoNormal"><font size=3D"2" face=3D"Arial"><span style=3D"font-size: 10pt; font-family: Arial;">Ms. Jimi Thompson, CISSP</span></font><o:p /></p> <p class=3D"MsoNormal"><font size=3D"2" face=3D"Arial"><span style=3D"font-size: 10pt; font-family: Arial;">Manager of Web Operations</span></font><o:p /></p> <p class=3D"MsoNormal"><st1:place w:st=3D"on"><st1:placename w:st=3D"on"><font size=3D"2" face=3D"Arial"><span style=3D"font-size: 10pt; font-family: Arial;">SMU</span></font></st1:placename><font size=3D"2" face=3D"Arial"><span style=3D"font-size: 10pt; font-family: Arial;"> <st1:placename w:st=3D"on">Cox</st1:placename> <st1:placetype w:st=3D"on">School</st1:placetype></span></font></st1:place><font size=3D"2" face=3D"Arial"><span style=3D"font-size: 10pt; font-family: Arial;"> of Business</span></font><o:p /></p> <p class=3D"MsoNormal"><font size=3D"3" face=3D"Times New Roman"><span style=3D"font-size: 12pt;"><o:p> </o:p></span></font></p> </div> </blockquote>The text strings used in the message are defined in the file status/lang/en under the Webmin root (usually /usr/libexec/webmin).<br />If you edit that file, the lines to change are the ones starting with monitor_ .<br /><br />Better still, you can create a file named /etc/webmin/status/custom-lang and put into it just the monitor_ lines that you want to override, like :<br /><br />monitor_email_down=3D$2 on $1 down at $3<br /><br />Creating this file is better, as it will be preserved after Webmin is upgraded.<br /><br />=A0- Jamie<br /><br /> |