Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


9.1 editor
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
timi
Cacti User


Joined: 09 Nov 2005
Posts: 130
Location: Timisoara, Romania

PostPosted: Thu May 31, 2007 9:33 am    Post subject: 9.1 editor Reply with quote

hi,

in preview version of wm editors (like .82) I could add the Data Source for a LINK directly from a link that was there in Link Properties, where did it dissapeared ? or how can i activate that link ?

now i use the editor from .91
Back to top
Mika2006
Cacti User


Joined: 03 May 2007
Posts: 165

PostPosted: Thu May 31, 2007 9:38 am    Post subject: Reply with quote

how and what is this editor do you have link please?
Back to top
timi
Cacti User


Joined: 09 Nov 2005
Posts: 130
Location: Timisoara, Romania

PostPosted: Thu May 31, 2007 10:08 am    Post subject: Reply with quote

the editor is from wm 0.91 take a look at the prtsc, there is no [Pick from Cacti] link after Data Source


editor.PNG
 Description:
 Filesize:  43.15 KB
 Viewed:  3036 Time(s)

editor.PNG


Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Thu May 31, 2007 10:16 am    Post subject: Reply with quote

You need to set the correct path to Cacti in editor-config.php otherwise the editor doesn't know how to get a list of data sources.

You needed to do this in 0.7, 0.8 and so on, too. It is in the installation guide.
Back to top
timi
Cacti User


Joined: 09 Nov 2005
Posts: 130
Location: Timisoara, Romania

PostPosted: Thu May 31, 2007 10:33 am    Post subject: Reply with quote

true, I forgot to modify one variable...10q
Back to top
Mika2006
Cacti User


Joined: 03 May 2007
Posts: 165

PostPosted: Thu May 31, 2007 1:59 pm    Post subject: Reply with quote

thanks that s good where to find in and how to use it please?
he is on cacti?
where please?
Back to top
timi
Cacti User


Joined: 09 Nov 2005
Posts: 130
Location: Timisoara, Romania

PostPosted: Mon Jun 04, 2007 5:24 am    Post subject: Reply with quote

editor-config.php
Back to top
Mika2006
Cacti User


Joined: 03 May 2007
Posts: 165

PostPosted: Mon Jun 04, 2007 6:29 am    Post subject: Reply with quote

hooooo
thats so goood!
but where to find how to create link work? please?
Back to top
Mika2006
Cacti User


Joined: 03 May 2007
Posts: 165

PostPosted: Mon Jun 04, 2007 8:28 am    Post subject: Reply with quote

well
i install the last version but the
editor-config.php dont work
i have a blank page?

some one can explain me how active this editor??
Back to top
Livio Zanol



Joined: 23 Feb 2006
Posts: 30

PostPosted: Mon Jun 04, 2007 8:39 pm    Post subject: Reply with quote

Another thing:

I've instaled the 0.91 version, and now when I try to open some files in the editor, depending on the files nothing happens, Just one blank pages and an strange HTML code containing variables with nodes and links.

Other question:

The bug where the editor remove the HTMLOUTPUTFILE, the IMAGEOUTPUTFILE and the OVERLIB style have been corrected in this version?

What have changed in this version of the editor (like the change internal node name thing)?
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Tue Jun 05, 2007 2:29 am    Post subject: Reply with quote

Livio Zanol wrote:
Another thing:

I've instaled the 0.91 version, and now when I try to open some files in the editor, depending on the files nothing happens, Just one blank pages and an strange HTML code containing variables with nodes and links.

Can you post a (part of) a screenshot? I don't understand this one.

Livio Zanol wrote:

The bug where the editor remove the HTMLOUTPUTFILE, the IMAGEOUTPUTFILE and the OVERLIB style have been corrected in this version?

That was fixed in 0.9. It's in CHANGES.

Livio Zanol wrote:

What have changed in this version of the editor (like the change internal node name thing)?

Nothing. I don't think I touched the editor for 0.91 - yep, nothing in svn between March 2007 and after 0.91 was released.

0.92 has quite a lot of editor changes though.
Back to top
Mika2006
Cacti User


Joined: 03 May 2007
Posts: 165

PostPosted: Tue Jun 05, 2007 5:13 am    Post subject: Reply with quote

ca explain me please?
Back to top
Livio Zanol



Joined: 23 Feb 2006
Posts: 30

PostPosted: Tue Jun 05, 2007 7:50 am    Post subject: Reply with quote

