Skip to main content

Generic SNMP

Pack Assets​


The Centreon Plugin Pack Generic SNMP brings a host template:

  • App-Protocol-SNMP-custom

It brings the following service templates:

Service AliasService TemplateService DescriptionDefaultDiscovery
CollectionApp-Protocol-SNMP-CollectionCollect and compute SNMP datas
CollectionApp-Protocol-SNMP-Collection-DiscoveryCollect and compute SNMP datasX
Generic-ValueApp-Protocol-SNMP-Numeric-ValueCheck allowing to retrieve a digital value from an OID
Generic-ValueApp-Protocol-SNMP-String-ValueCheck allowing to retrieve a string value from an OID
UptimeApp-Protocol-SNMP-UptimeCheck equipment uptime using standard OID

Discovery rules​

Rule NameDescription
SNMP AgentsDiscover hosts by requesting their SNMP agents
SNMP v3 AgentsDiscover hosts by requesting their SNMP agents using SNMP v3

More information about discovering hosts automatically is available on the dedicated page.

Collected metrics & status​

Metric NameUnit


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.


  1. Install the plugin package on every Centreon poller expected to monitor Generic SNMP resources:
yum install centreon-plugin-Applications-Protocol-Snmp
  1. On the Centreon web interface, on page Configuration > Plugin Packs, install the Generic SNMP Centreon Plugin Pack.



  • 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.

SNMPEXTRAOPTIONSConfigure 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// \
--plugin=apps::protocols::snmp::plugin \
--mode=string-value \
--hostname= \
--snmp-community='my-snmp-community' \
--snmp-version=2c \
--oid='' \
--format-ok='' \
--format-warning='' \
--format-critical='' \
--format-unknown='' \
--warning-regexp= \
--critical-regexp= \

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// \
--plugin=apps::protocols::snmp::plugin \
--mode=string-value \

All available modes can be displayed by adding the --list-mode parameter to the command:

/usr/lib/centreon/plugins// \
--plugin=apps::protocols::snmp::plugin \


Please find the troubleshooting documentation for Centreon Plugins typical issues.