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

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.


Taidot: Linux, PHP, Shell Script, tietojärjestelmäarkkitehtuuri, Verkkoturva

Näytä lisää: php script check confirm passwords, reciprocal script check, php script check cpu usage, php file upload script check file size, simple script check server, bash script check web page, script check sendmail, xtremetop100 voting script check, script check link megavideo, php script check gmail, php script check gmail email, php script check user online messenger, script check webpage email change, cron script check mysql times, wget script check website bash, check process bash restart script, perl script check apache status

Tietoa työnantajasta:
( 17 arvostelua ) Niagara Falls, United States

Projektin tunnus: #20236958

Myönnetty käyttäjälle:


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 Lisää

$20 USD 1 päivässä
(57 Arvostelua)

5 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


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

$25 USD 1 päivässä
(205 arvostelua)

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 Lisää

$20 USD 7 päivässä
(6 arvostelua)

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 Lisää

$25 USD 1 päivässä
(4 arvostelua)

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] Lisää

$25 USD 7 päivässä
(1 arvostelu)