Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network_Monitoring script added #2911

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
e81765a
Folder Locker and Hider script added
Kalivarapubindusree Aug 10, 2023
dd74c39
Create_And_Manage_Heroku_App added
Kalivarapubindusree Aug 10, 2023
9fca401
Filter_Text added
Kalivarapubindusree Aug 10, 2023
be54e99
Get_Content_From_Wikipedia added
Kalivarapubindusree Aug 10, 2023
dd335c4
Forced_Browse script added
Kalivarapubindusree Aug 10, 2023
4c809a0
OS_interaction script added
Kalivarapubindusree Aug 10, 2023
8da6e06
version_control_automation script added
Kalivarapubindusree Aug 10, 2023
ea8a3ac
Network_Monitor script added
Kalivarapubindusree Aug 10, 2023
ab8919d
Network_Monitoring script added
Kalivarapubindusree Aug 10, 2023
b1a2f9f
Delete Create_And_Manage_Heroku_App.py
Kalivarapubindusree Aug 10, 2023
573d17c
Delete README.md
Kalivarapubindusree Aug 10, 2023
e688ce7
Delete Filter_Text.py
Kalivarapubindusree Aug 10, 2023
029deb0
Delete README.md
Kalivarapubindusree Aug 10, 2023
9cb5921
Delete Folder_locker_and_Hider .py
Kalivarapubindusree Aug 10, 2023
f940962
Delete README.md
Kalivarapubindusree Aug 10, 2023
e832cd9
Delete Forced_Browse.py
Kalivarapubindusree Aug 10, 2023
f8bfe2a
Delete README.md
Kalivarapubindusree Aug 10, 2023
c3520ae
Delete Get_Content_From_Wikipedia.py
Kalivarapubindusree Aug 10, 2023
d9e46ec
Delete README.md
Kalivarapubindusree Aug 10, 2023
bf0b6aa
Delete OS_interaction.py
Kalivarapubindusree Aug 10, 2023
41d79a7
Delete README.md
Kalivarapubindusree Aug 10, 2023
234e22b
Delete README.md
Kalivarapubindusree Aug 10, 2023
d7dc6d6
Delete version_control_automation_script.py
Kalivarapubindusree Aug 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Network_Monitoring/Network_Monitoring.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import ping3
import time

def ping_servers(server_list):
while True:
for server in server_list:
response_time = ping3.ping(server)
if response_time is not None:
print(f"{server} is up (Response Time: {response_time} ms)")
else:
print(f"{server} is down! ALERT!")

time.sleep(60) # Ping every 60 seconds

if __name__ == "__main__":
servers_to_monitor = ["google.com", "example.com", "localhost"]

print("Network Monitoring Script")
print("Press Ctrl+C to stop monitoring")

try:
ping_servers(servers_to_monitor)
except KeyboardInterrupt:
print("\nMonitoring stopped.")
16 changes: 16 additions & 0 deletions Network_Monitoring/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Network_Monitoring

Short description of package/script

- This Script Was simple to setup
- Need import ping3,time


## Setup instructions


Just Need to run this command "pip install ping3" then run the Network_Monitoring.py file and for running python3 is must be installed!

## Detailed explanation of script, if needed

This Script Is Only for Network_Monitoring use only!
Loading