From: John H. <j....@pl...> - 2004-02-12 10:26:24
|
On Wed, 2004-02-11 at 22:15, Jamie Cameron wrote: > On Thu, 2004-02-12 at 02:25, John Horne wrote: > > Hello, > > > > As far as I can tell, using webmin 1.130, if I use 'remote_eval' in a > > module to execute something on a remote server nothing gets logged by > > webmin on the remote server. Would it be possible to get the command > > logged? Access to the remote server is by fastrpc with a username/pwd > > supplied. I'm not totally sure how webmin communicates with the remote > > server so I'm not too sure what is/is not possible! :-) > > You would have to use code like : > > remote_foreign_call($server, $module, "system_logged", $your_command); > remote_foreign_call($server, $module, "webmin_log", "whatever"); > > Most modules do their logging on the 'master' side rather than the > 'slave' side .. however, this would still work fine. > Thanks, I'll try this. It's for the b9ddns third-party module. If people are going to do things on a slave DNS name server but from a master server (that is, the master name server as well as the webmin server that they are logged on) - such as creating/deleting zones, reload's etc - then I'd like it logged on the slave. I can see zones being created and deleted on the master server webmin log but nothing is said about whether the zone was created/deleted on the slave as well. In fact I think the master server should log that as well as the slave logging the fact that it is creating/deleting a zone. John. -- --------------------------------------------------------------- John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914 E-mail: Joh...@pl... Fax: +44 (0)1752 233839 |