Network port default check
Agent Client Collector provides the following default check for Network port monitoring. The check is available for both Windows and Linux.
| Type | Description | Usage | Output |
|---|---|---|---|
| Event |
Generates an event for all ports of the specified host address, indicating whether each port is available or in use. A CRITICAL event is generated for ports that are either not in use or down. An OK event is generated only if all the specified ports are in use and operational. The required parameters are: host, ports. |
check-ports.rb -H localhost -p 22,25,8100-8131,3030 -P tcp -t 5
|
CheckPort CRITICAL: Connection refused by: Host: localhost and its ports are: 8100, 8101, 8102, 8103, 8104, 8105, 8106, 8107, 8108, 8109, 8110, 8111, 8112, 8113, 8114, 8115, 8116, 8117, 8118, 8119, 8120, 8121, 8122, 8123, 8124, 8125, 8126, 8127, 8128, 8129, 8130, 8131, 3030. |