| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| Adding modules http://www.steveshipway.org/forum/viewtopic.php?f=15&t=540 |
Page 1 of 1 |
| Author: | Bio [ Mon Mar 14, 2005 11:07 pm ] |
| Post subject: | Adding modules |
I want to add 2 modules on the router2.cgi script but i want to ask before if it'is possible... 1. I want to add a module "Add sites" so all the steps required to add a site make it by an interface... so ask the IP of the router, the name of the target,... and the module do all necessary steps. Is it possile (im on a Suse linux version).... so is it possible from script to send command in the shell? and how can i do it? 2. add a module for printing reports on pdf i have search but don' t find any freeware module Can everybody help me?thx |
|
| Author: | stevesh [ Tue Mar 15, 2005 2:25 pm ] |
| Post subject: | |
You can write any plugin modules you like, there is a Public Domain plugin template in the extensions directory for you to use as a basis. I have already written a plugin that will produce a report in PDF format, although it requires the (free) HTMLDOC software to already be installed, and it only works on UNIX at the moment. This plugin is in the extensions directory as shipped with the current version, but it doesnt support the inbuilt authentication code yet. You can send a shell command from a plugin script (it sounds as if this plugin would be program-level, defined in the [menu] section of the routers2.conf). If you are writing perl, take a look at the system() command. But, think about access rights, and make sure that your web user can write to your mrtg configuration -- this is a bit of a security risk, IMHO. |
|
| Author: | Bio [ Wed Mar 16, 2005 4:56 am ] |
| Post subject: | |
I'm learning the pearl langage for the moment and i must improve the system for the society where i am. One question more: I don't find the documentation about how to use the pluggin pdfreport... i have installed all the required things (HMLDOC and librairies) but how can i use it just by the URL in my web brownser, so http://localhost/cgi-bin/pdfreport.cgi but he dosen't take any of my devices, or this must integrate the interface automatically? I have already changed the configuration section in the pluggin script but don't understand how i must use it.... Thank you for your help. |
|
| Author: | stevesh [ Wed Mar 16, 2005 10:40 am ] |
| Post subject: | |
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|