
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
A plugin for Aero AIO that lists all processes connecting out of your computer
REQUIREMENTS: >= Aero AIO 0.9.1
>= Python 2.4
USAGE:
- Install the .aiz plugin via the Aero AIO config dialog
- The first column is the number of processes with the same name
- The second column is the port at which one of these processes is connecting out
- The third column is the name of the processes
- The fourth column is the IP address to which one of these processes is connecting
- You can adjust the update interval and font size in the config dialog. You can also ask the theme to use sudo to get a list of all processes, not just yours. You must add the appropriate permissions to /etc/sudoers (see config dialog)
- You can also ask the theme to not show processes connecting to localhost via the config dialog
14 years ago
ver 2.0.5
- Fixed a bug in the regexp
ver 2.0.4
- Use Aero AIO 0.9.1 API
ver 2.0.3
- Small change to the regexp to make it more robust. Fixes bug reported by jayenell
ver 2.0.2
- Fixed a bug in the reg-exps. I had assumed that process names consisted only of alpha-numeric characters. KDE uglification adds the period to some names. Changed to match on non space characters (\S)
ver 2.0.1
- Moved to the .aiz Aero AIO plugin format
ver 2.0.0
- Added optional display of IP addresses
- Added support for sudo to see all processes
- Moved the netstat output parsing code into the python script itself (should make for faster execution)
ver 1.0.1
- Added error handling code, should make error reporting easier for users
14 years ago
ver 2.0.5
- Fixed a bug in the regexp
ver 2.0.4
- Use Aero AIO 0.9.1 API
ver 2.0.3
- Small change to the regexp to make it more robust. Fixes bug reported by jayenell
ver 2.0.2
- Fixed a bug in the reg-exps. I had assumed that process names consisted only of alpha-numeric characters. KDE uglification adds the period to some names. Changed to match on non space characters (\S)
ver 2.0.1
- Moved to the .aiz Aero AIO plugin format
ver 2.0.0
- Added optional display of IP addresses
- Added support for sudo to see all processes
- Moved the netstat output parsing code into the python script itself (should make for faster execution)
ver 1.0.1
- Added error handling code, should make error reporting easier for users
LinuxRocks
14 years ago
I added the correct line in /etc/sudoers file, but it is not working. I tried the cmd line in the script and added sudo -S to it and it returns my connections like it should on the command line, but the plugin is blank.
Any why to fix this?
Thanks!!!
Joe
Report
kovidgoyal
14 years ago
Report
LinuxRocks
14 years ago
Traceback (most recent call last):
File "/home/jgiles/.aero_aio/netstat_aio.py", line 119, in update
karamba.changeText(widget, self.data, self.readData())
File "/home/jgiles/.aero_aio/netstat_aio.py", line 80, in readData
res = self.pretty_pat.sub(self.prettyString, res) # Call self.prettyString for every match
File "/home/jgiles/.aero_aio/netstat_aio.py", line 108, in prettyString
count = self.rpad(str(self.processCounter[match.group(2)]), self.fields[2])
KeyError: '0'
Also, with sudo enabled, I get connections UNTIL I try to connect from a remote box to my box.
As an example, if I log into KDE, and start my mail client, I can see IMAP listing in the plugin. Also, if I ssh to my server, I see that as well.
Now, if I ssh from another box to the box I am on running superkaramba, then the netstat plugin just goes blank.
Everything is ok if I disable SUDO access. HOWEVER, I don't see some traffic that I would like to see.
Thanks!!!
Joe
Report
kovidgoyal
14 years ago
Report
jayenell
15 years ago
This seems like a great plugin, but it doesn not show anything. I'm using the latest version and I restarted SK allready. I also saw there is no .sh-script in the scripts directory, but if I understand your changelogcorrectly it should not be there anymore, so that's ok.
This is the output from the commandline:
Traceback (most recent call last):
File "/home/jayenell/.aero_aio/netstat_aio.py", line 111, in update
karamba.changeText(widget, self.data, self.readData())
File "/home/jayenell/.aero_aio/netstat_aio.py", line 72, in readData
res = self.pretty_pat.sub(self.prettyString, res) # Call self.prettyString for every match
File "/home/jayenell/.aero_aio/netstat_aio.py", line 100, in prettyString
count = self.rpad(str(self.processCounter[match.group(2)]), self.fields[2])
KeyError: '0'
Report
kovidgoyal
15 years ago
Above the line
res = self.pretty_pat.sub(self.prettyString, res) # Call self.prettyString for every match
add print "Result: ", res
Then post the output from running the command. If its a lot, you can email it to me: kovid at theory dot caltech dot edu
Report
pantaray
15 years ago
Report
kovidgoyal
15 years ago
Report
Superstoned
15 years ago
Report
kovidgoyal
15 years ago
Report
TanisInGentoo
15 years ago
Traceback (most recent call last):
File "/home/tanis/Downloads/Karamba/Aero-AIO/aero_aio.py", line 276, in widgetUpdated
page.update(widget)
AttributeError: 'NoneType' object has no attribute 'update'
How can i solve it?
Thanks a lot!!
Report
kovidgoyal
15 years ago
superkaramba > log 2>&1
Click the netstat icon, if the error occurs, killall superkaramba
Post the output of
grep -A10 netstat log
Thanks,
Kovid.
Report
TanisInGentoo
15 years ago
Thanks a lot!
Report
kovidgoyal
15 years ago
Report
stormrider1
15 years ago
Report
kovidgoyal
15 years ago
Kovid.
Report