Title: graphviz
Not that I know of - once I fixed the packages, it just worked.  However, there doesn't seem to be any data in your .dot file, so that's odd.  Mine has contents:
 
digraph ntop {
node [shape = polygon, sides=4, fontsize=9, style=filled, fontname="Helvetica"];
"192.168.xxx.255" [URL="", color=lightsteelblue1];
"192.168.yyy.255" [URL="", color=mistyrose2];
...
"zebra" [URL="", color=lightsteelblue1];
"zebra" [URL="", color=mistyrose2];
}
 
 
So I'm guessing you need to look at your -m parameter etc.  You need to be seeing local hosts for the graph.
 
-----Burton


From: Michael Wenzelmaier [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 26, 2005 12:28 PM
To: [EMAIL PROTECTED]
Subject: RE: [Ntop] graphviz

I did all that and it didn’t come up with an error message. It seems to work fine, except I’m getting an empty graph.

 

Here is the content of my ntop.dot file

 

digraph ntop {

node [shape = polygon, sides=4, fontsize=9, style=filled, fontname="Helvetica"];

}

 

Here is the command that’s being executed

 

/usr/bin/dot -Tpng -Goverlap=false /work/ntop/db0/ntop.dot -o /work/ntop/db0/network_map.png 2>&1

 

 

The file network_map.png is only a white rectangle. That’s why I didn’t see anything.

 

 

Am I missing something n the configuration of ntop?

 

Thanks

 

Michael Wenzelmaier

 Interlink Companies
Phone: 574-524-1000
Ext. 114
Email: [EMAIL PROTECTED]


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Burton Strauss
Sent: Thursday, May 26, 2005 11:05 AM
To: Ntop
Subject: RE: [Ntop] graphviz

 

Maybe ... though the message doesn't seem large enough to bounce.

 

In the current code in void makeDot() in report.c, there is code that is supposed to catch problems from the calls to dot.  There should also be comments in the output (html) showing what was executed, e.g.:

 

<!-- sort command is sort -u /devel/ntop/ntop-all.dot > /devel/ntop/ntop-sort.dot -->
<!-- dot(cmap) command is /usr/local/bin/dot -Tcmap -Goverlap=false /devel/ntop/ntop.dot -->

 

Probably should add one more:

 

    sendString("<!-- dot(generate) command is ");
    sendString(path);
    sendString(" -->\n");

 

after this:

 

    snprintf(path, sizeof(path), "%s -Tpng -Goverlap=false %s/ntop.dot -o %s/"CONST_NETWORK_IMAGE_MAP " 2>&1 ",
             dotPath, myGlobals.spoolPath, myGlobals.spoolPath);

 

Still, any errors are supposed to be caught and reflected back into the page.

 

I suggest you try these commands directly from the command line and see what outputs you get (esp, return codes, e.g. run this after each command:

 

rc=$?

echo "rc=$rc"

 

-----Burton

 


From: Michael Wenzelmaier [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 26, 2005 10:28 AM
To: [EMAIL PROTECTED]
Subject: RE: [Ntop] graphviz

Burton,

 

I replied to the list, but it didn’t show up. Is there a size limit?

 

I downloaded ntop again from CVS about an hour after your reply and installed it again. I also installed the graphviz rpm you recommended. I’m still getting no network traffic map. Here is the

Syslog output for the ntop server –K  -L –t 6

 

 

 

May 25 12:46:33 syslog ntop[1521]:  [MSGID8700356] [prefs:782] ntop will be started as user nobody

May 25 12:46:33 syslog ntop[1521]:  [MSGID0540387] [main:451] ntop v.3.1.2 MT (SSL)

May 25 12:46:33 syslog ntop[1521]:  [MSGID8997049] [main:452] Configured on May 25 2005 12:16:02, built on May 25 2005 12:18:30. 

<snip />

 

syslog:/var/log/syslog # rpm -q graphviz -i

Name        : graphviz                     Relocations: /usr

Version     : 2.2.1                             Vendor: http://www.graphviz.org/

Release     : 1.fc1                         Build Date: Thu Apr  7 15:11:01 2005

Install date: Wed May 25 11:52:45 2005      Build Host: ellsonFC1.research.att.com

Group       : Applications/Graphics         Source RPM: graphviz-2.2.1-1.fc1.src.rpm

Size        : 2004968                          License: CPL (see COPYING)

Signature   : (none)

Packager    : John Ellson ([EMAIL PROTECTED])

URL         : http://www.graphviz.org/

Summary     : Graph Visualization Tools

Description :

A collection of tools and tcl packages for the manipulation and layout

of graphs (as in nodes and edges, not as in barcharts).

Distribution: (none)

 

 

 

Michael Wenzelmaier

 Interlink Companies
Phone: 574-524-1000
Ext. 114
Email: [EMAIL PROTECTED]


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Burton Strauss
Sent: Wednesday, May 25, 2005 11:38 AM
To: [email protected]
Subject: RE: [Ntop] graphviz

 

With the cvs version you should be picking up my fixes to trap errors.  What's in the log? 

 

Also read the back traffic - I posted a note re problems with (IIRC) Dag's version ... use the one at graphviz.org...

 

$ rpm -q graphviz -i
Name        : graphviz                     Relocations: /usr
Version     : 2.2.1                             Vendor: http://www.graphviz.org/
Release     : 1.fc1                         Build Date: Thu 07 Apr 2005 03:11:01 PM CDT
Install Date: Thu 14 Apr 2005 04:52:17 PM CDT      Build Host: ellsonFC1.research.att.com
Group       : Applications/Graphics         Source RPM: graphviz-2.2.1-1.fc1.src.rpm
Size        : 2004968                          License: CPL (see COPYING)
Signature   : (none)
Packager    : John Ellson ([EMAIL PROTECTED])
URL         : http://www.graphviz.org/
Summary     : Graph Visualization Tools
Description :
A collection of tools and tcl packages for the manipulation and layout
of graphs (as in nodes and edges, not as in barcharts).

 

 

 

-----Burton

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Wenzelmaier
Sent: Wednesday, May 25, 2005 9:16 AM
To: [email protected]
Subject: [Ntop] graphviz

Hi,

I’m running Suse Linux 9.0 and 9.2. I installed ntp from CVS a couple days ago. I also installed graphviz 2.2.1. I added dot.path to make sure it’s pointing at the right file.

I’m still getting nothing on the network traffic map.

Any ideas?

Thanks in advance.

Michael Wenzelmaier

 Interlink Companies
Phone: 574-524-1000
Ext. 114
Email:
HYPERLINK "mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]

 


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 5/25/2005


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 5/25/2005

_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to