| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| Routers.cgi*Extension http://www.steveshipway.org/forum/viewtopic.php?f=17&t=225 |
Page 1 of 2 |
| Author: | joyeux666 [ Fri May 07, 2004 2:46 am ] |
| Post subject: | Routers.cgi*Extension |
| Author: | stevesh [ Fri May 07, 2004 10:11 am ] |
| Post subject: | |
| Author: | joyeux666 [ Tue May 18, 2004 4:52 am ] |
| Post subject: | |
| Author: | stevesh [ Tue May 18, 2004 11:15 am ] |
| Post subject: | |
| Author: | joyeux666 [ Tue May 18, 2004 9:32 pm ] |
| Post subject: | |
In this script, I look my parameter ARGV[0]. According to what i understand, i need to read this parameter like CGI paramater. So, I don't understand, with extension.cgi (it's the script in the part extension modules with routing table, trend analysis......!!!) how pass my parameter like CGI??? regards David |
|
| Author: | joyeux666 [ Tue May 18, 2004 10:19 pm ] |
| Post subject: | |
I have 2 others questions : First, I haven't problem with routingtable.cgi but yesterday, return to me in apache error_log "can't locate object method session via package Net::SNMP" I make a small scrip #!/usr/bin/perl use Net::SNMP; print"Test pour l'existence du module SNMP\n"; return to me Test pour ...... then no error about Net::SNMP module but Where ??? Second, the script trend.cgi. In routers.cgi when i click on link "trend analysis", it post my web page with the differents choices (predictions, historical weightings, future distances) But Message error instead of graphs... In apache error_log show error on line 1456-1458 (it's the part of reading rrd file ). I think it's a bad value for the parameter interfaces or target but i don't see the error...... Have you an idea??? Thank you thank you for your help. regards. David a french newbie |
|
| Author: | stevesh [ Wed May 19, 2004 12:16 pm ] |
| Post subject: | |
1) A CGI parameter is usually passed in an environment variable, QUERY_STRING. The Perl CGI library helps you to extract these -- see how it is done in the example extension.cgi script, and read the CGI manual page. 2) Remember that CGI scripts are not supposed to be called frmo the command line. Most will not work if you call them this way. 3) Make sure you have the latest version of Net::SNMP installed, you may have an older version that is not campatible with the routingtables.cgi script? 4) Make sure you are calling routingtables.cgi from your web browser. It will not work if you call it from the command line. 5) trend.cgi must be called from the browser, via an Extension[] link. It will produce lots of errors if you try calling it from the command line or directly (not through an Extension[] link) since it has no internal parameter error checking. 6) trend.cgi needs to have some configuration at the beginning of the script -- you need to set the location of your rrdtool executable, a work directory, and the routers2.conf location. There will be lots of errors if you don't set these correctly. 7) I would need to be sent the error messages from your web server to track down the problems you are experiencing. |
|
| Author: | joyeux666 [ Thu May 20, 2004 3:34 am ] |
| Post subject: | |
| Author: | joyeux666 [ Thu May 20, 2004 3:35 am ] |
| Post subject: | |
| Author: | stevesh [ Thu May 20, 2004 9:59 am ] |
| Post subject: | |
| Page 1 of 2 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|