Skip to main content

IBM HMC SSH

Monitoring Connector Assets

Monitored Objects

The Monitoring Connector IBM HMC SSH collects metrics for:

  • Hardware errors
  • Led status

Collected Metrics

No metrics.

Prerequisites

The centreon-engine user performs a SSH connection to a remote system user. This user must have enough privileges to run lssvcevents and lsled commands.

Setup

  1. Install the Centreon Plugin on every Poller:
yum install centreon-plugin-Hardware-Servers-Ibm-Hmc-Ssh
  1. On the Centreon Web interface in Configuration > Monitoring Connector Manager, install the IBM HMC SSH Monitoring Connector

Configuration

  • Add a new Host and apply the HW-Server-IBM-Hmc-SSH-custom Host Template

3 SSH backends are available to connect to the remote server: sshcli, plink and libssh which are detailed below.

MandatoryNameDescription
XSSHBACKENDName of the backend: sshcli
XSSHUSERNAMEBy default, it uses the user running process centengine on your Poller
SSHPASSWORDCannot be used with backend. Only ssh key authentication
SSHPORTBy default: 22
SSHEXTRAOPTIONSCustomize it with your own if needed. E.g.: --ssh-priv-key=/user/.ssh/id_rsa

Warning With that backend, you have to validate the target server fingerprint manually (with the SSHUSERNAME used).

FAQ

How to test the Plugin and what are the main options for?

Once the plugin 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_ibm_hmc_ssh.pl \
--plugin=hardware::server::ibm::hmc::ssh::plugin \
--mode=led-status \
--hostname=10.30.2.114 \
--ssh-username=centreon \
--ssh-password='centreon-password' \
--ssh-backend=libssh \
--verbose

Expected command output is shown below:

OK: System 'Server-8203-E4Z-SNE6DFXA5' physical led state : off - All virtual partition status are ok |
System 'Server-8203-E4Z-SNE6DFXA5' physical led state : off
Virtual partition 'Server-8203-E4Z-SNE6DFXA5:LPAR1' led state : off
Virtual partition 'Server-8203-E4Z-SNE6DFXA5:LPAR2' led state : off

The command above gets the led status of IBM HMC (--mode=led-status). It uses a SSH username centreon (--ssh-username=centreon), a SSH password centreon-password (--ssh-password='centreon-password'), uses a SSH backend libssh (--ssh-backend='libssh') and it connects to the host 10.30.2.114 (--hostname=10.30.2.114) on the SSH default port 22 (--ssh-port=22).

All the options as well as all the available thresholds can be displayed by adding the --help parameter to the command:

/usr/lib/centreon/plugins/centreon_ibm_hmc_ssh.pl \
--plugin=hardware::server::ibm::hmc::ssh::plugin \
--mode=led-status \
--help

Troubleshooting

I have that error message: UNKNOWN: Command error: Host key verification failed.. What does it mean ?

It means you haven't manually validated the target server fingerprint with ssh or plink on the Centreon Poller.