Monitoring Bandwidth usage for individual hosted sites on osx server?

Does anyone know of a good way to monitor bandwidth consumption for individual websites hosted on osx server?

Part of this answer depends on server configuration details that you haven't provided.
Are you looking for 'bandwidth' as in total bytes transferred for any given site? or are you looking for a megabits-per-second network throughput calculation?
Are your various sites logging to separate log files? or a single, unified log file?
If you want a total bytes transferred calculation, then that data is stored in the standard log files, so a simple parser that adds up the response sizes would suffice - it will tell you that x number of bytes/megabytes were transferred.
A bandwitch utilization graph (e.g. mbps) is a little trickier, though.
Are your sites running on the same port, using name-based virtual hosting to separate the traffic, or are they running on different ports?
If different ports then you may be able to implement some kind of network monitoring, but if they're all running on the same port (e.g. 80) then that doesn't work - you're down to Apache logging.
The standard Apache logs, though, don't include enough data to calculate a bandwidth graph. It does include timestamps of requests, and the total bytes in the reply, but that's not enough - the timestamp is only accurate to the second, and there's no indication of duration... for example, a 1mb web page served in 1 second equates to 8mbps, but that same file transferred in 30 seconds is only about 273kbps.
Since the transfer time is required to calculate the bandwidth utilization for the site, you'll need to amend your logging to include the transfer size. You'll need to enable mod_logio and add the %O (output bytes) and %T (request time) variables to your log format. Only then can you calculate the bits-per-second throughput of your site.

