Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: NTop: Users

using python examples

 

 

NTop users RSS feed   Index | Next | Previous | View Threaded


sclark at netwolves

Aug 1, 2012, 1:21 PM

Post #1 of 3 (351 views)
Permalink
using python examples

Hello,

I obviously don't know what I am doing, however the only example of the
python scripts I can get to work is hello_world.py by putting:
http://x.x.x.x:3000/python/hello_world.py
in my browser bar.

Any of the others that I try to run the same way either return an error, nothing or
a message saying the server was reset.

Any clues would be helpful. I have read the Tutorial.

Thanks,

--
Stephen Clark
*NetWolves*
Director of Technology
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.clark [at] netwolves
http://www.netwolves.com


sclark at netwolves

Aug 2, 2012, 7:11 AM

Post #2 of 3 (321 views)
Permalink
Re: using python examples [In reply to]

On 08/01/2012 04:21 PM, Steve Clark wrote:
> Hello,
>
> I obviously don't know what I am doing, however the only example of the
> python scripts I can get to work is hello_world.py by putting:
> http://x.x.x.x:3000/python/hello_world.py
> in my browser bar.
>
> Any of the others that I try to run the same way either return an error, nothing or
> a message saying the server was reset.
>
Replying to my own message I am making some progress - now that I have figures out
the python scripts should be in /usr/share/ntop/python. When I try to run the
ipPortQuery.py I get the following:

$ curl http://10.0.1.90:3000/python/ipPortQuery.py
curl: (52) Empty reply from server

Traceback (most recent call last):
File "/usr/share/ntop/python/ipPortQuery.py", line 2, in <module>
import fastbit
ImportError: No module named fastbit

I thought fastbit was part of NTOP?

Note: this is using ntop-4.0-6.5.el6.i686

--
Stephen Clark
*NetWolves*
Director of Technology
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.clark [at] netwolves
http://www.netwolves.com


deri at ntop

Aug 5, 2012, 12:15 AM

Post #3 of 3 (312 views)
Permalink
Re: using python examples [In reply to]

Steve
please move to ntop 5

Luca

On Aug 2, 2012, at 4:11 PM, Steve Clark <sclark [at] netwolves> wrote:

> On 08/01/2012 04:21 PM, Steve Clark wrote:
>> Hello,
>>
>> I obviously don't know what I am doing, however the only example of the
>> python scripts I can get to work is hello_world.py by putting:
>> http://x.x.x.x:3000/python/hello_world.py
>> in my browser bar.
>>
>> Any of the others that I try to run the same way either return an error, nothing or
>> a message saying the server was reset.
>>
> Replying to my own message I am making some progress - now that I have figures out
> the python scripts should be in /usr/share/ntop/python. When I try to run the
> ipPortQuery.py I get the following:
>
> $ curl http://10.0.1.90:3000/python/ipPortQuery.py
> curl: (52) Empty reply from server
>
> Traceback (most recent call last):
> File "/usr/share/ntop/python/ipPortQuery.py", line 2, in <module>
> import fastbit
> ImportError: No module named fastbit
>
> I thought fastbit was part of NTOP?
>
> Note: this is using ntop-4.0-6.5.el6.i686
>
> --
> Stephen Clark
> NetWolves
> Director of Technology
> Phone: 813-579-3200
> Fax: 813-882-0209
> Email: steve.clark [at] netwolves
> http://www.netwolves.com
> _______________________________________________
> Ntop mailing list
> Ntop [at] listgateway
> http://listgateway.unipi.it/mailman/listinfo/ntop

NTop users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.