Re: Monitoring a program
El día Thursday, November 17, 2005 a las 06:12:22PM +, db escribió: On Thursday 17 November 2005 09:42, [EMAIL PROTECTED] wrote: with 'lsof' you can see the actual situation; with 'truss' you may investigate in detail all sys calls (like opening files) Thanks, I also found /devel/strace which looks good :-) Yes, I know strace for a long of time from Linux and was always happy about it because it has better features than truss of SVR4 and FreeBSD; I did not know that it was ported to FreeBSD as well; now I've installed it on my 5.4-REL and there is a small bug which is fixed already, see: http://www.freebsd.org/cgi/query-pr.cgi?pr=62377 without that small patch strace hangs if you fire it up with the command on the commandline like: $ strace date matthias -- Matthias Apitz / Sisis Informationssysteme GmbH Gruenwalder Weg 28g / D-82041 Oberhaching Fon: ++49 89 / 61308-351, Fax: -399, Mobile ++49 170 4527211 http://www.sisis.de/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Monitoring a program
On Friday 18 November 2005 10:00, [EMAIL PROTECTED] wrote: El día Thursday, November 17, 2005 a las 06:12:22PM +, db escribió: On Thursday 17 November 2005 09:42, [EMAIL PROTECTED] wrote: with 'lsof' you can see the actual situation; with 'truss' you may investigate in detail all sys calls (like opening files) Thanks, I also found /devel/strace which looks good :-) Yes, I know strace for a long of time from Linux and was always happy about it because it has better features than truss of SVR4 and FreeBSD; I did not know that it was ported to FreeBSD as well; I'm really looking forward to dtrace being part of freebsd. Anyone knows when this will happen? (are we talking 6.x or 7.0?) br db ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Monitoring a program
You can take a snapshot of files being used by lsof: Port: lsof-4.76.1.1 Path: /usr/ports/sysutils/lsof Info: Lists information about open files (similar to fstat(1)) Maint: [EMAIL PROTECTED] B-deps: R-deps: WWW:http://people.freebsd.org/~abe/ Hope this will help you :) Ivailo Tanusheff Senior System administrator ProCredit Bank (Bulgaria) AD db [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 11/16/2005 06:11 PM To [EMAIL PROTECTED] cc Subject Monitoring a program Hi all I would like to know what files a program access during it's life time (and maybe also the internet connections it makes), how should I do this? I have considered fstat, find, ktrace and searching the source or binary for path strings, but I guess I need a hook for open(). I'm running 5.4 on a ia32, but if there is a 6.x only program it is also welcome. Best regards db ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Monitoring a program
El día Thursday, November 17, 2005 a las 11:32:31AM +0200, Ivailo Tanusheff escribió: You can take a snapshot of files being used by lsof: Port: lsof-4.76.1.1 Path: /usr/ports/sysutils/lsof Info: Lists information about open files (similar to fstat(1)) Maint: [EMAIL PROTECTED] B-deps: R-deps: WWW:http://people.freebsd.org/~abe/ Hope this will help you :) with 'lsof' you can see the actual situation; with 'truss' you may investigate in detail all sys calls (like opening files) matthias -- Matthias Apitz / Sisis Informationssysteme GmbH Gruenwalder Weg 28g / D-82041 Oberhaching Fon: ++49 89 / 61308-351, Fax: -399, Mobile ++49 170 4527211 http://www.sisis.de/~guru/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Monitoring a program
On Thursday 17 November 2005 09:32, you wrote: You can take a snapshot of files being used by lsof: Port: lsof-4.76.1.1 Path: /usr/ports/sysutils/lsof Info: Lists information about open files (similar to fstat(1)) Maint: [EMAIL PROTECTED] B-deps: R-deps: WWW:http://people.freebsd.org/~abe/ Hope this will help you :) Well, the build fails, but thanks (I will notify the maintainer) :-) br db ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Monitoring a program
On Thursday 17 November 2005 09:42, [EMAIL PROTECTED] wrote: with 'lsof' you can see the actual situation; with 'truss' you may investigate in detail all sys calls (like opening files) Thanks, I also found /devel/strace which looks good :-) br db ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Monitoring a program
Hi all I would like to know what files a program access during it's life time (and maybe also the internet connections it makes), how should I do this? I have considered fstat, find, ktrace and searching the source or binary for path strings, but I guess I need a hook for open(). I'm running 5.4 on a ia32, but if there is a 6.x only program it is also welcome. Best regards db ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: traffic volume monitoring - what program
I am looking at a new ISP that charges for a certain number gigabites of traffic. I have -no- idea what my traffic volume is. Can anyone recommend a good traffic volume checker in the ports? I recommend setting up snmpd + rrdtool (portinstall net/net-snmp net/rrdtool). It's much easier and cleaner to configure than mrtg (in my experience). If you're interested I have a few scripts that do what you want in a basic bandwidth graphing situation for a few hosts; generating relatively sane graphs. -- / Peter Schuller, InfiDyne Technologies HB PGP userID: 0xE9758B7D or 'Peter Schuller [EMAIL PROTECTED]' Key retrieval: Send an E-Mail to [EMAIL PROTECTED] E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: traffic volume monitoring - what program
-- quoting Micheal Patterson -- Can't MRTG get you close enough for that wouldn't it? ... with some more configuration than with ipac-ng, yes :) -- Man: You must be stupider than you look. Homer: Stupider like a fix! Lemon of Troy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: traffic volume monitoring - what program
-- quoting David Banning -- I am looking at a new ISP that charges for a certain number gigabites of traffic. I have -no- idea what my traffic volume is. Can anyone recommend a good traffic volume checker in the ports? I only found ipac-ng for Linux based IPTABLES firewalls. But none so far for *BSD firewalls :( Any ideas? -- As far as anyone knows we're a nice, normal family. -- Homer Simpson There's No Disgrace Like Home ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: traffic volume monitoring - what program
- Original Message - From: Matthias F. Brandstetter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 20, 2004 2:05 PM Subject: Re: traffic volume monitoring - what program -- quoting David Banning -- I am looking at a new ISP that charges for a certain number gigabites of traffic. I have -no- idea what my traffic volume is. Can anyone recommend a good traffic volume checker in the ports? I only found ipac-ng for Linux based IPTABLES firewalls. But none so far for *BSD firewalls :( Any ideas? -- As far as anyone knows we're a nice, normal family. -- Homer Simpson There's No Disgrace Like Home Can't MRTG get you close enough for that wouldn't it? -- Micheal Patterson Senior Communications Systems Engineer 405-917-0600 Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
traffic volume monitoring - what program
I am looking at a new ISP that charges for a certain number gigabites of traffic. I have -no- idea what my traffic volume is. Can anyone recommend a good traffic volume checker in the ports? -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]