Cheshire Cat Computing

Software support and information
It is currently Sun May 26, 2013 10:15 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Fri Jul 09, 2010 3:35 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
As has been mentioned, the gauge.swf file previously available from http://www.maani.us/ has been replaced with slickboard.swf, and this is not compatible with the gaugexml.cgi script.

However, I now have v3.0 of gaugexml.cgi, and this is compatible with both versions! In order to make it work with slickboard, though, you need to use the Javascript provided by the maani people.

So, here are the instructions:

1. Obtain slickboard from http://www.maani.us/slickboard/index.php?menu=Download or from the attachment below.

2. Install the slickboard.swf and AC_RunActiveContent.js into your web server directory root. Also put the gaugexml3.js file attached below in there.

3. Install the new gaugexml3.cgi into your cgi-bin. Edit the parameters at the start of the script for CFGDIR, ROUTERSCGI and so on as required. You may need to use gaugexml3.pl or gaugexml3.cgi, depending on your web server.

4. Place this Javascript at the beginning of your web page:
Code:
<script language="javascript">AC_FL_RunContent = 0; DetectFlashVer = 0; </script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<script src="gaugexml3.js" language="javascript"></script>


5. Where you want the gauge to appear, insert the following code. You will also need to use the appropriate MRTG config file name for mrtg.cfg, and the appropriate Target name for targetname.
Code:
<script><!--
gauge('mrtg.cfg','targetname');
// -->
</script>
<noscript><P>This content requires JavaScript.</P></noscript>


The gauge should now display, if you've done it correctly. Note that this is a BETA! If it doesn't work, here are some things to check:
1. Check the file is using the correct extension (.pl or .cgi) and has execute permission.
2. Check you've set the correct parameters in the gaugexml3.cgi script
3. In the Javascript, make sure you've specified the correct CFG file location and target name.
4. Try it all in HTTP (not HTTPS first)

Also, note that the clickable links (you can click on a gauge and it should take you to the corresponding Routers2 graph) will not work unless you have a registered version of slickboard. which costs US$59.

If you want to display more than one gauge, you can use the gauge() line in step 5 above multiple times.

You can see a demo of this at https://monitor.auckland.ac.nz/swfdemo.html


You do not have the required permissions to view the files attached to this post.

_________________
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: Wed Jul 14, 2010 6:07 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
A new version (3.2) is currently in beta which will have the correct links, custom right-click menu, popup tooltips howing target information and actual values, and corrects some of the labelling.

_________________
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 Jul 15, 2010 8:18 pm 
Offline
Silver User

Joined: Sat May 01, 2010 12:32 pm
Posts: 10
Wow! You are fast. Great work Steve!


Top
 Profile  
 
PostPosted: Wed Oct 20, 2010 12:47 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Take a look at https://monitor.auckland.ac.nz/wlan3.html if you'd like to see what the latest version can do.

_________________
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: Fri Oct 29, 2010 4:32 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Version 3.3 (and the whold dashboard code) has been added to the links in the first post.

_________________
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 20, 2011 11:49 am 
Offline
User

Joined: Tue Dec 20, 2011 11:36 am
Posts: 1
Location: da Internet
Thank you for this. I will send this to my programmer. He will do the dirty job.

_________________
Living la vida loca!


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

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


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