Skip to main content

Lenovo RackSwitch SNMP

Pack Assets​

Templates​

The Centreon Pack Lenovo RackSwitch SNMP brings 1 host template:

  • Net-Lenovo-Rackswitch-SNMP-custom

It brings the following Service Templates:

Service AliasService TemplateDefaultDiscovery
CpuNet-Lenovo-Rackswitch-Cpu-SNMPX
HardwareNet-Lenovo-Rackswitch-Hardware-SNMPX
InterfacesNet-Lenovo-Rackswitch-Interfaces-SNMPX
MemoryNet-Lenovo-Rackswitch-Memory-SNMPX
UptimeNet-Lenovo-Rackswitch-Uptime-SNMPX

Discovery rules​

Rule nameDescription
Net-Lenovo-Rackswitch-SNMP-Interface-NameDiscover network interfaces and monitor utilization

Collected metrics & status​

Metric nameDescriptionUnit
cpu.utilization.5s.percentageCPU utilization for the last 5 seconds%
cpu.utilization.1m.percentageCPU utilization for the last minute%
cpu.utilization.5m.percentageCPU utilization for the last 5 minutes%

Prerequisites​

SNMP Configuration​

To use this pack, the SNMP service must be properly configured on your device.

Network flow​

The target equipment must be reachable from the Centreon Poller on the UDP/161 SNMP port.

Setup​

  1. Install the Centreon package on every Centreon poller expected to monitor Lenovo RackSwitch SNMP resources:
yum install centreon-plugin-Network-Lenovo-Rackswitch-Snmp
  1. On the Centreon Web interface, install the Lenovo RackSwitch SNMP Centreon Pack on the Configuration > Monitoring Connector Manager page.

Configuration​

Host​

  • Log into Centreon and add a new Host through Configuration > Hosts
  • Fill the Name, Alias & IP Address / DNS fields according to your Lenovo RackSwitch SNMP server settings
  • Select the Net-Lenovo-Rackswitch-SNMP-custom template to apply to the Host

When using SNMP v3, use the SNMPEXTRAOPTIONS Macro to add specific authentication parameters More information in the Troubleshooting SNMP section.

MandatoryNameDescription
SNMPEXTRAOPTIONS(Default: '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 CLI using the centreon-engine user account and test the Plugin by running the following command:

/usr/lib/centreon/plugins/centreon_lenovo_rackswitch_snmp.pl \
--plugin=network::lenovo::rackswitch::snmp::plugin \
--mode=memory \
--hostname='10.0.0.1' \
--snmp-version='2c' \
--snmp-community='my-snmp-community' \
--warning-usage-prct='' \
--critical-usage-prct='' \
--verbose

The expected command output is shown below:

OK: Memory total: 502.43 MB used: 164.67 MB (32.77%) free: 337.76 MB (67.23%) | 'memory.usage.bytes'=172666880B;;;0;526831616 'memory.free.bytes'=354164736B;;;0;526831616 'memory.usage.percentage'=32.77%;;;0;100

All available options for a given mode can be displayed by adding the --help parameter to the command:

/usr/lib/centreon/plugins/centreon_lenovo_rackswitch_snmp.pl \
--plugin=network::lenovo::rackswitch::snmp::plugin \
--mode=memory \
--help

All available options for a given mode can be displayed by adding the --list-mode parameter to the command:

/usr/lib/centreon/plugins/centreon_lenovo_rackswitch_snmp.pl \
--plugin=network::lenovo::rackswitch::snmp::plugin \
--list-mode

Troubleshooting​

Please find all the troubleshooting documentation for the Centreon Plugins in the dedicated page