| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| ifstatus.cgi and routingtable.cgi break with escaped commnty http://www.steveshipway.org/forum/viewtopic.php?f=17&t=4218 |
Page 1 of 1 |
| Author: | ffeijo [ Fri Jul 16, 2010 10:11 am ] |
| Post subject: | ifstatus.cgi and routingtable.cgi break with escaped commnty |
Hi Steve, I am querying a router using a community string like this - @lph@dog MRTG has no problem if I escape the "at signs" properly. I am not sure, but there is a chance that ifstatus.cgi and rountingtable.cgi break, since they are working OK with regular community strings. Is there a quick fix that I can apply or should I forget about it ? I can replace a line if needed. My release is V.2.20. Thanks, Fernando Feijo |
|
| Author: | stevesh [ Fri Jul 16, 2010 10:36 am ] |
| Post subject: | Re: ifstatus.cgi and routingtable.cgi break with escaped commnty |
The problem with this lies in the routers2 parser, which is responsible for identifying the community string and passing it down the chain to the plugins. Unfortunately there is a bug in it which means it is unable to cope with community strings containing @ symbols (or colons, or spaces) and although the routers2 interface continues to work, the identified community string is wrong. This is not an easy fix; it would be quicker to change your SNMP community strings to something without an @ in it I'll take another look at it, but the main problem lies in the fact that, in order to improve performance, parsing is done with simple regexp matching on the line, which cannot identify an embedded \@ substring. We cannot move to using the MRTG config parsing library, because this was added after ROuters2 was devleoped and it handles multiple instances of the same directive differrently (eg, routers.cgi*Extension[] directives) |
|
| Author: | ffeijo [ Sat Jul 17, 2010 4:28 am ] |
| Post subject: | Re: ifstatus.cgi and routingtable.cgi break with escaped commnty |
Thanks, Steve. Got your message; will try to change the community string, instead Fernando |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|