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