Skip to main content

Barco ClickShare Rest API

Monitoring Connector Assets​

Monitored Objects​

The Barco ClickShare Pack collects metrics and status from various Barco hardware devices (CSE 100, CSE-200+, CSE-800,...).

Collected Metrics​

Metric nameDescriptionUnit
device statusStatus of the device
cpu#hardware.temperature.celsiusCpu sensor temperatureC
pcie#hardware.temperature.celsiusPcie sensor temperatureC
sio#hardware.temperature.celsiusSio sensor temperatureC
cpu#hardware.fan.speed.rpmCpu fan speed (supported since api v1.11)rpm
process statusStatus of processes

Prerequisites​

To control your Barco ClickShare, the Rest API must be configured.

E.g: https://www.barco.com/en/support/knowledge-base/kb11350

Setup​

  1. Install the Centreon Plugin on every Poller:
yum install centreon-plugin-Hardware-Devices-Barco-Cs-Restapi
  1. On the Centreon Web interface in Configuration > Monitoring Connector Manager, install the Barco ClickShare Rest API Pack

Host configuration​

  • Add a new Host and apply the HW-Device-Barco-Cs-Restapi-custom Host Template

Once the template applied, some Macros have to be configured:

MandatoryNameDescription
XBARCOCSAPIPORTPort used (Default: 4001)
XBARCOCSAPIPROTOSpecify https if needed (Default: 'https')
XBARCOCSAPIUSERNAMEApi username
XBARCOCSAPIPASSWORDApi password
BARCOCSAPIEXTRAOPTIONSAny extra option you may want to add to the command (eg. a --verbose flag)

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

Once the Plugin installed, log into your Poller using the centreon-engine user account and test by running the following command (Parameters such as api-username or api-password have to be adjusted):

/usr/lib/centreon/plugins/centreon_barco_cs_restapi.pl \
--plugin=hardware::devices::barco::cs::restapi::plugin \
--mode=device \
--hostname='10.30.2.79' \
--port='4001' \
--proto='https' \
--api-username='myapiusername' \
--api-password='myapipassword' \
--warning-cpu-temperature='55' \
--critical-cpu-temperature='60' \
--verbose

Output example:

OK: device is ok | 'cpu#hardware.temperature.celsius'=52C;0:55;0:60;; 'pcie#hardware.temperature.celsius'=50C;0:55;0:60;;
checking device
status: ok
temperature cpu 52 C, pcie 50 C
process 'Button Agent' status is running
process 'ClickShare Server' status is running
process 'Config Manager' status is running
process 'DBus Daemon' status is running
process 'DHCP Server' status is running
process 'Device Daemon' status is running
process 'Graphics Server' status is running
process 'Job Scheduler' status is running
process 'LED Control' status is running
process 'Miracast Server' status is running
process 'Process Monitor' status is running
process 'System Logging' status is running
process 'WebUI Server' status is running
process 'Wifi Access Point Daemon' status is running

The command above monitors device (--mode=device).

It uses api-username (--api-username='myapiusername'), an api-password (--api-password='myapipassword') and it connects to the host 10.30.2.79 (--hostname='10.30.2.79') on the port 4001 (--port='4001') using https (--proto='https').

All the options that can be used with this plugin can be found over the --help command:

/usr/lib/centreon/plugins/centreon_barco_cs_restapi.pl \
--plugin=hardware::devices::barco::cs::restapi::plugin \
--mode=device \
--help

Troubleshooting​

Troubleshooting plugins