Skip to main content


Pack assets

Monitored objects

The Pack Slack collects metrics for:

  • Channels
  • Members
  • Services

Discovery rules

Rule nameDescription
App-Slack-Restapi-Services-NameDiscover services and monitor their status

Monitored metrics

Metric nameDescriptionUnit of channels
channel_name#channel.members.countNumber of members in the channel


The Centreon Poller that will be used to monitor Slack must be able to reach the related servers ( on the Internet using the TCP/443 HTTPS port. The plugin allows you to use a proxy if needed.

ServiceAPI Token ?Scope


  1. Install the Centreon Plugin on every Poller:
yum install centreon-plugin-Applications-Slack-Restapi
  1. On the Centreon Web interface, install the Slack Centreon Pack on the Configuration > Monitoring Connector Manager page

Host configuration

  • Log into Centreon and add a new Host through Configuration > Hosts.
  • Fill the "IP Address / DNS" field with a localhost IP address (e.g
  • Select the App-Slack-Restapi-custom
SLACKAPIEXTRAOPTIONSAny extra option you may want to add to every command_line (eg. a --verbose flag)

This template will deploy one "Global" Service that will monitor all of the services. Use the Service Discovery feature if you wish to get one Service per slack service.

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 (Some of the parameters such as proxyurl have to be adjusted):

/usr/lib/centreon/plugins/ \
--plugin='apps::slack::restapi::plugin' \
--mode=services \
--proxyurl='' \
--filter-name='Connections|Messaging' \
--warning-status='%{status} eq "active" and %{type} eq "incident"' \
--critical-status='%{status} eq "active" and %{type} eq "outage"' \

Expected command output is shown below:

OK: All slack services are ok | ''=2;;;0;
Service 'Connections' status is ok
Service 'Messaging' status is ok

In this example, the Plugin gets the status Slack services (--plugin='apps::slack::restapi::plugin' --mode=services) by requesting the official Slack API. Only the status of the Connections and Messaging services will be displayed (--filter-name='Connections|Messaging').

This command would trigger a WARNING alert if one of the service is reported as degraded (--warning-status='%{status} eq "active" and %{type} eq "incident"') and a CRITICAL alert for a total outage on an service (--critical-status='%{status} eq "active" and %{type} eq "outage"').

All the filters that can be used as well as all the available thresholds parameters can be displayed by adding the --help parameter to the command:

/usr/lib/centreon/plugins/ \
--plugin='apps::slack::restapi::plugin' \
--mode=services \


Troubleshooting plugins