[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/bbcode.php on line 112: 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 112: 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 - manually creating a graph from the coomand prompt or script

Cheshire Cat Computing

Software support and information
It is currently Thu Nov 13, 2025 4:10 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject:
PostPosted: Mon Jul 19, 2004 11:09 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand

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


Last edited by stevesh on Tue Jul 20, 2004 11:57 am, edited 1 time in total.

Top
 Profile Send private message  
 
 Post subject: the answer is ...
PostPosted: Tue Jul 20, 2004 3:32 am 
Offline
User

Joined: Mon Jul 19, 2004 7:14 am
Posts: 6
Location: Newcastle, England.


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Tue Jul 20, 2004 11:57 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
That's not exactly correct....

Calling the script in this way actually generates the graph file in the working directory, and also outputs it on the standard output. So, if you want a page with an image, you can use:

<IMG src="http://myhost/cgi-bin/routers2.cgi?rtr=router.cfg&bars=Cami&xgtype=6&xgstyle=n2&xmtype=options&if=xx.xx.xx.xx_6&page=graph">

However, if all you really want is just the graph file on disk, then your method will call the script directly, throw away the output, and as a side effect you will find the latest version of the graph in the graphpath directory.

_________________
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  
 
 Post subject: Yes, I see ....
PostPosted: Tue Jul 20, 2004 9:43 pm 
Offline
User

Joined: Mon Jul 19, 2004 7:14 am
Posts: 6
Location: Newcastle, England.
Yes, I see your point.

For this instance, all I'm wanting to achive is a graph file on demand (i.e. via a script).

Combining with the other question thread which is open, I will now investigate archiving.

I now have backup solution, currently working in case it takes some R'n'D time to get that working.

Thanks for your prompt help.

Phil.


Top
 Profile Send private message  
 
PostPosted: Tue Aug 10, 2004 12:12 am 
Offline
User

Joined: Mon Jul 19, 2004 7:14 am
Posts: 6
Location: Newcastle, England.
Hi Ruedi,

I've sort of got everything working, with the archive feature now fully working - from the saving the raw data point of view.

I would be interested in looking at the scripts you are offering, as auto graph creation is a main feature we are trying to exploit i.e. auto historical graphing and archiving of the remote wan networks to a secure location.

Anything posted to info@nece.co.uk with my name in the subject field will be automatically forwarded to me.

Thanks, phil. :D


Top
 Profile Send private message  
 
PostPosted: Fri Sep 24, 2004 10:13 am 
Offline
User

Joined: Fri Sep 24, 2004 10:01 am
Posts: 6
First of all, I have to say routers2 rocks! :D

Now to my issue.....I have a need to create a page with a 'quick view' of certain graphs from some of my servers for some folks, while most would prefer to use the routers2 interface.

I've tried to implant the following code as suggested in a thread, however, I just don't seem to be getting very far here. Perhaps, I'm just being a dope or working too many hours. :(

From thread:

<IMG src="http://myhost/cgi-bin/routers2.cgi?rtr=router.cfg&bars=Cami&xgtype=6&xgstyle=n2&xmtype=options&if=xx.xx.xx.xx_6&page=graph">

I would assume this is possible with letting routers2 process the request, but I am not sure what is I'm missing. I replace 'myhost' with my host name, 'router.cfg' with the related cfg file, and I'm not sure what the 'xx.xx.xx.xx' is referring to and perhaps the only thing I'm missing.

Also, would it be possible to acquire a day, week, month, year graph using this method?

Thanks in advance!


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri Sep 24, 2004 2:26 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
First, go to the correct page of routers.cgi to view the graph you want. Then click the 'bookmark' botton. This generates a URL in your browser to go directly to this page.

Take the URL, and add '&page=graph' to the end of it, and you have the URL you need! This will do daily/weekly/monthly etc, and so on. The if= parameter is the Targetname, and the rtr= parameter specifies the configuration file.

Check the HOWTO documentation for a more detailed explanation of this.

_________________
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: Sat Sep 25, 2004 1:16 am 
Offline
User

Joined: Fri Sep 24, 2004 10:01 am
Posts: 6
Thanks a bunch. That is helpful. The bookmark approach works fine.

Is there a way to approach this to get the graphs themselves, i.e. "IMG Src = xxxxx" to place into a common interface and have routers.cgi process so we can have the latest data? I tried some variations with the bookmark and what's in the HOWTO and doesn't seem to work.

We have a central place where several different groups place their graphs and would like to do the same for some of these.

Sorry, I'm such a PITA. I really don't mean to be.

OK....I think nevermind on the above. I think I figured it out. I was not inputting the path (typical img src) as opposed to a web url. :D


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 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

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