Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey all,
I am working on a project on Green Computing.What i need to do is store the no. of requests hitting server during in a day in database.That is,in every 15 mins i have to store total hits during that duration in database,so that i can obtain network traffic pattern !!!
Also, I'd strongly recommend writing this in something like Perl or Python:
a) scripts are faster/easier for jobs like this
b) Python and Perl have all the flexibility of shell scripts, but they also make it easy to talk to mySQL
c) examples/tutorials for Python and Perl are abundant - you can literally have something up/running in an afternoon (if you've never used them before), or an hour or less (if you already know one or both of these languages).
Hey all,
I am working on a project on Green Computing.What i need to do is store the no. of requests hitting server during in a day in database.That is,in every 15 mins i have to store total hits during that duration in database,so that i can obtain network traffic pattern !!!
I am not able to find a way to do so....
Plz suggest sumthing !!!
Regards
Sanket !!!
I'll suggest you spell out your words.
And if you need this, consider looking into Nagios, or other system-monitoring tools for Linux that are out there. They already providing trending, graphs, etc., and are ready to go.
Also, you don't say what KIND of requests, hitting what kind of server, running what version/distro of Linux, etc.
I am working on Ubuntu....have to do this project on heterogeneous servers...so basically whenever there is some low load on servers,we have to switch some servers to hibernation and switch them back to normal working mode when no. of requests is high...hav to take this decision using historical data .. thats why want the no. of requests hitting any server(webserver,ftp,mail etc etc )....and from requests i mean to say client requests !!!!
I have looked into various tools but none of them provides no of requests hitting any server..they talk about bytes of data transferred,network usage etc...
I am working on Ubuntu....have to do this project on heterogeneous servers...so basically whenever there is some low load on servers,we have to switch some servers to hibernation and switch them back to normal working mode when no. of requests is high...hav to take this decision using historical data .. thats why want the no. of requests hitting any server(webserver,ftp,mail etc etc )....and from requests i mean to say client requests !!!!
I have looked into various tools but none of them provides no of requests hitting any server..they talk about bytes of data transferred,network usage etc...
Plz suggest sumthing !!!
Again SPELL OUT YOUR WORDS. And "client requests" is very broad.
Nagios and other tools measure throughput, but if you want to measure the different protocols, you'll have to install something like MRTG, and write something to monitor all the different network protocols, and graph them.
... and for all services, use the LOG option in iptables and use Perl to pull out nums for each service and put in DB. Note that this is going to use a fair bit of disk space, so be prepared to tweak the logrotate settings
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.