Skip to main content

Protocol SSH


The Secure Shell Protocol (SSH) is a secure network protocol for remote actions from one computer to another.

The Centreon Monitoring Connector Protocol SSH aims to collect the status and response time of a SSH server login.

Pack assets

Monitored objects

  • SSH server

Collected metrics & status

Metric nameDescriptionUnit
statusLogin status
response.time.secondsLogin response timeseconds


To use this pack, the SSH service must be properly configured on your server and the mandatory Host Macros must be properly configured. More info in the "Configuration" section here.


  1. Install the Centreon package on every Centreon poller expected to monitor a SSH server:
yum install centreon-plugin-Applications-Protocol-Ssh
  1. On the Centreon Web interface, install the Protocol SSH Centreon Monitoring Connector on the Configuration > Monitoring Connector Manager page



  • Log into Centreon and add a new Host through "Configuration > Hosts".
  • Fill the "Name", "Alias" & "IP Address / DNS" fields according to your SSH server settings
  • Select the Applications-Protocol-Ssh-custom template to apply to the Host
  • Once the template applied, some Macros marked as 'Mandatory' hereafter have to be configured.
EXTRAOPTIONSAny extra option you may want to add to every command_line (eg. a --verbose flag)

How to check in the CLI that the configuration is OK 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//  \
--plugin=apps::protocols::ssh::plugin \
--mode=login \
--hostname= \
--ssh-username='' \
--ssh-password='' \
--warning-status='' \
--critical-status='%{message} !~ /authentification succeeded/i' \
--warning-time='2' \
--critical-time='3' \

Expected command output is shown below:

OK : authentification succeeded | 'response.time.seconds'=1s;;;; 

This command would trigger a WARNING alarm if the login response time is reported as over 2 seconds (--warning-time='2') and a CRITICAL alarm over 3 seconds (--critical-time='3') or if the login status if different than "authentification succeeded" (--critical-status='%{message} !~ /authentification succeeded/i'').

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::ssh::plugin \
--mode=login \

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

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


UNKNOWN: Command error: Host key verification failed.

This error means means you haven't manually validated the target server fingerprint with ssh or plink on the Centreon poller.