Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion examples/get/asynchronous/custom_source_ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async def main():
The main function to perform asynchronous tasks.
"""

# Create a AsyncGetter instance with specified parameters
# Create an AsyncGetter instance with specified parameters
# Parameters: (host, port, source_ip)
agent = AsyncGetter("127.0.0.1", 10050, source_ip="10.10.1.5")

Expand Down
2 changes: 1 addition & 1 deletion examples/get/asynchronous/getting_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async def main():
The main function to perform asynchronous tasks.
"""

# Create a AsyncGetter instance for querying Zabbix agent
# Create an AsyncGetter instance for querying Zabbix agent
agent = AsyncGetter(host='127.0.0.1', port=10050)

# Send a Zabbix agent query for network interface discovery
Expand Down
2 changes: 1 addition & 1 deletion examples/get/asynchronous/tls_psk_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def main():
The main function to perform asynchronous tasks.
"""

# Create a AsyncGetter instance with a custom SSL context
# Create an AsyncGetter instance with a custom SSL context
agent = AsyncGetter(
host=ZABBIX_AGENT,
port=ZABBIX_PORT,
Expand Down
2 changes: 1 addition & 1 deletion zabbix_utils/aiogetter.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class AsyncGetter():

source_ip (str, optional): IP from which to establish connection. Defaults to `None`.

ssl_context (Callable, optional): Func(), returned prepared ssl.SSLContext. \
ssl_context (Callable, optional): Func(), returning prepared ssl.SSLContext. \
Defaults to `None`.
"""

Expand Down
2 changes: 1 addition & 1 deletion zabbix_utils/aiosender.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class AsyncSender():
source_ip (str, optional): IP from which to establish connection. Defaults to `None`.
chunk_size (int, optional): Number of packets in one chunk. Defaults to `250`.
clusters (tuple|list, optional): List of Zabbix clusters. Defaults to `None`.
ssl_context (Callable, optional): Func(`tls`), returned prepared ssl.SSLContext. \
ssl_context (Callable, optional): Func(`tls`), returning prepared ssl.SSLContext. \
Defaults to `None`.
compression (bool, optional): Specifying compression use. Defaults to `False`.
config_path (str, optional): Path to Zabbix agent configuration file. Defaults to \
Expand Down