Blog Listing

Monday, 27 September 2021 22:52

Temperature Monitoring in the Datacentre Featured

Written by
Rate this item
(1 Vote)


Temperature monitoring in the datacenter


Monitoring of the environment parameters in a datacenter is very important for normal operation. Moreover, having clear picture of the current values, trends and deviations will ensure system uptime, optimize performance and reduce operation costs.


Properly setting alarm triggers will send early alarm notices and give operations staff more time to eliminate faults and manage repairs.


 There are no doubts that monitoring system must be adapted to the specific design and purpose of the infrastructure, equipment sensitivity, air conditioning system redundancy etc.


E.g. monitoring of high power density server racks in hot/cold aisle configuration is different from equipment container, exposed on the elements at a remote location.


Last, but not least, monitoring system design and operation falls outside the core tasks of network engineers and administrators, it often requires different and specific skills and malfunctioning or improper functioning often has no direct impact on operations - especially in early stage. It is therefore often underestimated and left “on hold” and “to solve it later” until disaster strikes.


In order to properly design, commission, operate and maintain our critical infrastructure monitoring system we need to identify the key parameters and characteristics such system must have.


In this article I will try to summarize all aspects we need to consider when solving this task-both general and specific ones. Your project may differ, but I will try to give you a solution, flexible enough to answer most needs, scopes and sizes.


What are the needs


Let’s see what problems we must address with our monitoring system.


-to be easy to install in diverse environments;


-to not disturb operation of other systems;


-to operate on 24/7/365 basis;


-to be in a redundant configuration;


-to keep history data to a predefined period of time;


-to be scalable and adjustable;


-to generate and clear alarm alerts via different media and at predefined thresholds with predefined severity level;


-to be easy to integrate it in other management and monitoring systems;


-to stay within reasonable budget limits;


-to occupy small space in the rack and in the datacenter and to use small power;


-to not interfere with other systems;


-to be able to express the data in different formats for preselected periods of time and to be easy to switch between general view and detailed view;


-to be able to backup configuration and stored data


-to easily add, delete and modify configuration, following current changes and demands;


And last, but not least – to comply with the standards




Talking about standards, it is important to mention ASHRAE 90.4, finalized and went into effect in 2016 and recently replaced by ASHRAE 90.4-2019.


ASHRAE 90.4 standard establishes the minimum energy efficiency requirements of data centers for design, construction, operation and maintenance and utilization of on-site or off-site renewable energy resources. The standard also stipulates means for temperature monitoring, requiring minimum 3 sensors at the inlet and outlet of every rack-one at the top, middle and bottom section. That means that monitoring system must maintain minimum six sensors per equipment rack.


The solution


There are many “turn-key” and ready to use monitoring solutions on the market. You can find information by searching the Internet or talking to your datacenter construction/maintenance contractor. In my opinion almost all of them are either not answering all problems, as listed above, or are too expensive, or require additional work/upgrade to be done in order to achieve full functionality. E.g. there are nice monitoring systems delivered with WEB interface only. They have SNMP interface but need extra work to integrate them in operator’s existing SNMP monitoring system or develop a complete new one, dedicated to environment monitoring only.


Below I would like to show how you can create and integrate excellent environment monitoring system within very small budget.


The components


We will need good, reliable and cheap sensors, easily addressable, with compact size and simple and easy deployable cabling.


We will need a server, capable of retrieving information, storing, visualizing and analyzing it and triggering alarms.


We will need converter, capable of converting sensor’s data into format, readable by the server.



For this project we have selected addressable 1-wire sensors. There are many options here, but our team likes very much DS18B20 sensor as shown on the picture below. It is water and dust proof with index of protection IP 67. The sensor has stainless steel protective cap with diameter just 6mm and length 50mm and comes with 1 m pre-terminated cable

The DS18B20 provides 9-bit to 12-bit Celsius temperature measurements and communicates over 1-Wire bus that, by definition requires only one data line and ground for communication. The operating temperature range is between -55°C to +125°C and is accurate to ±0.5°C over the range of -10°C to +85°C-more than enough for our datacenter monitoring requirements. It is important to mention that, for temperatures below 100°C the sensor can derive power directly from the data line (“parasite power”), eliminating the need for an external power supply. Although we don’t use this functionality, it might be useful in some particular applications.


Each sensor has a unique 64-bit serial code, which allows multiple sensors to function on the same 1-Wire bus. Thus, it is simple to use one controller to control many sensors distributed over a large area. The sensor converts temperature to 9, 10, 11 or 12-bit digital word in maximum 750ms. This corresponds to increments of 0.5 °C, 0.25 °C, 0.125 °C and 0.0625 °C respectively.


Looks quite good for our needs and with the price of less than 3 Euro seems to be the perfect fit. Please note that the price depends on number of pieces ordered. As we will need a minimum of 6 sensors per rack, bulk orders are preferred.


And of course, you may use different 1-wire sensors or the same sensor in different housing, depending on your particular needs and selected installation method.


Now how to mechanically install the sensor into the rack. There are many options-from simply placing it over a tray or equipment top, binding to 19” railing with cable ties, sticking it to the rack with hot glue gun, silicone, adhesive tape or other.


