Re: [webmin-devel] question on requirements for webmin modules
"Jamie Cameron" <[email protected]> Sun, 02 Mar 2014 11:59:31 -0800 (PST)
| Newsgroups | gmane.comp.web.webmin.devel |
|---|---|
| Message-ID | <[email protected]> |
On 01/Mar/2014 19:25 marty leisner <[email protected]> wrote .. > I'm writing custom modules and have the following requirements: > a) all actions need to log > b) xml-rpc needs to be able to trigger the actions > > It appears logging is modules written and I've seen it in the .cgi > scripts. Is there any logging "inherent" in webmin, or is it all module > driven. There is basic webserver logging to /var/webmin/miniserv.log , but this doesn't have the same detail as what you can get by calling webmin_log. > It looks like the .cgi scripts aren't accessabile from xml-rpc -- I suppose > to access the "actions" from xml-rpc I'd need to either > 1) put the actions in a method in the library (and invoke it from > both the cgi and the xml-rpc) Yes, that is correct. In an ideal module the CGI script would have very little actual functionality, and instead would call functions in your .pl file to do the real work. These could then also be called via XML-RPC. > 2) have a method in the library to invoke a .cgi script (in which case > the CGI script run without a GUI) I wouldn't recommend going this route. - Jamie ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk - Forwarded by the Webmin development list at [email protected] To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-devel