|
From: Jamie C. <jca...@we...> - 2006-06-06 04:43:36
|
On 3/Jun/2006 15:58 dav...@da... 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;">Jamie,<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><br />A client has requested a log that tracks when certain services have gone down along with what is already in the Webmin System and Service Status page.<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><br />What they are looking for is something that they can look at in the future and say =93On June 2, 2006, mySQL was down and brought back up=94 etc.<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><br />Now I can probably program this module myself, but if you have anything already in the works let me know.=A0 It=92s a requirement for the companies Business Continence Plan etc.<o:p /></span></font></p></div></blockquote><span style=3D"font-family: Arial;">You might want to look into (mis)using the pager feature of the System and Server Status module. On the Module Config page, you can set the 'Command to send message to a pager' option to a script of your own creation like :<br /><br />#!/bin/sh<br />echo $2 >/var/log/webmin-up-down.log<br /><br />Normally this option is for use with a command like yaps which actually sends pager messages, but you can use it for any command you like. The only other thing you need to do is activate scheduled checking in the System and Server Status module, and fill in the 'Page status report to number' field with some fake number.<br /><br />=A0- Jamie<br /><br /></span> |