Solved conky tcp mon

fjdlr

Member

Reaction score: 2
Messages: 22

Hello everyone, sorry my english is very basic.
I switched Freebsd after years of Linux, I'm really happy.
I have a minor problem, and I search without finding a solution.
In conky the variable tcp_portmon seems not taken into account.
My solution is to launch a shell with iftop.
The question is tcp_portmon in a conky is supported or not.
Thank you very much for paying attention to my minor problem
Code:
tcp_portmon 1 65535 rhost
 

Lanakus

Active Member

Reaction score: 101
Messages: 158

Some conky variables are 'linux only' like addrs and few are 'freebsd only' like apm_battery_lifetime but you can check the conky man page for further infos.
tcp_portmon should work on both.
BUILD_PORT_MONITORS is enabled by default on Linux but Im not convinced as is the case on FreeBSD.
 
OP
OP
F

fjdlr

Member

Reaction score: 2
Messages: 22

Some conky variables are 'linux only' like addrs and few are 'freebsd only' like apm_battery_lifetime but you can check the conky man page for further infos.
tcp_portmon should work on both.
BUILD_PORT_MONITORS [/ CMD]


Thank you, your post is surely the good one, when coming back home, I will install the conky package from the sources with:
Code:
BUILD_PORT_MONITORS
[/cmd]
 
OP
OP
F

fjdlr

Member

Reaction score: 2
Messages: 22

I tested with make since port without success, good I stop, thank you for your help
[BUILD_PORT_MONITORS= ON/CMD] also =yes, and nothing
 

Lanakus

Active Member

Reaction score: 101
Messages: 158

It won‘t be a FreeBSD Version issue. So you don‘t need to try on 12 which is still under development. Maybe its a Conky version issue or tcp_portmon is general not supported on FreeBSD
 

rigoletto@

Daemon
Developer

Reaction score: 838
Messages: 1,767

Tested in here and it didn't worked. Since IDK how conky get that information, it could be broken for some bug or (most probably) the usual linuxisms. You could contact the maintainer asking about it.
 

Lanakus

Active Member

Reaction score: 101
Messages: 158

Seems to be linuxism. I‘ve looked at a german BSD Forum where a guy had exact the same concern but its still unsolved respectively postmarked as Linux-only..
If you realy need to listen Connection you could use an alternative tool like net/ntopng although it would be more memory intensive
 
OP
OP
F

fjdlr

Member

Reaction score: 2
Messages: 22

Thank you for all the info, of course I am updating to the release 12 only stable, and not everything.
I like having a visual connection, but ntopng and iftop will do as well.
Thank you all, and good luck with Freebsd she is really great and especially "clean"
 

Lanakus

Active Member

Reaction score: 101
Messages: 158

Another solution might be to write your own sh script to capture information from tcpdump(1) and use Conky for displaying via
Code:
${execi [time in sec] path/to/script.sh}
 
OP
OP
F

fjdlr

Member

Reaction score: 2
Messages: 22

I just found a solution, with the command sockstat -cl4
and the call of the script in my conky
tcdump is good, but a lot can for my workstation permanently
Thank you so much, you helped me get out of the deadlock
 
OP
OP
F

fjdlr

Member

Reaction score: 2
Messages: 22

This problem is solved, i try for mark solved, where is the tag, i stupid,? sorry
 
Top