You are not logged in.

#1 2006-02-07 15:22:36

nephish
Member
Registered: 2005-06-08
Posts: 95

possible eye treat with conky & firestarter

Lo there,
just discovered conky ( thanks to the screenshots thread )
the .conkyrc file i have has a nifty TCP - Mon thing that monitors connections to ports, etc...
what i would really like is to have it monitor somewhat like the "active connections " part of firestarter does. Its a little more specific about what is comming in or out of my arch firewall  and router to the lan. (shows what box is connected to what ip or service on the outside in kinda real time )
Does anyone know where firestarter is reading that info from ? Or if there is a way firestarter can out put that info to a log file that i could tail or something. That would just be the coolest .

thanks, if any of you have an idea.

Offline

#2 2006-02-07 16:06:33

sh__
Member
Registered: 2005-07-19
Posts: 271

Re: possible eye treat with conky & firestarter

watch netstat -atu

Offline

#3 2006-02-07 16:10:42

nephish
Member
Registered: 2005-06-08
Posts: 95

Re: possible eye treat with conky & firestarter

cool, i will try it out when i get home.
thanks a  lot

Offline

#4 2006-02-07 23:06:31

nephish
Member
Registered: 2005-06-08
Posts: 95

Re: possible eye treat with conky & firestarter

well, it doesnt work for some reason.

this works

exec cat /proc/cpuinfo 

but this doesn't

exec watch netstat -atu

conky just hangs there, no error message, nothing.

however, this works from a terminal just fine.

exec watch netstat -atu

so perhaps its the way conky wants to handle it ?

dunno. Hey, if this doesnt work, is there another way to get netstat -atr to the root window ?

that would still be cool.

thanks

Offline

#5 2006-02-07 23:09:28

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: possible eye treat with conky & firestarter

I guess conky hangs there because watch will not exit... I bet "exec netstat ..." will do fine.

Offline

#6 2006-02-07 23:26:13

nephish
Member
Registered: 2005-06-08
Posts: 95

Re: possible eye treat with conky & firestarter

yup, right you are. Looking good. thanks much

Offline

#7 2006-02-08 15:03:59

sh__
Member
Registered: 2005-07-19
Posts: 271

Re: possible eye treat with conky & firestarter

Yeah, 'watch' does not work inside conky.

In case you want to run something similar from a terminal and "embed" it in the desktop, you could try something like:

urxvt -T NoFrames -ip -e watch netstat -atu

and tell the window manager of your choice to not decorate windows titled NoFrames (and preferably put them to a low layer, never give them focus etc). Fvwm example:

Style "NoFrames" NoTitle, BorderWidth 0, HandleWidth 0, NeverFocus, CirculateSkip, WindowListSkip, StaysOnBottom

Offline

#8 2006-02-08 18:11:10

nephish
Member
Registered: 2005-06-08
Posts: 95

Re: possible eye treat with conky & firestarter

that i gotta try. i use fluxbox, so it should be just as simple as fwwm. It has that ToggleDecor command that i use whenever i am tinkering in an aterm,

i have noticed something with the netstat though, it only shows connections to my computer, not connections going through it.

i have two computers that i share the internet with. I would like to watch what is connecting thru where.  Netstat just shows what is on my own ports.

anything out there that i could use for this ?

i dont know why i dig this so much. I just think its cool. Plus, it lets me know if my daughter is chatting on gaim when she is supposed to be doing her homework .   big_smile

Offline

Board footer

Powered by FluxBB