Cambium CnPilot SNMP
Pack assets​
Templates​
The Monitoring Connector Cambium cnPilot SNMP brings a host template:
- Net-Cambium-cnPilot-SNMP
The connector brings the following service templates (sorted by the host template they are attached to):
- Net-Cambium-cnPilot-SNMP
- Not attached to a host template
Service Alias | Service Template | Service Description |
---|---|---|
Connection status | Net-Cambium-Cnpilot-Connection-status-SNMP | Check connection status |
Cpu | Net-Cambium-Cnpilot-Cpu-SNMP | Check CPU hardware |
Memory | Net-Cambium-Cnpilot-Memory-SNMP | Check memory hardware |
The services listed above are created automatically when the Net-Cambium-cnPilot-SNMP host template is used.
Service Alias | Service Template | Service Description | Discovery |
---|---|---|---|
Interfaces | Net-Cambium-Cnpilot-Interfaces-SNMP | Check network interfaces | X |
Radios | Net-Cambium-Cnpilot-Radios-SNMP | Check radios | X |
The services listed above are not created automatically when a host template is applied. To use them, create a service manually, then appy the service template you want.
If Discovery is checked, it means a service discovery rule exists for this service template.
Discovery rules​
Service discovery​
Rule name | Description |
---|---|
Net-Cambium-Cnpilot-SNMP-Interfaces-Name | Discover network interfaces and monitor bandwidth utilization |
Net-Cambium-Cnpilot-SNMP-Radios-Name | Discover radios |
More information about discovering services automatically is available on the dedicated page and in the following chapter.
Collected metrics & status​
Here is the list of services for this connector, detailing all metrics linked to each service.
- Connection status
- Cpu
- Interfaces
- Memory
- Radios
Metric name | Unit |
---|---|
connection#connection-status | N/A |
Metric name | Unit |
---|---|
cpu#cpu.usage.percentage | % |
Metric name | Unit |
---|---|
int#interface.traffic.in.bitspersecond | b/s |
int#interface.traffic.out.bitspersecond | b/s |
Metric name | Unit |
---|---|
memory#memory.usage.percentage | % |
Metric name | Unit |
---|---|
radios#radio.clients.connected.count | count |
radios#status | N/A |
radios#radio.interface.noise.floor.dbm | dBm |
radios#radio.interface.interference.dbm | dBm |
radios#radio.interface.traffic.in.bitspersecond | b/s |
radios#radio.interface.traffic.out.bitspersecond | b/s |
Prerequisites​
SNMP Configuration​
To use this pack, the SNMP service must be properly configured on your ressource. Please refer to the official documentation from XXX:\
Network flow​
The target server must be reachable from the Centreon poller on the UDP/161 SNMP port.
Installing the monitoring connector​
Pack​
- If the platform uses an online license, you can skip the package installation instruction below as it is not required to have the connector 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-network-cambium-cnpilot-snmp
dnf install centreon-pack-network-cambium-cnpilot-snmp
apt install centreon-pack-network-cambium-cnpilot-snmp
yum install centreon-pack-network-cambium-cnpilot-snmp
- Whatever the license type (online or offline), install the Cambium cnPilot SNMP connector 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 8
- Alma / RHEL / Oracle Linux 9
- Debian 11 & 12
- CentOS 7
dnf install centreon-plugin-Network-Cambium-cnPilot-Snmp
dnf install centreon-plugin-Network-Cambium-cnPilot-Snmp
apt install centreon-plugin-network-cambium-cnpilot-snmp
yum install centreon-plugin-Network-Cambium-cnPilot-Snmp
Using the monitoring connector​
Using a host template provided by the connector​
- 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 Net-Cambium-cnPilot-SNMP-custom template to the host.
When using SNMP v3, use the SNMPEXTRAOPTIONS macro to add specific authentication parameters. More information in the Troubleshooting SNMP section.
Macro | Description | Default value | Mandatory |
---|---|---|---|
SNMPEXTRAOPTIONS | Any extra option you may want to add to every command (E.g. a --verbose flag). All options are listed here |
- Deploy the configuration. The host appears in the list of hosts, and on page Resources Status. The command that is sent by the connector is displayed in the details panel of the host: it shows the values of the macros.
Using a service template provided by the connector​
- If you have used a host template and checked Create Services linked to the Template too, the services linked to the template have been created automatically, using the corresponding service templates. Otherwise, create manually the services you want and apply a service template to them.
- Fill in the macros you want (e.g. to change the thresholds for the alerts). Some macros are mandatory (see the table below).
- Connection status
- Cpu
- Interfaces
- Memory
- Radios
Macro | Description | Default value | Mandatory |
---|---|---|---|
EXTRAOPTIONS | Any extra option you may want to add to the command (E.g. a --verbose flag). All options are listed here |
Macro | Description | Default value | Mandatory |
---|---|---|---|
WARNINGCPUUSAGEPRCT | |||
CRITICALCPUUSAGEPRCT | |||
EXTRAOPTIONS | Any extra option you may want to add to the command (E.g. a --verbose flag). All options are listed here | --verbose |
Macro | Description | Default value | Mandatory |
---|---|---|---|
OIDFILTER | Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr) | ifname | |
OIDDISPLAY | Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr) | ifname | |
INTERFACENAME | Set the interface (number expected) ex: 1,2,... (empty means 'check all interface') | ||
WARNINGINDISCARD | Thresholds | ||
CRITICALINDISCARD | Thresholds | ||
WARNINGINERROR | Thresholds | ||
CRITICALINERROR | Thresholds | ||
WARNINGINTRAFFIC | Thresholds | ||
CRITICALINTRAFFIC | Thresholds | ||
WARNINGOUTDISCARD | Thresholds | ||
CRITICALOUTDISCARD | Thresholds | ||
WARNINGOUTERROR | Thresholds | ||
CRITICALOUTERROR | Thresholds | ||
WARNINGOUTTRAFFIC | Thresholds | ||
CRITICALOUTTRAFFIC | Thresholds | ||
CRITICALSTATUS | Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). Can used special variables like: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} | %{admstatus} eq "up" and %{opstatus} !~ /up | dormant/ |
WARNINGSTATUS | Set warning threshold for status. Can used special variables like: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} | ||
EXTRAOPTIONS | Any extra option you may want to add to the command (E.g. a --verbose flag). All options are listed here |
Macro | Description | Default value | Mandatory |
---|---|---|---|
WARNINGMEMORYUSAGEPRCT | |||
CRITICALMEMORYUSAGEPRCT | |||
EXTRAOPTIONS | Any extra option you may want to add to the command (E.g. a --verbose flag). All options are listed here | --verbose |
Macro | Description | Default value | Mandatory |
---|---|---|---|
FILTERNAME | Filter interface by MACAdress | ||
WARNINGCLIENTS | |||
CRITICALCLIENTS | |||
WARNINGINTERFERENCE | Thresholds | ||
CRITICALINTERFERENCE | Thresholds | ||
WARNINGSTATUS | Set warning threshold for status. Can used special variables like: %{status}, %{name} | ||
CRITICALSTATUS | Set critical threshold for status (Default: '%{status} eq "expired"'). Can used special variables like: %{status}, %{name} | ||
WARNINGTRAFFICIN | Thresholds | ||
CRITICALTRAFFICIN | Thresholds | ||
WARNINGTRAFFICOUT | Thresholds | ||
CRITICALTRAFFICOUT | Thresholds | ||
EXTRAOPTIONS | Any extra option you may want to add to the command (E.g. a --verbose flag). All options are listed here |
- Deploy the configuration. The service appears in the list of service, and on page Resources Status. The command that is sent by the connector is displayed in the details panel of the service: it shows the values of the macros.
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
). Test that the connector
is able to monitor a server using a command like this one (replace the sample values by yours):
/usr/lib/centreon/plugins//centreon_cambium_cnpilot.pl \
--plugin=network::cambium::cnpilot::snmp::plugin \
--mode=interfaces \
--hostname='10.0.0.1' \
--snmp-version='2c' \
--snmp-community='my-snmp-community' \
--interface='' \
--name \
--add-status \
--add-traffic \
--add-errors \
--warning-status='' \
--critical-status='%\{admstatus\} eq "up" and %\{opstatus\} !~ /up|dormant/' \
--warning-in-traffic='' \
--critical-in-traffic='' \
--warning-out-traffic='' \
--critical-out-traffic='' \
--warning-in-discard='' \
--critical-in-discard='' \
--warning-out-discard='' \
--critical-out-discard='' \
--warning-in-error='' \
--critical-in-error='' \
--warning-out-error='' \
--critical-out-error='' \
--oid-filter='ifname' \
--oid-display='ifname' \
The expected command output is shown below:
OK: Traffic In : 321.02b/s (-) Traffic Out : 382.02b/s (-) | 'interface.traffic.in.bitspersecond'=59b/s;;;0; 'interface.traffic.out.bitspersecond'=18b/s;;;0;
Troubleshooting​
Please find the troubleshooting documentation for Centreon Plugins typical issues.
Available modes​
All available modes can be displayed by adding the --list-mode
parameter to
the command:
/usr/lib/centreon/plugins//centreon_cambium_cnpilot.pl \
--plugin=network::cambium::cnpilot::snmp::plugin \
--list-mode
The plugin brings the following modes:
Mode | Linked service template |
---|---|
connection-status | Net-Cambium-Cnpilot-Connection-status-SNMP |
cpu | Net-Cambium-Cnpilot-Cpu-SNMP |
interfaces | Net-Cambium-Cnpilot-Interfaces-SNMP |
list-interfaces | Used for service discovery |
list-radios | Used for service discovery |
memory | Net-Cambium-Cnpilot-Memory-SNMP |
radios | Net-Cambium-Cnpilot-Radios-SNMP |
Available options​
Generic options​
All generic options are listed here:
Option | Description | Type |
---|---|---|
--mode | Define the mode in which you want the plugin to be executed (see--list-mode). | Global |
--dyn-mode | Specify a mode with the module's path (advanced). | Global |
--list-mode | List all available modes. | Global |
--mode-version | Check minimal version of mode. If not, unknown error. | Global |
--version | Display the plugin's version. | Global |
--pass-manager | Define the password manager you want to use. Supported managers are: environment, file, keepass, hashicorpvault and teampass. | Global |
--verbose | Display extended status information (long output). | Output |
--debug | Display debug messages. | Output |
--filter-perfdata | Filter perfdata that match the regexp. Eg: adding --filter-perfdata='avg' will remove all metrics that do not contain 'avg' from performance data. | Output |
--filter-perfdata-adv | Filter perfdata based on a "if" condition using the following variables: label, value, unit, warning, critical, min, max. Variables must be written either %{variable} or %(variable). Eg: adding --filter-perfdata-adv='not (%(value) == 0 and %(max) eq "")' will remove all metrics whose value equals 0 and that don't have a maximum value. | Output |
--explode-perfdata-max | Create a new metric for each metric that comes with a maximum limit. The new metric will be named identically with a '_max' suffix). Eg: it will split 'used_prct'=26.93%;0:80;0:90;0;100 into 'used_prct'=26.93%;0:80;0:90;0;100 'used_prct_max'=100%;;;; | 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 | Modify the short/long output that is returned by the plugin. Syntax: --change-short-output=pattern | Output |
--change-exit | Replace an exit code with one of your choice. Eg: adding --change-exit=unknown=critical will result in a CRITICAL state instead of an UNKNOWN state. | 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 | Masks the units when they don't match the given regular expression. | Output |
--opt-exit | Replace the exit code in case of an execution error (i.e. wrong option provided, SSH connection refused, timeout, etc). Default: unknown. | Output |
--output-ignore-perfdata | Remove all the metrics from the service. The service will still have a status and an output. | Output |
--output-ignore-label | Remove the status label from the beginning of the output. Eg: 'OK: Ram Total:...' will become 'Ram Total:...' | 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 cases. Default: 'UTF-8'). | Output |
--hostname | Hostname to query (required). | SNMP |
--snmp-community | Read community (defaults to public). | SNMP |
--snmp-version | Version: 1 for SNMP v1 (default), 2 for SNMP v2c, 3 for SNMP v3. | SNMP |
--snmp-port | Port (default: 161). | SNMP |
--snmp-timeout | Timeout in secondes (default: 1) before retries. | SNMP |
--snmp-retries | Set the number of retries (default: 5) before failure. | SNMP |
--maxrepetitions | Max repetitions value (default: 50) (only for SNMP v2 and v3). | SNMP |
--subsetleef | How many oid values per SNMP request (default: 50) (for get_leef method. Be cautious when you set it. Prefer to let the default value). | SNMP |
--snmp-autoreduce | Auto reduce SNMP request size in case of SNMP errors (By default, the divisor is 2). | SNMP |
--snmp-force-getnext | Use snmp getnext function (even in snmp v2c and v3). | SNMP |
--snmp-username | Security name (only for SNMP v3). | SNMP |
--authpassphrase | Authentication protocol pass phrase. | SNMP |
--authprotocol | Authentication protocol: MD5|SHA. Since net-snmp 5.9.1: SHA224|SHA256|SHA384|SHA512. | SNMP |
--privpassphrase | Privacy protocol pass phrase | SNMP |
--privprotocol | Privacy protocol: DES|AES. Since net-snmp 5.9.1: AES192|AES192C|AES256|AES256C. | SNMP |
--contextname | Context name | SNMP |
--contextengineid | Context engine ID | SNMP |
--securityengineid | Security engine ID | SNMP |
--snmp-errors-exit | Exit code for SNMP Errors (default: unknown) | SNMP |
--snmp-tls-transport | TLS Transport communication used (can be: 'dtlsudp', 'tlstcp'). | SNMP |
--snmp-tls-our-identity | Our X.509 identity to use, which should either be a fingerprint or the filename that holds the certificate. | SNMP |
--snmp-tls-their-identity | The remote server's identity to connect to, specified as either a fingerprint or a file name. Either this must be specified, or the hostname below along with a trust anchor. | SNMP |
--snmp-tls-their-hostname | The remote server's hostname that is expected. If their certificate was signed by a CA then their hostname presented in the certificate must match this value or the connection fails to be established (to avoid man-in-the-middle attacks). | SNMP |
--snmp-tls-trust-cert | A trusted certificate to use as trust anchor (like a CA certificate) for verifying a remote server's certificate. If a CA certificate is used to validate a certificate then the TheirHostname parameter must also be specified to ensure their presented hostname in the certificate matches. | SNMP |
Modes options​
All modes specific options are listed here:
- Connection status
- Cpu
- Interfaces
- Memory
- Radios
Option | Description | Type |
---|---|---|
--filter-ap | Filter on one or several AP. | Mode |
--warning-connection-status | Set warning threshold for status. Can used special variables like: %{status}, %{name} | Mode |
--critical-connection-status | Set critical threshold for status. Can used special variables like: %{status}, %{name} | Mode |
Option | Description | Type |
---|---|---|
--filter-ap | Filter on one AP name. | Mode |
--warning | Warning threshold for CPU. | Mode |
--critical | Critical threshold for CPU. | Mode |
Option | Description | Type |
---|---|---|
--memcached | Memcached server to use (only one server). | Retention |
--redis-server | Redis server to use (only one server). Syntax: address[:port] | Retention |
--redis-attribute | Set Redis Options (--redis-attribute="cnx_timeout=5"). | Retention |
--redis-db | Set Redis database index. | Retention |
--failback-file | Failback on a local file if redis connection failed. | Retention |
--memexpiration | Time to keep data in seconds (Default: 86400). | Retention |
--statefile-dir | Directory for statefile (Default: '/var/lib/centreon/centplugins'). | Retention |
--statefile-suffix | Add a suffix for the statefile name (Default: ''). | Retention |
--statefile-concat-cwd | Concat current working directory with option '--statefile-dir'. Useful on Windows when plugin is compiled. | Retention |
--statefile-format | Format used to store cache (can be: 'dumper', 'storable', 'json'). | Retention |
--statefile-key | Key to encrypt/decrypt cache. | Retention |
--statefile-cipher | Cipher to encrypt cache (Default: 'AES'). | Retention |
--add-global | Check global port statistics (By default if no --add-* option is set). | Mode |
--add-status | Check interface status. | Mode |
--add-duplex-status | Check duplex status (with --warning-status and --critical-status). | Mode |
--add-traffic | Check interface traffic. | Mode |
--add-errors | Check interface errors. | Mode |
--add-cast | Check interface cast. | Mode |
--add-speed | Check interface speed. | Mode |
--add-volume | Check interface data volume between two checks (not supposed to be graphed, useful for BI reporting). | Mode |
--check-metrics | If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). | Mode |
--warning-status | Set warning threshold for status. Can used special variables like: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} | Mode |
--critical-status | Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). Can used special variables like: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} | Mode |
--warning-* --critical-* | Thresholds. Can be: 'total-port', 'total-admin-up', 'total-admin-down', 'total-oper-up', 'total-oper-down', 'in-traffic', 'out-traffic', 'in-error', 'in-discard', 'out-error', 'out-discard', 'in-ucast', 'in-bcast', 'in-mcast', 'out-ucast', 'out-bcast', 'out-mcast', 'speed' (b/s). | Mode |
--units-traffic | Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', 'bps', 'counter'). | Mode |
--units-errors | Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). | Mode |
--units-cast | Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). | Mode |
--nagvis-perfdata | Display traffic perfdata to be compatible with nagvis widget. | Mode |
--interface | Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). | Mode |
--name | Allows to use interface name with option --interface instead ofinterface oid index (Can be a regexp) | Mode |
--speed | Set interface speed for incoming/outgoing traffic (in Mb). | Mode |
--speed-in | Set interface speed for incoming traffic (in Mb). | Mode |
--speed-out | Set interface speed for outgoing traffic (in Mb). | Mode |
--map-speed-dsl | Get interface speed configuration for interface type 'adsl' and 'vdsl2'. Syntax: --map-speed-dsl=interface-src-name,interface-dsl-name E.g: --map-speed-dsl=Et0.835,Et0-vdsl2 | Mode |
--force-counters64 | Force to use 64 bits counters only. Can be used to improve performance. | Mode |
--force-counters32 | Force to use 32 bits counters (even in snmp v2c and v3). Should be used when 64 bits counters are buggy. | Mode |
--reload-cache-time | Time in minutes before reloading cache file (default: 180). | Mode |
--oid-filter | Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). | Mode |
--oid-display | Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). | Mode |
--oid-extra-display | Add an OID to display. | Mode |
--display-transform-src | Regexp src to transform display value. | Mode |
--display-transform-dst | Regexp dst to transform display value. | Mode |
--show-cache | Display cache interface datas. | Mode |
Option | Description | Type |
---|---|---|
--filter-ap | Filter on one or several AP. | Mode |
--warning | Warning threshold for Memory. | Mode |
--critical | Critical threshold for Memory. | Mode |
Option | Description | Type |
---|---|---|
--memcached | Memcached server to use (only one server). | Retention |
--redis-server | Redis server to use (only one server). Syntax: address[:port] | Retention |
--redis-attribute | Set Redis Options (--redis-attribute="cnx_timeout=5"). | Retention |
--redis-db | Set Redis database index. | Retention |
--failback-file | Failback on a local file if redis connection failed. | Retention |
--memexpiration | Time to keep data in seconds (Default: 86400). | Retention |
--statefile-dir | Directory for statefile (Default: '/var/lib/centreon/centplugins'). | Retention |
--statefile-suffix | Add a suffix for the statefile name (Default: ''). | Retention |
--statefile-concat-cwd | Concat current working directory with option '--statefile-dir'. Useful on Windows when plugin is compiled. | Retention |
--statefile-format | Format used to store cache (can be: 'dumper', 'storable', 'json'). | Retention |
--statefile-key | Key to encrypt/decrypt cache. | Retention |
--statefile-cipher | Cipher to encrypt cache (Default: 'AES'). | Retention |
--filter-counters | Only display some counters (regexp can be used). Example: --filter-counters='status' | Mode |
--filter-name | Filter interface by MACAdress | Mode |
--warning-status | Set warning threshold for status. Can used special variables like: %{status}, %{name} | Mode |
--critical-status | Set critical threshold for status (Default: '%{status} eq "expired"'). Can used special variables like: %{status}, %{name} | Mode |
--warning-* --critical-* | Thresholds. Can be: 'clients-connected', 'noise-floor', 'interference', 'traffic-in', 'traffic-out'. | Mode |
All available options for a given mode can be displayed by adding the
--help
parameter to the command:
/usr/lib/centreon/plugins//centreon_cambium_cnpilot.pl \
--plugin=network::cambium::cnpilot::snmp::plugin \
--mode=interfaces \
--help