nadzoring.network_base.ping_address module¶
Ping address using ping3 library.
This script performs a standard ping of a specific address or domain name. It works in the same way as the standard OS module. It does not ping addresses that are protected from pinging, such as “codeby.net”. It can be used for a shallow check of addresses.
- nadzoring.network_base.ping_address.ping_addr(addr: str) bool[source]¶
A normal ping of a specific ip address or domain.
The original function returns if the domain or address is unavailable None. If successful, the time for which ping is being performed. This function returns Boolean values in the case of success or failure.
- Parameters:
addr (str) – address
- Returns:
is pinged
- Return type:
bool