Cheshire Cat Computing

Software support and information
It is currently Thu May 23, 2013 4:58 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Tue Dec 01, 2009 4:55 am 
Offline
Silver User

Joined: Thu Dec 04, 2008 9:23 am
Posts: 22
I am getting a chart where all the interfaces for one router (single .cfg file) are with the lines at the bottom of the interface crossed out, thusly:

http://gallery.me.com/ffeijo#100173/cro ... olor=black


It is only cosmetic, the links work. On the same server there are at least 4 other routers being monitored and those same lines are normal for them. Does someone know why, and most importantly, how to get rid of them ?

Thanks for any help.


***

The server runs Ubuntu server 8.04.3 LTS, rrdtool 1.2.19, mrtg 2.16.2 and routers2 2.20.

Here is the cfg file :


WorkDir: /var/www/mrtg
Logformat: rrdtool
Options[_]: growright bits
routers.cgi*Icon: router-sm.gif
routers.cgi*ShortDesc: Buc 1841 BxB
RunAsDaemon: yes
Interval:1
Timezone[_]: EST
routers.cgi*Icon: router-sm.gif
routers.cgi*Extension: "PDF Report weekly,month" /cgi-bin/pdfreport.cgi pdf-sm.gif
routers.cgi*Extension: "PDF Report daily,weekly" /cgi-bin/pdfreport.cgi?dwmy=dw pdf-sm.gif






#LAN
Target[133.136.afsnetworks.com.f00]: /172.31.9.220:xxx@172.31.9.220
MaxBytes[133.136.afsnetworks.com.f00]: 12500000
Title[133.136.afsnetworks.com.f00]: Lan interface
PageTop[133.136.afsnetworks.com.f00]: <div align=center> <H3>Buc 1841 BxB - Lan <s</H3> </div>
SetEnv[133.136.afsnetworks.com.f00]: MRTG_INT_DESCR="F0/0" MRTG_INT_IP=""
UnScaled[133.136.afsnetworks.com.f00]: dwmy
routers.cgi*InOut[133.136.afsnetworks.com.f00]: No
routers.cgi*InCompact[133.136.afsnetworks.com.f00]: no
routers.cgi*InSummary[133.136.afsnetworks.com.f00]: yes
routers.cgi*Mode[133.136.afsnetworks.com.f00]: interface
routers.cgi*ShortDesc[133.136.afsnetworks.com.f00]: . Lan
routers.cgi*Options[133.136.afsnetworks.com.f00]: bits, nopercent, nomax
routers.cgi*Icon[133.136.afsnetworks.com.f00]: interface-sm.gif
routers.cgi*Extension[133.136.afsnetworks.com.f00]: "Show current interface status" /cgi-bin/ifstatus.cgi camera2-sm.gif
routers.cgi*Link[133.136.afsnetworks.com.f00]: "Wan interface " troubleshoot/Buc-1841-2-Ken.cfg 133.136.afsnetworks.com.f10 router-sm.gif
routers.cgi*IfNo[133.136.afsnetworks.com.f00]: 1


Top
 Profile  
 
PostPosted: Tue Dec 01, 2009 2:25 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Have you been modifying your CSS file? Because the problem lies somewhere in there.

The routers2.css specifies the attributes for various parts of the page and you seem to have a strikethrough attribute on these. Possibly you have headers and footers with embedded tags and no closing tag?

Nice to see someone is making the most of the Extension and Link commands! Now I just need to see if anyone is using the header/footer text symbol replacement...

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
PostPosted: Tue Dec 01, 2009 5:43 pm 
Offline
Silver User

Joined: Thu Dec 04, 2008 9:23 am
Posts: 22
Gosh, Steve, you are so good you found my typo all the way from New Zealand.

It was probably a leftover from cut and paste. You can see it right here on the thread, on the pagetop directives, before the </H3> tag.

Thanks, and I certainly try to use all the stuff you and Toby sweated out. You two deserve all the DVDs you can get.


Top
 Profile  
 
PostPosted: Wed Dec 02, 2009 3:10 am 
Offline
Silver User

Joined: Thu Dec 04, 2008 9:23 am
Posts: 22
>>>header/footer text symbol replacement

That I am not familiar with. Is it something like variables, $ip, $name, that then gets replaced by their contents on the page ?


Top
 Profile  
 
PostPosted: Wed Dec 02, 2009 3:01 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Yes.
In the header or footer, or in the PageTop and PageFoot (and also in some other places) you can use symbols like %DEVICE%, %INTERFACE%, and so on which are replaced appropriately - this allows you to do some clever IMG or A tags in the HTML. In later versions of routers2, you can use %INCLUDE(filename)% or %EXEC(program)% as well; there is a list of the various symbols in the documentation. More details are also in the book... http://www.steveshipway.org/book/ so you might be able to get your employer to buy a copy... :)

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
PostPosted: Thu Dec 03, 2009 3:49 am 
Offline
Silver User

Joined: Thu Dec 04, 2008 9:23 am
Posts: 22
Thanks for the reply. I am a proud purchaser since you announced the book on the list. Might get a new copy, since mine is starting to get worn with the constant use.

Apparently I did not read it so thoroughly as I should.. :p Will check that again.

Thanks again, from an already snowy North Dakota.


Top
 Profile  
 
PostPosted: Thu Dec 03, 2009 9:47 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
If you have the 0th Edition (preview edition) of the book, the current 2nd edition has the details for v2.20 which increased the number of availble symbols. The documentation shipped with Routers2 has the updated list of symbols.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
PostPosted: Thu Dec 03, 2009 10:39 am 
Offline
Silver User

Joined: Thu Dec 04, 2008 9:23 am
Posts: 22
I just checked and yep - I got the preview edition. Will update to the new one, of course.

I am not sure of the usage of symbols other than for automation scripts producing cfg files. If one knows, say, what the router name and IP are, what the symbols will do is to spare typing that out on lines as title and pagetop. Is that the principle or am I missing another use ?


Top
 Profile  
 
PostPosted: Thu Dec 03, 2009 3:29 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
ffeijo wrote:
I just checked and yep - I got the preview edition. Will update to the new one, of course.

I am not sure of the usage of symbols other than for automation scripts producing cfg files. If one knows, say, what the router name and IP are, what the symbols will do is to spare typing that out on lines as title and pagetop. Is that the principle or am I missing another use ?


This is part of what the symbols can do. However, since they are emedded into HTML, you can construct custom IMG or A tags to link to related pages, Wikis, embed images of related graphs, or call custom CGI scripts. They also include the various information parse from cfgmaker-generated cfg files if you want to include that.

Since you already have a copy of the book, email me on steve@steveshipway.org and I can let you know about some special offers for upgrading.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group