WhatPulse Forums
WhatPulse 2.1b3 - Linux Mint 14 - Printable Version

+- WhatPulse Forums (http://whatpulse.org/forums)
+-- Forum: Community (/forumdisplay.php?fid=34)
+--- Forum: Beta client (/forumdisplay.php?fid=74)
+---- Forum: Archive (/forumdisplay.php?fid=80)
+---- Thread: WhatPulse 2.1b3 - Linux Mint 14 (/showthread.php?tid=2822)



WhatPulse 2.1b3 - Linux Mint 14 - brumoen - 03-30-2013 10:06 PM

I've some issues with the networking monitor, it seems like it tracks my bandwidth usage, but only pr App level, not for the interface directly.
It shows no networking interface in the Network list, but it shows my External IP. In the summary box it shows no details about download or upload.[attachment=186]

When I click towards the Applications page it shows details for all the active applications, current download and upload. It also shows the Summary dialog at the bottom, Today, Yesterday and All time. It even shows "The application that downloaded the most today is.. line, but it shows chromium-browser(deleted) instead of just chromium-browser for some reason.[attachment=184]

Also the Realtime bandwitdh screen is at 0, shows nothing even while streaming 1080p videos from youtube or any network related source.

I'm using the 3.5.0-17-generic linux Mint kernel.

The network info is:
Code:
00:19.0 Ethernet controller [0200]: Intel Corporation 82567LF-2 Gigabit Network Connection [8086:10cd]
    Subsystem: Acer Incorporated [ALI] Device [1025:0171]
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0
    Interrupt: pin A routed to IRQ 65
    Region 0: Memory at f3ec0000 (32-bit, non-prefetchable) [size=128K]
    Region 1: Memory at f3ef2000 (32-bit, non-prefetchable) [size=4K]
    Region 2: I/O ports at 9080 [size=32]
    Capabilities: <access denied>
    Kernel driver in use: e1000e
    Kernel modules: e1000e

Code:
eth0      Link encap:Ethernet  HWaddr 00:22:68:65:32:aa  
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::222:68ff:fe65:32aa/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:902295 errors:0 dropped:0 overruns:0 frame:0
          TX packets:469063 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1304424378 (1.3 GB)  TX bytes:42445854 (42.4 MB)
          Interrupt:20 Memory:f3ec0000-f3ee0000

Code:
sudo getcap /opt/whatpulse
/opt/whatpulse = cap_net_admin,cap_net_raw+eip

output from whatpulse start:
Code:
perry@iPower-Anneks ~ $ sudo whatpulse
[sudo] password for perry:
30-03-2013 22:57:15.563  INFO Starting WhatPulse...
Xlib:  extension "RANDR" missing on display ":0.0".
30-03-2013 22:57:15.654  WARN "sni-qt/21537" WARN  22:57:15.654 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE  
30-03-2013 22:57:15.655 DEBUG Database file:  "/home/perry/.local/share/data/WhatPulse/whatpulse.db"
30-03-2013 22:57:15.656 DEBUG Opened database in:  1 ms
30-03-2013 22:57:15.661 DEBUG Found proper permissions for network monitoring
30-03-2013 22:57:15.661 DEBUG Encrypted file:  "/home/perry/.local/share/data/WhatPulse/whatpulse.wpw"
30-03-2013 22:57:15.723 DEBUG Opening GeoIP database:  "/home/perry/.local/share/data/WhatPulse/GeoIP.dat"
30-03-2013 22:57:15.727 DEBUG Creating device listener for "/dev/input/event0"
30-03-2013 22:57:15.727 DEBUG Creating device listener for "/dev/input/event1"
30-03-2013 22:57:15.727 DEBUG Creating device listener for "/dev/input/event10"
30-03-2013 22:57:15.728 DEBUG Creating device listener for "/dev/input/event11"
30-03-2013 22:57:15.728 DEBUG Creating device listener for "/dev/input/event12"
30-03-2013 22:57:15.728 DEBUG Creating device listener for "/dev/input/event13"
30-03-2013 22:57:15.728 DEBUG Creating device listener for "/dev/input/event14"
30-03-2013 22:57:15.728 DEBUG Creating device listener for "/dev/input/event15"
30-03-2013 22:57:15.728 DEBUG Creating device listener for "/dev/input/event16"
30-03-2013 22:57:15.728 DEBUG Creating device listener for "/dev/input/event17"
30-03-2013 22:57:15.729 DEBUG Creating device listener for "/dev/input/event18"
30-03-2013 22:57:15.729 DEBUG Creating device listener for "/dev/input/event19"
30-03-2013 22:57:15.729 DEBUG Creating device listener for "/dev/input/event2"
30-03-2013 22:57:15.729 DEBUG Creating device listener for "/dev/input/event20"
30-03-2013 22:57:15.729 DEBUG Creating device listener for "/dev/input/event3"
30-03-2013 22:57:15.729 DEBUG Creating device listener for "/dev/input/event4"
30-03-2013 22:57:15.729 DEBUG Creating device listener for "/dev/input/event5"
30-03-2013 22:57:15.730 DEBUG Creating device listener for "/dev/input/event6"
30-03-2013 22:57:15.730 DEBUG Creating device listener for "/dev/input/event7"
30-03-2013 22:57:15.730 DEBUG Creating device listener for "/dev/input/event8"
30-03-2013 22:57:15.730 DEBUG Creating device listener for "/dev/input/event9"
30-03-2013 22:57:15.731 DEBUG Starting PfRingNetworkTrafficMonitor..
30-03-2013 22:57:15.731 DEBUG PF-Ring thread started
30-03-2013 22:57:15.746 DEBUG WhatPulse has started
I have to run as root to be able to track keys and mouse actions. No access to /dev/input/event* without using sudo.

Any tips or hints on how to debug this would be really nice. Smile

Edited: Changed the title to reflect that this also occurs when I've updated to 2.1b3.


RE: WhatPulse 2.1b2 - Linux Mint 14 - smitmartijn - 04-06-2013 06:42 PM

(03-30-2013 10:06 PM)brumoen Wrote:  I have to run as root to be able to track keys and mouse actions. No access to /dev/input/event* without using sudo.

Any tips or hints on how to debug this would be really nice. Smile

You will need to run the permissions script inside the package to fix that, it'll add your user to a group and change the permissions of the event devices.


RE: WhatPulse 2.1b2 - Linux Mint 14 - brumoen - 04-10-2013 07:39 AM

Thanks, that helped for the /dev/input/event* issues and it seems like WP counts my keys and clicks as it should now. There is no permission script inside the 64 bit package, that's why I didn't see it, but I downloaded the 32 bit package and ran it.

This still leaves the network interface issue unsolved tho.. Any ideas?


RE: WhatPulse 2.1b2 - Linux Mint 14 - smitmartijn - 04-10-2013 06:31 PM

Indeed, guess I forgot the script in the b2 64bit tar.gz. -_-

To be honest, I have no idea why the interface is not showing up, it seems the have different results on different distros and different network cards. We depend on certain system files to identify interfaces, which we've found that Linux devs likes to change on a whim and completely omit on certain distros. I think we'll implement a fallback identify method which uses the same library as the application network stats, which usually seem to work even if the interfaces are not showing up.


RE: WhatPulse 2.1b2 - Linux Mint 14 - brumoen - 04-10-2013 09:37 PM

Just updated to 2.1b3 and it asked me to allow some network permission check. It succeeded I guess since it didn't ask for anything else before it just started the client. But when I quit the client it shows:
Code:
10-04-2013 23:28:59.794 DEBUG Stopping PfRingNetworkTrafficMonitor..
10-04-2013 23:28:59.794 DEBUG "received 2970 packets, dropped 0

Still isn't showing any network interface, just traffic on the same "page" as earlier and when pulsing, no traffic is pulsed. Sad

Strange that it shows traffic on the per application page, but nothing in the interface page or when pulsing.

How does the interface lookup work? Where does it try to find the file(s)/device(s) needed for the interface "connection"?


RE: WhatPulse 2.1b2 - Linux Mint 14 - brumoen - 04-17-2013 07:29 PM

Now I've installed 2.1b3 on my laptop, also with Mint Nadia 14, here everything just works. No issues with network or anything, just installed it with the same apt-get line as on my workstation and started it, WP asked for permission to try to fix network permissions since I didn't fix the libcap line before starting WP and then the screen flickered and WP started with a network interface present at first start.

Both machines run with the 3.5.0-17-generic linux Mint kernel, tried updating the workstation to the latest kernel package for Mint but that didn't help either.

On my laptop I have an integrated Intel PRO/Wireless 4965 AG or AGN adapter. Could it be that WP don't understand the identification that my workstation gives for the integrated network adapter? If so is there a way to see what information WP gets from the system when it tries to connect with the network adapter?


RE: WhatPulse 2.1b2 - Linux Mint 14 - smitmartijn - 04-18-2013 04:34 PM

(04-17-2013 07:29 PM)brumoen Wrote:  Could it be that WP don't understand the identification that my workstation gives for the integrated network adapter? If so is there a way to see what information WP gets from the system when it tries to connect with the network adapter?

Sort of. Linux is very strange when it comes to standardisation of system files, as in there seems to be none. The current build still trusts the system files to identify the network adapters, but I've updated the client to check the adapters found by libpcap when the system can't identify any adapters. I've yet to see a relatively modern adapter not being recognized by libpcap, so that should fix this problem in the future.


RE: WhatPulse 2.1b3 - Linux Mint 14 - brumoen - 04-23-2013 06:23 PM

Have you done that for 2.1b3 or is that for the next update?
I've been trying to run some C examples for libpcap and I'm not able to find any off my suitable network devices on my laptop with that one, and I find that kind if weird since WP works like a charm. You shouldn't happen to have made some test scripts which might be possible to use for debugging purpose to see if and what it detects?

Edit: I did on my desktop, just had to run the generated files as root since my normal user don't have access to that kind of information from the system. So yes, libpcap finds the devices. Smile


RE: WhatPulse 2.1b3 - Linux Mint 14 - smitmartijn - 04-24-2013 03:45 PM

Next update, either way. And yes, you need the net_admin (or something, check install docu) capability, or root to allow pcap to see them.