glances/docs/aoa/ports.rst

46 lines
1.3 KiB
ReStructuredText
Raw Normal View History

2016-06-19 12:12:40 +03:00
.. _ports:
Ports
=====
*Availability: All*
.. image:: ../_static/ports.png
This plugin aims at providing a list of hosts/port to scan.
2017-03-12 20:52:17 +03:00
You can define ``ICMP`` or ``TCP`` ports scan.
2016-06-19 12:12:40 +03:00
2017-03-12 20:52:17 +03:00
The list should be defined in the ``[ports]`` section of the Glances
configuration file.
2016-06-19 12:12:40 +03:00
.. code-block:: ini
[ports]
# Ports scanner plugin configuration
# Interval in second between two scans
2016-06-19 12:12:40 +03:00
refresh=30
# Set the default timeout (in second) for a scan (can be overwrite in the scan list)
2016-06-19 12:12:40 +03:00
timeout=3
# If port_default_gateway is True, add the default gateway on top of the scan list
2016-06-19 12:12:40 +03:00
port_default_gateway=True
# Define the scan list (1 < x < 255)
# port_x_host (name or IP) is mandatory
# port_x_port (TCP port number) is optional (if not set, use ICMP)
# port_x_description is optional (if not set, define to host:port)
# port_x_timeout is optional and overwrite the default timeout value
# port_x_rtt_warning is optional and defines the warning threshold in ms
2016-06-19 12:12:40 +03:00
port_1_host=192.168.0.1
port_1_port=80
port_1_description=Home Box
port_1_timeout=1
2016-06-19 12:12:40 +03:00
port_2_host=www.free.fr
port_2_description=My ISP
port_3_host=www.google.com
port_3_description=Internet ICMP
port_3_rtt_warning=1000
port_4_host=www.google.com
port_4_description=Internet Web
port_4_port=80
port_4_rtt_warning=1000