We do it with a PG 7 cable gland, attached to a stainless steel bracket with appropriate holes, depending on rack type and size. You can order several types of brackets for 19” racks, 21” racks, wall mount, ceiling mount etc. The bracket must have opening for PG 7 cable gland –typically 13 mm in diameter. The sensor is housed into the cable gland and cable may be attached to 1-Wire bus using  3 pcs. 3 poles Wago splicing connectors for 0,75-2,5 mm2 stranded wires.

For 1-Wire bus we use  3 x 0,75 mm2 cable with stranded wires, preferably with halogen-free insulation.

Now we have a perfect sensor and good means to install it in the rack or elsewhere in the datacenter. I would like to mention that this sensor is water/dust proof and UV resistant, due to the stainless-steel housing and is appropriate for outdoor use as well. At all our facilities we use DS18B20 sensors to monitor ambient temperature as well.


But good sensor is not enough to have a fully functional monitoring system. We need a server, where to collect, store, retrieve, visualize, process all the data coming from the sensors. We need to trigger alarms and set minimum and maximum values. How to achieve that. Obviously WEB interface of some ready-made systems is not sufficient.


What options do we have-our team focused on industrial control systems (ICS), including SCADA (Supervisory Control And Data Acquisition) System or SNMP (Simple Network Management Protocol) systems.


ICS are typically used in industries such as electric, water, waste water, oil and natural gas, transportation, manufacturing.


SNMP is a general purpose protocol which is widely used by the IT community to manage and monitor network equipment and is part of TCP/IP stack. The communications is generally between a management station and an agent-remote device. In broad terms SNMP consists of:


- at least one, but generally many, devices that contain an SNMP application component that exposes elements of its configuration or operation for management through the SNMP protocol. These devices are referred to as agents.


-at least one, but potentially more, SNMP node that is capable of initiating management commands and/or receiving monitoring notifications from other devices-These nodes are referred as manager.


As datacenter operations require deployment of at least one SNMP management system, we decided to focus on SNMP and base our environment monitoring on SNMP. I would like to stress that there is absolutely no reason to use separate SNMP system just for environment monitoring. It can be integrated into your existing SNMP system following techniques, described below.


There are plenty of paid and free SNMP monitoring tools. Among them are Solarwinds, PRTG, ManageEngine OpManager, Nagios, Pandora, Cacti, Zenoss Core and many more. Any can do the job but for our project we selected Zabbix 4. Zabbix is a splendid enterprise-level software designed to monitor everything from performance and availability of servers, network equipment to web applications and databases. It is a server-agent system architecture where you got to install the agent on server (client) to be monitored by the Zabbix server, but it supports SNMP agentless monitoring as well.


Zabbix server can be installed on different Linux distributions. For our project we used Ubuntu 18.04 on a dedicated server, but there is absolutely not a problem to use virtual machine as well. You can download Zabbix packages for your OS distribution from their web site


I’m not going to explain in details Zabbix server installation and technical requirements for server hardware. You can find relevant information in the Internet or in our other posts.


A Zabbix server can collect data from devices with SNMP agent versions 1, 2 or 3. Zabbix supports the standard SNMP MIB-2, as well as specific information on an Enterprise MIB. You can collect data by using the SNMP polling mode or receiving SNMP traps through the snmptrap daemon and zabbix_sender utility. Additionaly, you can get SNMP data with the use of dynamic indexes offering monitoring that is flexible and without performance degradation, since the resolution queries are cached.


As soon as data is collected, using different methods available in Zabbix, the process of evaluating collected data begins. Data evaluation rules, or trigger expression, in terms of Zabbix, provide logical definitions of a problem state for temperature data received from monitored sensors. When a certain threshold is reached, the trigger changes its state from OK to PROBLEM and also back when data is below threshold. In addition to that, Zabbix can be used to predict problems by analyzing the trend of incoming data and constructing a forecast of how things are likely to go, giving users the ability to act proactively.


Zabbix provides its users with very flexible, intelligent threshold definition options. While a threshold for trigger may be as simple as "bigger than x", it is possible to use all logical expressions, such as division, multiplication, not equal, logical AND and OR. This can be of use when defining threshold in case of extreme ambient temperatures, peak busy hours equipment load/power consumption or air conditioning maintenance periods.


Zabbix can use many different items obtained from different hosts to build a trigger expression and implement dependencies, when failure in one node is responsible for the failure of operation in many other parts of the environment. This allows to build very complex, intelligent thresholds, which minimize false positives and thus let administrators concentrate on real issues. That can eliminate “alarm flooding” situations, where one fault causes occurrence of many alarms in different nodes, related with that single node. Using complex trigger expression can diversified different alarms by severity level and not generate lower level alarms when higher level alarm is present. For example you don’t need “High temperature alarm” with severity level “Highl”from each 6 sensors of every rack if there is room temperature alarm with severity level “Disaster” caused by air conditioning malfunctioning or power outage.


Zabbix has also hysteresis function that allow to avoid flapping when incoming data is fluctuating around the simple threshold.


It is important to mention excellent graphs generation capabilities of Zabbix. You can use automatic graphs, generated on runtime from each item. Controls allow to change the displayed time period or choose predefined, often used time periods as day, week, month, last week to date etc.


On the picture below you can see temperature data of one sensor for last 1 day.


Users can create custom graphs where data of several items can be compared or ad-hoc graphs for several items, where you can create a comparison graph.


Zabbix offers creation of a different maps where the users can display values of different items over an optional background image for an user-friendly overview. An example of different racks in a computer room with top and bottom temperature sensor reading expression is shown on the picture below.