[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing • View topic - Pretty animated shockwave gauges

Cheshire Cat Computing

Software support and information
It is currently Tue Nov 11, 2025 4:40 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
PostPosted: Sat May 01, 2010 2:14 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
The problem turned out to be browser security issues -- if the XML pickup URL is https, then the URL for the SWF objetc must also be https (and vice-versa).

To make it work requires only the SWF object, one CGI script, and adding some HTML into your web age where you want the gauge to appear.

There are detailed instructions in the book https://www.steveshipway.org/book/ but I cant really expect you to buy a copy just for this! Alternatively you can get the files and instructions on the CD -- you can download the ISO image for free from https://www.steveshipway.org/book/ and it contains many other plugins and so on.

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


Top
 Profile Send private message  
 
PostPosted: Fri May 21, 2010 10:18 am 
Offline
Silver User

Joined: Sat May 01, 2010 12:32 pm
Posts: 10
Does any one know if this would work with cricket?


Top
 Profile Send private message  
 
PostPosted: Mon May 24, 2010 10:33 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
This would not work with cricket, since it pulls its configuration from the MRTG config files and expects the RRD files to be in MRTG-generated format (appropriate RRAs and DS called ds0/ds1)

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


Top
 Profile Send private message  
 
PostPosted: Fri Jun 04, 2010 10:51 pm 
Offline
Silver User

Joined: Sat May 01, 2010 12:32 pm
Posts: 10
My current setup is... i created a rrd database. then created a crontab that runs rrdupdate with an snmp query on in and out. now I have a data collector.
But my problem is the html code that needs to be included.

I'm not sure how to tie my rrd file to this line...

VALUE="/gauge.swf?xml_source=testxml.cgi"

My rrd file is located in /var/www/html/rrd/logs/HS/hs-franklin-r1.noc_16.rrd


Top
 Profile Send private message  
 
PostPosted: Sat Jun 05, 2010 3:41 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
The CGI script I wrote to supply the XML expects an MRTG cfg file location as its parameter. This is parsed to locate the RRD file and deduce how to display it.

If you dont have a MRTG cfg file, then it will not work -- although you might be able to modify it to use defaults for all the labels, and change the DS names.

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


Top
 Profile Send private message  
 
PostPosted: Tue Jun 08, 2010 9:47 pm 
Offline
Silver User

Joined: Sat May 01, 2010 12:32 pm
Posts: 10
HELP!

I'm not sure what I'm doing wrong. I changed my format to MRTG with RRD.

This is the line I added to the index page...

VALUE="/gauge.swf?xml_source=publicxml.cgi%3Fcfg%3Dfranklin-hs.cfg%26target%3D10.91.0.171_16">

My cgi file looks like this...

# If my url matches this regexp, we're in public mode
my($PUBLICURL) = 'NONpublicxml';
# If in public mode, requested cfg must match this regexp
my($PUBLICCFG) = '^other-summary\/';
# This is the confpath from the routers2.conf
my($CFGDIR) = "/u01/mrtg/conf";
# This is the URL for routers2.cgi, if you have it
my($ROUTERSCGI) = "http://mrtg.auckland.ac.nz/cgi-bin/routers2.cgi";
# Default workdir for RRD files if not set in cfg file
my($workdir) = "/var/www/html/rrd/logs/HS";
# Not a good idea to change below here
# Columns of gauges if placing multiple ones


and my franklin-hs.cfg looks like this...

LogFormat: rrdtool
PathAdd: /usr/local/
LibAdd:/opt/rrdtool-1.4.3/bindings/perl-shared/
EnableIPv6: no
WorkDir: /var/www/html/rrd/logs/HS

<skipping output>

Target[10.91.0.171_16]: 16:mysecret@10.91.0.171:
SetEnv[10.91.0.171_16]: MRTG_INT_IP="10.91.1.171" MRTG_INT_DESCR="FastEthernet0/1.421"
MaxBytes[10.91.0.171_16]: 12500000
Title[10.91.0.171_16]: Traffic Analysis for 16 -- hs-franklin-r1
PageTop[10.91.0.171_16]: <h1>Traffic Analysis for 16 -- hs-franklin-r1</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>hs-franklin-r1 in </td>
</tr>
<tr>
<td>Maintainer:</td>
<td></td>
</tr>
<tr>
<td>Description:</td>
<td>FastEthernet0/1.421 OPTEMAN-Franklin SH </td>
</tr>
<tr>
<td>ifType:</td>
<td>Layer 2 Virtual LAN using 802.1Q (135)</td>
</tr>
<tr>
<td>ifName:</td>
<td>Fa0/1.421</td>
</tr>
<tr>
<td>Max Speed:</td>
<td>12.5 MBytes/s</td>
</tr>
<tr>
<td>Ip:</td>
<td>10.91.1.171 (hs-franklin-r1)</td>
</tr>
</table>
</div>


It seems as though the cgi file is not phasing the .cfg file. Is there a way to verify that the cgi file is able to locate the mrtg config file?


Last edited by rmarnold on Fri Jun 18, 2010 3:30 pm, edited 2 times in total.

Top
 Profile Send private message  
 
PostPosted: Wed Jun 09, 2010 11:07 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
You might want to put the full URL for the swf and cgi in the VALUE statement to prevent problems locating them.

If the CGI has a problem with the cfg file, youll get an empty gauge. If the CGI is not running at all, youll get the default gauge - a sort of grey circle with one pointer and no numbers. Check permissions and URLs. Also if using https, try changing to http for initial testing.

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


Top
 Profile Send private message  
 
PostPosted: Thu Jun 10, 2010 4:51 am 
Offline
Silver User

Joined: Sat May 01, 2010 12:32 pm
Posts: 10
I do get the default gauge. So I'll start looking at url and permissions.
Also, I finaly decided to by your book. I thought it would be a good investment, but the delivery date is still unknow. How do I obtiain a digial copy in the mean time?

Thanks,

--Robert


Top
 Profile Send private message  
 
PostPosted: Thu Jun 10, 2010 3:21 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
The books are printed on demand, so it might take a couple of weeks. The lulu website should be able to give you a good indication of expected delivery date.

Due to copyright concerns, I'm not making a digital copy of the full book available at this date. Sorry... The reference book is available digitally, though.

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


Top
 Profile Send private message  
 
PostPosted: Fri Jun 18, 2010 11:26 am 
Offline
Silver User

Joined: Sat May 01, 2010 12:32 pm
Posts: 10
Finally! I got it working, thanks to your wonderful book! The problem was that the cgi script couldn't find the .cfg file. After reading the details in your book I realized that this is relative to the confpath.

Finished just in time too, management was on my case! I do have one issue though, the gauge is not showing as a "usage %" gauge, but as a "bps x1000" gauge. I need it to show up with 1 percent to 100 percent.I was reading from the example site and saw that you mentioned the "aspercent" option. How did you get it to work?

Thanks,

--Robert


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2, 3  Next

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

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group