Generic SNMP
Pack Assetsβ
Templatesβ
The Centreon Plugin Pack Generic SNMP brings a host template:
- App-Protocol-SNMP-custom
It brings the following service templates:
Service Alias | Service Template | Service Description | Default | Discovery |
---|---|---|---|---|
Collection | App-Protocol-SNMP-Collection | Collect and compute SNMP datas | ||
Collection | App-Protocol-SNMP-Collection-Discovery | Collect and compute SNMP datas | X | |
Generic-Value | App-Protocol-SNMP-Numeric-Value | Check allowing to retrieve a digital value from an OID | ||
Generic-Value | App-Protocol-SNMP-String-Value | Check allowing to retrieve a string value from an OID | ||
Uptime | App-Protocol-SNMP-Uptime | Check equipment uptime using standard OID |
Discovery rulesβ
- Host
- Service
Rule Name | Description |
---|---|
SNMP Agents | Discover hosts by requesting their SNMP agents |
SNMP v3 Agents | Discover hosts by requesting their SNMP agents using SNMP v3 |
More information about discovering hosts automatically is available on the dedicated page.
Rule Name | Description |
---|---|
App-Protocol-SNMP-Collection-Name |
More information about discovering services automatically is available on the dedicated page and in the following chapter.
Collected metrics & statusβ
- Collection
- Generic-Value
- Uptime
Metric Name | Unit |
---|---|
selections#select |
Could not retrieve metrics
Metric Name | Unit |
---|---|
uptime |
Prerequisitesβ
SNMP Configurationβ
To use this pack, the SNMP service must be properly configured on your device. Refer to the documentation of the operating systems or ISV to achieve this.
Network flowβ
The target server must be reachable from the Centreon poller on the UDP/161 SNMP port.
Setupβ
- Online License
- Offline License
- Install the plugin package on every Centreon poller expected to monitor Generic SNMP resources:
yum install centreon-plugin-Applications-Protocol-Snmp
- On the Centreon web interface, on page Configuration > Plugin Packs, install the Generic SNMP Centreon Plugin Pack.
- Install the plugin package on every Centreon poller expected to monitor Generic SNMP resources:
yum install centreon-plugin-Applications-Protocol-Snmp
- Install the Generic SNMP Centreon Plugin Pack RPM on the Centreon central server:
yum install centreon-pack-applications-protocol-snmp
- On the Centreon web interface, on page Configuration > Plugin Packs, install the Generic SNMP Centreon Plugin Pack.
Configurationβ
Hostβ
- Log into Centreon and add a new host through Configuration > Hosts.
- Fill the Name, Alias & IP Address/DNS fields according to your Generic SNMP server settings.
- Apply the App-Protocol-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.
Mandatory | Macro | Description |
---|---|---|
SNMPCOLLECTIONCONFIG | ||
SNMPEXTRAOPTIONS | Configure your own SNMPv3 credentials combo |
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:
/usr/lib/centreon/plugins//centreon_generic_snmp.pl \
--plugin=apps::protocols::snmp::plugin \
--mode=string-value \
--hostname=10.0.0.1 \
--snmp-community='my-snmp-community' \
--snmp-version=2c \
--oid='' \
--format-ok='' \
--format-warning='' \
--format-critical='' \
--format-unknown='' \
--warning-regexp= \
--critical-regexp= \
--use-new-perfdata
The expected command output is shown below:
OK: |
All available options for a given mode can be displayed by adding the
--help
parameter to the command:
/usr/lib/centreon/plugins//centreon_generic_snmp.pl \
--plugin=apps::protocols::snmp::plugin \
--mode=string-value \
--help
All available modes can be displayed by adding the --list-mode
parameter to
the command:
/usr/lib/centreon/plugins//centreon_generic_snmp.pl \
--plugin=apps::protocols::snmp::plugin \
--list-mode
Troubleshootingβ
Please find the troubleshooting documentation for Centreon Plugins typical issues.