Similar Messages

  • How can I monitor my monthly data usage for all 3 computers in my house? I have an Airport base station and it seems there should be software to monitor it from that point rather than monitoring the usage for each computer and then adding it up.

    How can I monitor my monthly data usage for all 3 computers in my house? I have an Airport base station and it seems there should be software to monitor it from that point rather than monitoring the usage for each computer and then adding it up.

    The following example was one of dozens that showed up on a simple Google search of.....
    monitor Internet data use on a Mac
    Watch your Internet usage with NetUse Monitor | Macworld
    Most service providers have an application for their users as well.

  • I am no longer able to turn off cellular data usage for individual apps.  When I turn most of them off, they just automatically reset themselves to allow data usage.  Any thoughts?

    I am no longer able to turn off cellular data usage for individual apps. 
    When I turn most of them off, they just automatically reset themselves to allow data usage.
    Any thoughts?

    I am definately having the same problem and cannot believe there are no answers or even support that this problem exists.  I never have to post on forumns, I read what is usually readilly availiable for the craziest of problems. 
    Anyways, the problem is just that, I can toggle off a individual app's setting of cellular data availability, but it changes right back on rescreening.  After restarting, resetting etc, it seems that the big Apple Apps are the biggest offenders.  Music is a very important one, Podcasts can kill you very quickly, app store, Photos, Facetime, Stocks?!?!?!
    When one searches for solutions I have to see hundreds of links to "How great is ios7, you can turn off cellular data for individual apps FOR DUMMIES!".  I am a dedicated apple fool since the Apple IIe (long time), but when they run afowl it is usually really bad.  Why offer an on/off switch if the setting is always on?
    I am writing just to add support to the existence of this problem, not so much for people to offer ideas of solutions as I now believe it is in the coding.
    Thank you

  • Any recommendations for a hosting site and photo album software?

    I'm looking for a hosting site that doesn't cost too much. All I want is the ability for someone to upload images (perhaps sometimes large) to a site that I can download and edit, then re-upload. I'm looking at an open source software called Gallery. The hosting sites are totally baffling to me., however. Thanks.

    No. Just wondering if that was what you were referring to. It seem like software you run on your own server. There are a number of sites out there that you can upload your photos to and share with others, no special software needed. http://www.flickr.com/ is one of them. Just do a Google search and you should find a bunch of possible candidates. I use iDisk for my photo sharing.

  • Limiting Bandwidth usage for MDT 2013

    Hello Technet,
    I recently built up a MDT 2013 platform (on server 2k8R2) for deploying our Windows 7 image to over 125+ computers in our building at the same time.  Our deployment server, which is a VM, is located on the same host and switch as our web server
    (not my design) and I am forced to limit the bandwidth usage to only 50%.  I know WDS was/is able to limit bandwidth usage when multicasting, but I haven't found anything online about MDT being able to limit it.
    Do I need to have the WDS role installed on my server to limit the bandwidth or can MDT 2013 do this for me.  As always, any and all help is appreciated!
    Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Hi,
    Read these references to see if it meet your requirement:
    Enable Multicast Deployments with MDT 2010/WDS on Same Computer
    http://deploywindows7.wordpress.com/2010/09/20/enable-multicast-deployments-with-mdt-2010wds-on-same-computer/
    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Windows Server 2012: Master Windows Deployment Services
    http://technet.microsoft.com/en-us/magazine/dn163597.aspx
    Karen Hu
    TechNet Community Support

  • Setting Max CPU usage for individual apps.

    Is there a way to set a maximum CPU usage (percentage) for individual applications so when they run they will never go above the limit?

    As Thomas pointed out, there is no way to do exactly what you want. You can have some influence over appliccation priorities using Peek-a-Boo.
    Mac Mini; B&W G3/300    

  • Cannot get bandwidth usage for Wildblue but can on IE

    We have a bandwidth usage meter on Wildblue Satellite Service. 2 days ago, it quit working. If I change from Firefox to IE, it works. Any ideas?

    What I found after much research.....In Wildblue's many changes they have made recently, they inadvertently locked all my permissions in the sign-on screen to my account management and therefore was unable to access my usage. Thanks for your help. Problem solved!

  • Need tools to monitor bandwidth usage

    Dear Folkz,
    Is there any open source tool to monitor bandwidth on a switch port and take reports.?
    plz help me!!

    I think Open NMS (http://www.opennms.org/) and Cacti (http://www.cacti.net/) is one of the most used and best as per your requirements.

  • What are the right DNS records to host more than one site on OSX Server (ML). My conf in Server.app looks right but one of my sites lands on the default server. Any suggestion?

    I started using OSX Server on Mountain Lion a few days ago and it looks promising.
    I do however measure my ignorance in DNS matters...
    I defined two websites in addition to the the Default Server, so I have three names to deal with.
    For argument's sake
    - www.main.com is the default site
    - www.sitea.com is the first site
    - www.siteb.com is the second site
    I define a virtual host for www.sitea.com and another for www.siteb.com
    The resulting apache conf is what I would expect, I am pretty sure it is correct.
    So I modified my DNS entries (they were A records) to point to my new OSX Server.
    My result is:
    - www.main.com shows the default site
    - www.sitea.com shows the first site
    - www.siteb.com shows...the default site
    Any ideas?
    Cheers

    Thanks MrHoffman!
    My problem ended up being a name but not in the DNS!...In Apache.
    Your information allowed me to rule out possibilities and zoom in to the culprit faster.
    I just report here the conclusion hoping it can help someone else.
    When I installed OSX Server last week, I had in mind to principally run siteb.
    During the initial install, this is what I must have entered and then forgot about it.
    Then I defined my virtual hosts sitea and siteb and realised my machine was called siteb and changed its name to main to avaid a name collision. At which time I remember OSX Server telling me that changing the name could have consequences...But it apparently went ok, and it did except for one little thing.
    The consequence was this:
    in the main configuration file /Library/Server/Web/Config/apache2/http_server_app.conf the ServerName directive had remained siteb (instead of main). I manually updated it with TextEdit (could do vi from bash, its the same) and replaced siteb with main.
    There is a way to detect it.
    In Server.app, there is a "logs" panel, which displays all sorts of logs for everything including the websites.
    Each website's logs are presented as "access" and "error" logs. The information was there, but I could not see it because the viewing window in remarkably small for so much information in raw text...
    web logs are actually written to only two files in /var/log/apache2 (error.log and access.log)
    I openned two bash windows and run tail -f on error.log in one and tail -f access.log in the other.
    When I started the web service, apache threw a warning stating from mod_ssl saying that the certificate did not match the serve name...I the certificate was what I expected, I checked http_server_app.conf and found the ServerName directive that was not changed when I renamed my server...
    Easily fixed when its found, but it can take a while to find.
    BTW, I was using A DNS records for and it works, but I find your method of using CNAME records documents the administrator's intent better than with A records; I started to do the same. (A records a useful though, they can run a domain across multiple machines)
    Cheers mate!

  • How to monitor CPU usage and performance on a Hyper-V server with several VM's

    I have a server that is running Windows 2008 64 bit Hyper-V, with 8 gigs of RAM and Intel Xeon X3440 @ 2.53 Ghz, which gives me 8 logical cores in the performance monitor on the host system.
    I have set up three Virtual Machines, all running Windows 2008 32 bit.
    Build server, running Team City
    Staging server
    SQL Server, running SQL Server 2005
    I have some troubles with the setup in that the host monitor remains responsive at all times, even though the VM's are seemingly working at 100% cpu and are very sluggish and unresponsive. (I have asked a separate question about that.)
    So the question here is: What is the best way to monitor how the physical CPU's are actually utilized? The reason I am asking is that I am being told that i cannot reliably use the task manager to monitor CPU usage in a VM.

    First, you have to remember that in Hyper-V that the "host" is called a parent partition and it really just like a virtualized guest with special permissions and roles. Just like any other child/guest, when you open up Task Manager, you can not see the CPU
    usage of the other children on the server.
    Ben Armstrong has a good explanation of this here:http://blogs.msdn.com/virtual_pc_guy/archive/2008/02/28/hyper-v-virtual-machine-cpu-usage-and-task-manager.aspx
    To summarize his post, you need to check three things to get an accurate picture of CPU utilization:
    View the CPU usage on each guest - this is available through Hyper-V Manager or Performance Monitor.
    CPU usage due to context switching - this is the perfmon counter called % Hypervisor Run Timeunder Hyper-V Hypervisor Virtual Processor
    Child partition worker process - vmwp.exe running on the parent partition (1 per child). This handles Hyper-V operations like saving
    state.

  • Setting up Mail for the first time with OSX Server 10.5.6

    I just got done reading the 100+ page mail services administration manual. A few things are unclear and I wanted to clear those up prior to embarking on my first adventure configuring mail services.
    The questions I have are the following:
    1. When using mail for incoming and outgoing, do I 'have' to use local DNS services or can I simply change the MX records by my DNS Provider?
    2. I have more than one IP on the server using the 'IP Alias' command. Will the mail server be able to distinguish the different mail domains base on IP Address, or will virtual domains need to be configured?
    3. If virtual domains need to be configured, is this configuration simple or is it semi complex?
    4. Provided the answer to questions two and three, what is the best configuration for the firewall settings on the server? Allow IMAP inbound, POP3, and SMTP? What else?
    Thanks in advance

    1. Mail service relies heavily on DNS. You may run your own DNS servers on the same network as your mail server or you can use a DNS provider to host your zone data including your MX record.
    2. Your server will listen on all available network devices by default. It will only accept those messages for the hosts that are listed in the general pane, the local host list, or the virtual domain list under the advanced pane. No virtual domains need to be configured if all users are real users (i.e. shows up in WorkGroup Manager).
    3. As stated in (2), you do not need virtual domains to receive e-mail for multiple hostnames or domain names, but you may want to do so if you want separate accounts with same usernames for different domains. E.g. [email protected] and [email protected] will go to two separate inboxes. It's not that difficult, but rather tedious if you already have a lot of e-mail accounts set up.
    4. You must allow SMTP through the firewall to receive mail from the outside world. Depending on your clients, you may open IMAP or POP. There are no other specific ports necessary for mail to work at this level... except for Submission (587). Many ISP's block port 25 for mail clients. You may want to use port 587 for submissions so that your mobile users don't have to switch back and forth between the two ports when they change locations. This is done by editing /etc/imapd.conf manually.

  • Multiple domains hosted on one OSX Server

    Hi guys,
    Does anyone know if it is possible to host more than one domain name on OSX server?
    A client of mine runs a number of businesses and is considering Snow Leopard Server, and wants to have multiple email domains and websites hosted on one server. Also per-account contacts sync and calendar sync would be useful, does anyone know if that's available?
    Thanks!
    W.

    You can certainly host multiple domains on Mac OS X Server. There are a few options depending on how you want it to work.
    If all the usernames are the same across all domains (e.g. [email protected] is the same person as [email protected]) then just change the mail server configuration to match all the domains in the mydestination parameter in /etc/postfix/main.cf.
    If the domains are different (e.g. [email protected] is not the same account as [email protected]) then you have two options - one is to use the postfix model (which requires command-line management), the other is to add the email addresses in the shortname section for each user.
    You may have some issues integrating contacts and calendars, though - if you take the postfix model then the users won't exist in Open Directory and won't have a calendar/contact link, etc.
    If you follow the shortname model then you have one directory with all users in all domains and you'll need to work to separate them out if you need to.

  • Tracking/monitoring bandwidth/usage

    Scattered through our house we have six Macs all using our wireless network.  Every month we are running uo against or exceeding our alloted usage of 60GB. I'm almost 100 percent sure that my youngest is the largest user of bandwidth, but I want to understand (and be able to explain to him) what it is that he is doing that is driving the usage stats so high and thus have him curb the behaviour that is pushing us over.  So what I am trying to find is an app that will allow me to monitor usage on each of my machines down to a granular level - application and website would be great.  Does any such tool exist?
    Thanks

    You might want to check out Open DNS. Not only will it track usage by user or computer, you will be able to see (and block) any websites that you do not want others to visit.
    Contact Open DNS for more details:
    http://www.opendns.com/landings/familyshield

  • Monitor bandwidth utilization for Hyper-V's Virtual Machines

    Hi,
    I'm wondering, if SCOM is capable to monitor incoming & outgoing traffic (current and total over time) of VMs in Hyper-V?
    Tried to search about it, and found only 3rd party tools or the monitoring is only available for Router, not VMs.
    Thanks.

    Hi Andre,
    Also you can use performance monitor to monitor the VM's bandwidth through counter "Bytes Received/sec" and "Bytes Sent/sec" under Hyper-v virtual network adapter :
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Can I monitor bandwidth usage?

    Hi
    I have an Airport Express being used by two PC's and a Mac; I'm using a PC whilst my Macbook is repaired. But the internet gets really slow and I suspect someone (not me, one of the other two) is most likely downloading in extreme amounts. Is there an application of such that will allow me to see who's using the most bandwidth?

    I run vnstat on my router and have it update the figures every 5 minutes. I don't know if it's very accurate since I get 3 different numbers for my interfaces:
    rx / tx / total / estimated
    eth0:
    yesterday 832.96 MB / 2,325 MB / 3,158 MB
    today 864.36 MB / 1,363 MB / 2,227 MB / 2,928 MB
    eth1:
    yesterday 2,371 MB / 862.99 MB / 3,234 MB
    today 1,396 MB / 885.23 MB / 2,282 MB / 2,998 MB
    ppp0:
    yesterday 3,011 MB / 3,724 MB / 6,735 MB
    today 1,311 MB / 787.56 MB / 2,099 MB / 2,758 MB
    Unfortunately (more like OMFG YES IT'S GOD'S GIFT!!!!) my ISP's traffic monitor is totally screwed up so I have no way of comparing these numbers.
    I don't think it eats up a lot of resources tho, so you could run it together with other apps.

Maybe you are looking for