Set up a script that will check a value created by netstat and restart apache if it is over that value.

Completed Posted 4 years ago Paid on delivery
Completed Paid on delivery

I need some help for someone to

1) First create a script that checks current connections to the server.

Something like this:

netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head

Then, 2) If one of the IPs connection value is greater than say 5000, then we will restart Apache and/or Nginx

I hope that makes sense and i hope the job is simple enough so you can tell me to copy and paste your code or you can work on Teamviewer.

Thanks

Linux PHP Shell Script Software Architecture Web Security

Project ID: #20236958

About the project

5 proposals Remote project Active 4 years ago

Awarded to:

monsune

Hello. I have lots of sysadmin experience which also includes tons of scripting. Would be happy to code this script for you. I'm ready to start right away. Just let me know in the chat if you need me and I will be on i More

$20 USD in 1 day
(57 Reviews)
5.1

5 freelancers are bidding on average $23 for this job

jbosseu

Have worked with servers and scripts for many years. Can write script for you to do this. Let me know.

$25 USD in 1 day
(205 Reviews)
6.2
Nelson112

Hello, Your in good hands here, this is the things I do all day every day. I can help you from the ground up. Take a moment and look at my profile once you get a chance and I would be more than willing to answer any More

$20 USD in 7 days
(6 Reviews)
2.8
vilbiraju

Hello, I understood that, you need to check no of concurrent connections listening /established /time_wait etc on port 80 and you need to restart the service once it reaches the threshold value. This will not take More

$25 USD in 1 day
(4 Reviews)
1.9
farmanali0124

Hi there, I have checked the details. I have rich experience with Linux, PHP, Shell Script, Software Architecture, Web Security. Please initiate the chat so we can discuss this job in detail. I am new to [login to view URL] More

$25 USD in 7 days
(1 Review)
1.4