1,779 reputation
31537
bio website about.me/daveforgac
location Cleveland, OH
age 34
visits member for 5 years, 4 months
seen Oct 9 at 19:49

Mar
19
comment How can I find the total number of TCP connections for a given port and period of time by IP?
This answer works and is the simplest for me in this situation. If I weren't able to modify iptables the tcpdump method would work too.
Mar
11
comment How can I find the total number of TCP connections for a given port and period of time by IP?
It's something I'd like to watch for a period of time while testing so connections while a program is running for n time.
Mar
19
comment How can I speed up a MySQL restore from a dump file?
I just noticed that I typed '5' minutes. I'm pretty sure it was more like 50 minutes but still way more reasonable ;-)
Mar
19
comment When upgrading hardware to increase program performance, which should I consider first CPU, RAM or both?
It is likely there is either a memory leak because he's not closing files or that the system doesn't have enough free RAM to hold the contents of all of the files in memory. In either case fixing the script is the answer.
Nov
11
comment Configure VirtualHost to Rewrite HTTP://subdomain… to HTTPS://internaldirectory
Why the screenshot and not a pasted config? And you can use example.com/net/org in your examples tools.ietf.org/rfc/rfc2606.txt
Nov
8
comment Php.ini disable “Scan this dir for additional .ini files”?
It certainly does work, you just need to make sure your server has mod_env enabled and available for your use.
Oct
25
comment Nginx + Haproxy + Thin + Rails - 503 Service Unavailable -
Your list of listening ports doesn't show 3000-3002 despite the fact that the processes are configured for these ports. Are any errors logged / thrown to the console when you start them?
Oct
20
comment Are there any tools for monitoring individual Apache virtual hosts in real-time?
Wow, I can't believe I overlooked that! @AlexanderJanssen, if you turn that into an answer I'll give you the bounty.
Oct
18
comment Are there any tools for monitoring individual Apache virtual hosts in real-time?
This does look interesting but not all sites run PHP and what I'm really looking for is the number of open requests at a point in time.
Oct
15
comment How can I rotate many log files into a different subdirectory per rotation?
Thank you again!
Oct
15
comment How can I rotate many log files into a different subdirectory per rotation?
It seems that postrotate will do the trick. The only thing I need to add is purging the old directories that are over a certain count or older than a certain date.
Oct
12
comment How can I replace email alerts for system events with something more scalable?
Thank you for the Amazon SNS suggestion. I don't think it's going to work due to the restrictions of this project but could be helpful for something similar in the future. I've ended up using Nagios passive checks for now (nagios.sourceforge.net/docs/3_0/passivechecks.html).
Oct
11
comment Send input to background process
Are the only commands that you're trying to send shutdown or restart commands? Are you trying to run this as a daemon rather than just a process within your shell session?
Oct
10
comment Adding a timestamp to bash script log
That will only add the timestamp once per execution of script.sh. The OP needs a timestamp per line.
Oct
8
comment How can I replace email alerts for system events with something more scalable?
In my case this would not work. The services aren't accessible outside the internal network and some of the alerts come from scripts running via cron so there's no daemon to check.
Sep
21
comment How can I make an EC2 instance report a custom hostname
Also, please edit the title. I'd edit it to be something like "How can I make an EC2 instance report a custom hostname?" but I'm not certain that's what you were asking.
Aug
29
comment Hosts file aliases makes https calls buggy
Please update your question with the output of curl -I https://example.com/
Aug
18
comment Apache returns 403 Forbidden for alternative port vhost
You can answer your own question to make it clear what happened here.
Aug
10
comment How can I copy a LVM logical volume to a loopback file on another system?
It turned out that my issue was due to the LV being a Xen disk image however this would be the preferred method of copying an LV to a disk image file.
Aug
10
comment How can I copy a LVM logical volume to a loopback file on another system?
So it turned out that the volume I was trying to copy was an old Xen disk image, not just a normally formatted partition. I was able to mount it using losetup as described here: blog.leenix.co.uk/2010/07/…