Protocol UDP
Pack Assets​
Templates​
The Monitoring Connector Protocol UDP brings 2 host templates:
- App-Protocol-Udp
- App-Protocol-Udp-Only
The connector brings the following service template (sorted by host template):
- App-Protocol-Udp
- App-Protocol-Udp-Only
- No host template
Service Alias | Service Template | Service Description |
---|---|---|
N/A | N/A | N/A |
Service Alias | Service Template | Service Description |
---|---|---|
N/A | N/A | N/A |
Service Alias | Service Template | Service Description |
---|---|---|
Connection | App-Protocol-Udp-Connection | Check UDP port connection |
These services are not automatically created when the host template is applied.
Collected metrics & status​
- Connection
Coming soon
Setup​
Monitoring Pack​
If the platform uses an online license, you can skip the package installation instruction below as it is not required to have the pack displayed within the Configuration > Monitoring Connector Manager menu. If the platform uses an offline license, install the package on the central server with the command corresponding to the operating system's package manager:
- Alma / RHEL / Oracle Linux 8
- Alma / RHEL / Oracle Linux 9
- Debian 11 & 12
- CentOS 7
dnf install centreon-pack-applications-protocol-udp
dnf install centreon-pack-applications-protocol-udp
apt install centreon-pack-applications-protocol-udp
yum install centreon-pack-applications-protocol-udp
Whatever the license type (online or offline), install the Protocol UDP Pack through the Configuration > Monitoring Connector Manager menu.
Plugin​
Since Centreon 22.04, you can benefit from the 'Automatic plugin installation' feature. When this feature is enabled, you can skip the installation part below.
You still have to manually install the plugin on the poller(s) when:
- Automatic plugin installation is turned off
- You want to run a discovery job from a poller that doesn't monitor any resource of this kind yet
More information in the Installing the plugin section.
Use the commands below according to your operating system's package manager:
- Alma / RHEL / Oracle Linux 9
- Alma / RHEL / Oracle Linux 8
- CentOS 7
- Debian 11 & 12
dnf install centreon-plugin-Applications-Protocol-Udp
dnf install centreon-plugin-Applications-Protocol-Udp
yum install centreon-plugin-Applications-Protocol-Udp
apt install centreon-plugin-applications-protocol-udp
Configuration​
Host​
- App-Protocol-Udp
- App-Protocol-Udp-Only
- Log into Centreon and add a new host through Configuration > Hosts.
- Fill the Name, Alias & IP Address/DNS fields according to your ressource settings.
- Apply the App-Protocol-Udp-custom template to the host.
Mandatory | Macro | Description | Default |
---|---|---|---|
UDPPORT | 161 | ||
UDPTIMEOUT | 3 |
- Log into Centreon and add a new host through Configuration > Hosts.
- Fill the Name, Alias & IP Address/DNS fields according to your ressource settings.
- Apply the App-Protocol-Udp-Only-custom template to the host.
- Once the template is applied, fill in the corresponding macros. Some macros are mandatory.
Mandatory | Macro | Description | Default |
---|---|---|---|
UDPPORT | 161 | ||
UDPTIMEOUT | 3 |
Service​
Once the template is applied, fill in the corresponding macros. Some macros are mandatory.
- Connection
Mandatory | Macro | Description | Default |
---|---|---|---|
PORT | Port used | ||
EXTRAOPTIONS | Any extra option you may want to add to the command line (eg. a --verbose flag) |
How to check in the CLI that the configuration is OK and what are the main options for?​
Once the plugin is installed, log into your Centreon poller's CLI using the
centreon-engine user account (su - centreon-engine
) and test the plugin by
running the following command:
sudo /usr/lib/centreon/plugins//centreon_protocol_udp.pl \
--plugin=apps::protocols::udp::plugin \
--mode=connection \
--hostname='10.0.0.1' \
--port='161' \
The expected command output is shown below:
OK: Connection success on port 161
Available modes​
All available modes can be displayed by adding the --list-mode
parameter to
the command:
sudo /usr/lib/centreon/plugins//centreon_protocol_udp.pl \
--plugin=apps::protocols::udp::plugin \
--list-mode
The plugin brings the following modes:
Mode | Linked service template |
---|---|
connection | App-Protocol-Udp-Connection |
Available options​
Modes options​
All modes specific options are listed here:
- Connection
Option | Description | Type |
---|---|---|
--mode | Choose a mode. | Global |
--dyn-mode | Specify a mode with the path (separated by '::'). | Global |
--list-mode | List available modes. | Global |
--mode-version | Check minimal version of mode. If not, unknown error. | Global |
--version | Display plugin version. | Global |
--pass-manager | Use a password manager. | Global |
--verbose | Display long output. | Output |
--debug | Display also debug messages. | Output |
--filter-perfdata | Filter perfdata that match the regexp. | Output |
--filter-perfdata-adv | Advanced perfdata filter. Eg: --filter-perfdata-adv='not (%(value) == 0 and %(max) eq "")' | Output |
--explode-perfdata-max | Put max perfdata (if it exist) in a specific perfdata (without values: same with '_max' suffix) (Multiple options) | Output |
--change-perfdata --extend-perfdata | Change or extend perfdata. Syntax: --extend-perfdata=searchlabel,newlabel,target[,[newuom],[min],[m ax]] Common examples: Change storage free perfdata in used: --change-perfdata=free,used,invert() Change storage free perfdata in used: --change-perfdata=used,free,invert() Scale traffic values automaticaly: --change-perfdata=traffic,,scale(auto) Scale traffic values in Mbps: --change-perfdata=traffic_in,,scale(Mbps),mbps Change traffic values in percent: --change-perfdata=traffic_in,,percent() | Output |
--extend-perfdata-group | Extend perfdata from multiple perfdatas (methods in target are: min, max, average, sum) Syntax: --extend-perfdata-group=searchlabel,newlabel,target[,[newuom],[m in],[max]] Common examples: Sum wrong packets from all interfaces (with interface need --units-errors=absolute): --extend-perfdata-group=',packets_wrong,sum(packets_(discard |error)_(in|out))' Sum traffic by interface: --extend-perfdata-group='traffic_in_(.*),traffic_$1,sum(traf fic_(in|out)_$1)' | Output |
--change-short-output --change-long-output | Change short/long output display: --change-short-output=pattern | Output |
--change-exit | Change exit code: --change-exit=unknown=critical | Output |
--range-perfdata | Change perfdata range thresholds display: 1 = start value equals to '0' is removed, 2 = threshold range is not display. | Output |
--filter-uom | Filter UOM that match the regexp. | Output |
--opt-exit | Optional exit code for an execution error (i.e. wrong option provided, SSH connection refused, timeout, etc) (Default: unknown). | Output |
--output-ignore-perfdata | Remove perfdata from output. | Output |
--output-ignore-label | Remove label status from output. | Output |
--output-xml | Display output in XML format. | Output |
--output-json | Display output in JSON format. | Output |
--output-openmetrics | Display metrics in OpenMetrics format. | Output |
--output-file | Write output in file (can be used with json and xml options) | Output |
--disco-format | Display discovery arguments (if the mode manages it). | Output |
--disco-show | Display discovery values (if the mode manages it). | Output |
--float-precision | Set the float precision for thresholds (Default: 8). | Output |
--source-encoding | Set encoding of monitoring sources (In some case. Default: 'UTF-8'). | Output |
--hostname | IP Addr/FQDN of the host | Mode |
--port | Port used | Mode |
--timeout | Connection timeout in seconds (Default: 3) | Mode |
All available options for a given mode can be displayed by adding the
--help
parameter to the command:
sudo /usr/lib/centreon/plugins//centreon_protocol_udp.pl \
--plugin=apps::protocols::udp::plugin \
--mode=connection \
--help
Troubleshooting​
Please find the troubleshooting documentation for Centreon Plugins typical issues.