Hi,

I installed Ntop from source (trunk) and now it works fine.

--
Everton Luís Berz


On Tue, Jun 28, 2011 at 14:34, Everton Luís Berz <[email protected]> wrote:

> Hi,
> I've seen in [1] that it is possible to use a Python api in ntop. I've
> understood that the only way to do this is executing python scripts
> using Ntop web server (right?).
>
> I am trying to execute python scripts using Ntop but it is not
> working. I am using Ubuntu 11.04 and Python 2.71+.
>
> I followed the follow steps:
> - installed ntop:
> sudo apt-get install ntop
> - directed my browser to http://localhost:3000  [ok]
> - directed my browser to http://localhost:3000/python/hello_world.py
> so it takes about one minute processing and it asks me to download the
> file hello_world.py, which is empty after the download.
>
> My /usr/share/ntop directory has the html and python folders. The
> python folder contains the hello_world.py.
>
> When I try directing my browser to hello_world.py I get the follow
> messages in /var/log/syslog:
> Jun 28 14:05:11 lab203-01 ntop[3140]:   [PYTHON] Redirecting file
> descriptors
> Jun 28 14:06:29 lab203-01 ntop[3140]:   [PYTHON] Succesfully restored
> file descriptors
>
> So, could anybody help me integrating Python to Ntop?
> Thanks
>
> [1] http://www.ntop.org/blog/ntop/extending-ntop-using-python/
>
> --
> Everton Luís Berz
>
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to