Quote:
Can you post a (part of) a screenshot? I don't understand this one.


if I try to open an already writen CFG, made in the 0.82 editor, it returns this to me:
Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<style>
    .cactilink { display: none; }
   </style>
  <link rel="stylesheet" type="text/css" media="screen" href="editor.css" />
  <script src="editor.js" type="text/javascript"></script>
   <script type="text/javascript">
   // the only javascript in here should be the objects representing the map itself
   // all code should be in editor.js
   var Links = new Array();
Links['DEFAULT'] = {width:'3', target:'',bw_in:'100M', bw_out:'100M', name:'DEFAULT', overlibwidth:'0', overlibheight:'0', overlibcaption:'', infourl:'', overliburl:''};
Links['SW1-Server1'] = {a:'SW1', b:'Server1', width:'3', target:'/var/rrdtool/trafego-SW1-int23.rrd:ds0:ds1',bw_in:'1G', bw_out:'1G', name:'SW1-Server1', overlibwidth:'0', overlibheight:'0', overlibcaption:'', infourl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW1.cfg&bars=Cami&xgtype=d&page=graph&xgstyle=n&xmtype=routers&if=TRAFEGO-SW1-INT23', overliburl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW1.cfg&xgtype=d&if=TRAFEGO-SW1-INT23&page=image'};
Links['SW1-Server2'] = {a:'SW1', b:'Server2', width:'3', target:'/var/rrdtool/trafego-SW1-int24.rrd:ds0:ds1',bw_in:'1G', bw_out:'1G', name:'SW1-Server2', overlibwidth:'0', overlibheight:'0', overlibcaption:'', infourl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW1.cfg&bars=Cami&xgtype=d&page=graph&xgstyle=n&xmtype=routers&if=TRAFEGO-SW1-INT24', overliburl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW1.cfg&xgtype=d&if=TRAFEGO-SW1-INT24&page=image'};
Links['SW2-SW1'] = {a:'SW2', b:'SW1', width:'3', target:'/var/rrdtool/trafego-SW2-int1.rrd:ds0:ds1',bw_in:'1G', bw_out:'1G', name:'SW2-SW1', overlibwidth:'0', overlibheight:'0', overlibcaption:'', infourl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW2.cfg&bars=Cami&xgtype=d&page=graph&xgstyle=n&xmtype=routers&if=TRAFEGO-SW2-INT1', overliburl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW2.cfg&xgtype=d&if=TRAFEGO-SW2-INT1&page=image'};
Links['SW2-FW1'] = {a:'SW2', b:'FW1', width:'3', target:'/var/rrdtool/trafego-SW2-int18.rrd:ds0:ds1',bw_in:'1G', bw_out:'1G', name:'SW2-FW1', overlibwidth:'0', overlibheight:'0', overlibcaption:'', infourl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW2.cfg&bars=Cami&xgtype=d&page=graph&xgstyle=n&xmtype=routers&if=TRAFEGO-SW2-INT18', overliburl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW2.cfg&xgtype=d&if=TRAFEGO-SW2-INT18&page=image'};
Links['SW2-SW1a'] = {a:'SW2', b:'SW1', width:'3', target:'/var/rrdtool/trafego-SW2-int2.rrd:ds0:ds1',bw_in:'1G', bw_out:'1G', name:'SW2-SW1a', overlibwidth:'0', overlibheight:'0', overlibcaption:'', infourl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW2.cfg&bars=Cami&xgtype=d&page=graph&xgstyle=n&xmtype=routers&if=TRAFEGO-SW2-INT2', overliburl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW2.cfg&xgtype=d&if=TRAFEGO-SW2-INT2&page=image'};
Links['SW3-FW1'] = {a:'SW3', b:'FW1', width:'3', target:'/var/rrdtool/trafego-SW3-int8.rrd:ds0:ds1',bw_in:'1G', bw_out:'1G', name:'SW3-FW1', overlibwidth:'0', overlibheight:'0', overlibcaption:'', infourl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW3.cfg&bars=Cami&xgtype=d&page=graph&xgstyle=n&xmtype=routers&if=TRAFEGO-SW3-INT8', overliburl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW3.cfg&xgtype=d&if=TRAFEGO-SW3-INT8&page=image'};
Links['SW3-Server3'] = {a:'SW3', b:'Server3', width:'3', target:'/var/rrdtool/trafego-SW3-int2.rrd:ds0:ds1',bw_in:'1G', bw_out:'1G', name:'SW3-Server3', overlibwidth:'0', overlibheight:'0', overlibcaption:'', infourl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW3.cfg&bars=Cami&xgtype=d&page=graph&xgstyle=n&xmtype=routers&if=TRAFEGO-SW3-INT2', overliburl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW3.cfg&xgtype=d&if=TRAFEGO-SW3-INT2&page=image'};
Links['RT1-FW1'] = {a:'RT1', b:'FW1', width:'3', target:'',bw_in:'100M', bw_out:'100M', name:'RT1-FW1', overlibwidth:'0', overlibheight:'0', overlibcaption:'', infourl:'', overliburl:''};
Links['SW4-RT1'] = {a:'SW4', b:'RT1', width:'3', target:'/var/rrdtool/trafego-SW4-int3.rrd:ds0:ds1',bw_in:'100M', bw_out:'100M', name:'SW4-RT1', overlibwidth:'0', overlibheight:'0', overlibcaption:'', infourl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW4.cfg&bars=Cami&xgtype=d&page=graph&xgstyle=n&xmtype=routers&if=TRAFEGO-SW4-INT3', overliburl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW4.cfg&xgtype=d&if=TRAFEGO-SW4-INT3&page=image'};
Links['SW4-DNS'] = {a:'SW4', b:'DNS', width:'3', target:'/var/rrdtool/trafego-SW4-int2.rrd:ds0:ds1',bw_in:'100M', bw_out:'100M', name:'SW4-DNS', overlibwidth:'0', overlibheight:'0', overlibcaption:'', infourl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW4.cfg&bars=Cami&xgtype=d&page=graph&xgstyle=n&xmtype=routers&if=TRAFEGO-SW4-INT2', overliburl:'http://1.1.1.1/cgi-bin/routers2.cgi?rtr=switchs%2FSW4.cfg&xgtype=d&if=TRAFEGO-SW4-INT2&page=image'};
Links['RT1-INTERNET'] = {a:'RT1', b:'INTERNET', width:'3', target:'',bw_in:'100M', bw_out:'100M', name:'RT1-INTERNET', overlibwidth:'0', overlibheight:'0', overlibcaption:'', infourl:'', overliburl:''};
var Nodes = new Array();
Nodes['DEFAULT'] = {x:0, y:0, label:'{node:this:name}', name:'DEFAULT', infourl:'', overlibcaption:'', overliburl:'', overlibwidth:0, overlibheight:0, iconfile:''};
Nodes['Server1'] = {x:73, y:485, label:'Server1', name:'Server1', infourl:'', overlibcaption:'', overliburl:'', overlibwidth:0, overlibheight:0, iconfile:'/var/www/weathermap/images/OK/BD-OK.png'};
Nodes['Server2'] = {x:75, y:600, label:'Server2', name:'Server2', infourl:'', overlibcaption:'', overliburl:'', overlibwidth:0, overlibheight:0, iconfile:'/var/www/weathermap/images/OK/BD-OK.png'};
Nodes['SW1'] = {x:265, y:543, label:'SW1', name:'SW1', infourl:'', overlibcaption:'', overliburl:'', overlibwidth:0, overlibheight:0, iconfile:'/var/www/weathermap/images/OK/Switch_L2-OK.png'};
Nodes['SW2'] = {x:435, y:541, label:'SW2', name:'SW2', infourl:'', overlibcaption:'', overliburl:'', overlibwidth:0, overlibheight:0, iconfile:'/var/www/weathermap/images/OK/Switch_L2-OK.png'};
Nodes['FW1'] = {x:603, y:543, label:'FW1', name:'FW1', infourl:'', overlibcaption:'', overliburl:'', overlibwidth:0, overlibheight:0, iconfile:'/var/www/weathermap/images/OK/Firewall-OK.png'};
Nodes['SW3'] = {x:770, y:545, label:'SW3', name:'SW3', infourl:'', overlibcaption:'', overliburl:'', overlibwidth:0, overlibheight:0, iconfile:'/var/www/weathermap/images/OK/Switch_L2-OK.png'};
Nodes['Server3'] = {x:946, y:545, label:'Server3', name:'Server3', infourl:'', overlibcaption:'', overliburl:'', overlibwidth:0, overlibheight:0, iconfile:'/var/www/weathermap/images/OK/WebServer-OK.png'};
Nodes['RT1'] = {x:599, y:303, label:'RT1', name:'RT1', infourl:'', overlibcaption:'', overliburl:'', overlibwidth:0, overlibheight:0, iconfile:'/var/www/weathermap/images/OK/Roteador-OK.png'};
Nodes['SW4'] = {x:759, y:303, label:'SW4', name:'SW4', infourl:'', overlibcaption:'', overliburl:'', overlibwidth:0, overlibheight:0, iconfile:'/var/www/weathermap/images/OK/Switch_L2-OK.png'};
Nodes['DNS'] = {x:940, y:301, label:'DNS', name:'DNS', infourl:'', overlibcaption:'', overliburl:'', overlibwidth:0, overlibheight:0, iconfile:'/var/www/weathermap/images/OK/ServerGenerico-OK.png'};
Nodes['INTERNET'] = {x:598, y:161, label:'{node:this:name}', name:'INTERNET', infourl:'', overlibcaption:'', overliburl:'', overlibwidth:0, overlibheight:0, iconfile:'/var/www/weathermap/images/Nuvem.png'};


If I try to open the simple.conf that comes with the weathermap, the editor returns to me just a blank page (no html code, no text, nothing).

If I try to create a new file, and add a node to the file, a blank page is returned (no code at all).



Quote:
0.92 has quite a lot of editor changes though.


Can you tell me what will be new in the editor and when it'll be released?
Cause, we are working in doing some improvements in the editor, and I don't want to do the same thing that you're gonna do for the new version


Last edited by Livio Zanol on Tue Jun 05, 2007 11:49 am; edited 1 time in total
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Tue Jun 05, 2007 8:54 am    Post subject: Reply with quote

Livio Zanol wrote:
Quote:
Can you post a (part of) a screenshot? I don't understand this one.


if I try to open an already writen CFG, made in the 0.82 editor, it returns this to me:

If I try to open the simple.conf that comes with the weathermap, the editor returns to me just a blank page (no html code, no text, nothing).

If I try to create a new file, and add a node to the file, a blank page is returned (no code at all).


That sounds like PHP is crashing halfway through. Most likely cause is memory_limit too low. What you pasted is a normal-looking top half of the editor page, with no error at the end. Check the Apache httpd_errors.log, but my first guess would be memory_limit.


Livio Zanol wrote:

Quote:
0.92 has quite a lot of editor changes though.


Can you tell me what will be new in the editor and when it'll be released?
Cause, we are working in doing some improvements in the editor, and I don't want to do the same thing that you're gonna do for the new version


It's going to be today or tomorrow, unless something else comes up.

The change log (from 0.91 to 0.92) is:
Code:

0.92 - FIXED weathermap CLI help said --random-data instead of --randomdata
       FIXED one last php short_tag in poller_common.php - thanks Bernado Diez
       FIXED a SET in DEFAULT node/link is inherited by all node/links now.
       FIXED changing defaults in the editor changes existing objects that use the default value
       FIXED unreadable files in the configs/ directory don't kill the editor file-picker anymore
       FIXED - weathermap.conf really *is* a simple map again. My test version went out with 0.9 and 0.91
       INTERNAL added a lot more memory debug points in
       INTERNAL refactored the curve/link drawing code to make some new features possible/easier
       Further tweaks and improvements to check.php (Basic GD check, memory_limit check, PEAR Getopt check, and more explanation now)
       Small improvements to the editor's font-picking, including samples of all fonts.
       Added - Editor handles VIAs in a MUCH better way when moving nodes.
       Improved clipping reporting, improved plugin loading (Niels Baggesen)
       Added - BWSTYLE lets you choose between regular and angled bwlabels
               angled bwlabels follow the angle of the link arrow, which can save space.
       Added - Editor can pick Cacti graphs for NODE's overlib/infourl (but NOT targets)
       Added - COMMENTPOS allows you to move the position of comments along the link (like BWLABELPOS)
       FIXED - strange edge case with gradient SCALE caused div-by-zero (Tiago Giorgetti)
       CHANGE - The editor doesn't *require* an editor-config.php anymore. It *will* warn you if the defaults aren't enough, however.
       
Back to top
Livio Zanol



Joined: 23 Feb 2006
Posts: 30

PostPosted: Tue Jun 05, 2007 9:31 am    Post subject: Reply with quote

memory_limit is at 32MB, tried with 128 MB but same thing happend.


Code:

ERROR.LOG:

[Tue Jun 05 11:11:49 2007] [notice] child pid 1045 exit signal Segmentation fault (11)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group