- Created By : 09-Oct-2018
- Published In: Tutorial
- Hits: 905
In this article, the example of the simplest configuration of a Nagios IT infrastructure monitoring is shown that is necessary for working with NetPing devices for server room monitoring, on the example of UniPing v3. The largest advantage of this monitoring system is its flexibility (simplicity of writing user plugins for monitoring of virtually anything that can belong to a system engineer's job), and its disadvantage is a relative complexity of its configuration (configuration is performed through editing a configurational file).
To configure temperature monitoring in a server room using Nagios and UniPing v3, you will need:
- a monitoring server running under Ubuntu 9.04 Server, with an IP address 192.168.2.230;
- a device for environment monitoring of server rooms UniPing v3, with an IP address 192.168.2.10, and SNMP-Community «SWITCH», access to which is allowed at least from a monitoring server.
It is difficult to imagine a modern world without accurate timing. In many spheres of life, there is a need to have a very accurate clock, and often the accuracy must be significantly higher than the one of clocks used by people in everyday life. For example, requirements for the clock accuracy in flight control systems, spacecraft control systems, or military systems are the highest. Also, clocks of high accuracy are necessary for systems with simpler functions, such as billing systems and charging systems of cell phone operators and Internet providers, as well as the systems of bank transactions, in trading systems, manufacturing, and scientific complexes. In local networks, user authentication protocol Kerberos also utilizes comparing the clock of a controller domain with the clock of users' workstations. In computer networks, a synchronization is usually performed with time servers using an NTP protocol or its simplified variety called SNTP. In this article, we will examine peculiarities, differences, and examples of using these protocols.
In this article, we will examine the configuring of a Monit monitoring system for the operation with NetPing devices for monitoring server rooms. Monit is a light system for server monitoring that is installed in a server and provides a possibility to send notifications if the issues are discovered. Besides, Monit can autonomously execute the action determined by you as a reaction to specified events. It is an independent daemon that works from the user root. The simplicity of the system is its main advantage. In a minimal configuration, having the executable and the configuration file is enough. A functionality of the system can be extended by using scripts.
To implement the operation of the example of server room monitoring on the basis of Monit and NetPing server room environmental monitoring units, we will need:
We continue publishing a series of articles on implementing the integration of NetPing server room environmental monitoring solutions and power distribution units with «Telegram» messenger. Earlier in our blog, we have specifically examined the process of a bot creation for «Telegram» messenger, controlling IP PDU NetPing sockets using Telegram and controlling an air conditioner in a server room using Telegram. In this article, we will regard a process of a bot configuration for controlling discrete input-output lines of a NetPing IO v2 server room monitoring unit. A similar integration can be practically used when:
- Service staff can send a command to open and close a barrier using «Telegram» messenger. In this case, the use of a bot allows to refuse using a regular mechanic fixed button in favor of a variant of a remote control using a mobile phone and/or a tablet. A barrier is connected to BM8070D power relay 16A/250V for DIN rack, that is in turn connected to an IO line of a NetPing IO v2 server room monitoring unit;
- Technical staff can control load using «Telegram» messenger, including a server, a switch, a router, light, ventilation, etc. that is connected to a controlled socket NetPing AC/DIN, regardless a geographical location;
- Technical stuff can open or close electric lock on the entrance door to a server room using «Telegram» messenger, which also provides additional protection from unauthorized access of the third parties on the object.
«Telegram» is a cross platform messenger that allows to exchange messages and media files of many formats. Besides a standard message exchange in dialogues and groups, it is possible to store the unlimited amount of files, to channel (to microblog), create and use bots in a messenger. Bots are third-party utilities that are launched inside the application «Telegram». In fact, these are accounts controlled by software, not people. It is possible to use programmed buttons of a virtual keyboard for work, using which a bot is turned into a mini-application with intuitively clear interface. Using a bot allows receiving actual information from sensors connected to NetPing server room environmental monitoring units and power distribution units for monitoring and remote control of a power supply in any time and any location.
In this article, we will examine the process of configuration of receiving notifications from sensors in Telegram.
«... A template is a set of objects that may be applied to several nodes of the network.
These objects may be:
- data elements;
- groups of data elements;
- complex screens (starting from Zabbix 2.0);
- low-level detection rules (starting from Zabbix 2.0);
- web scenarios (starting from Zabbix 2.2)
As soon as many nodes are identical in a real life or more or less similar, the sets of objects (data elements, triggers, graphs,…), created by you for a network node, may be useful for many nodes. Certainly, you may copy them to each new network node, but it would require many manual work. Instead, you may copy these objects to one template by using templates and then apply this template to any number of required network nodes.
To start with, let me tell you a few words about what is MikroTik. It is a Latvian manufacturer of network equipment that is distinguished by affordable price and vast functionality. Router OS is a basis for MikroTik products – it is a network operating system based on Linux. This OS also exists as an x86-distributive, so that any individual who wants to assemble a powerful router on the basis of a regular PC for an affordable price can do that. The same OS in a variety of versions is installed to RouterBOARD that is a line of hardware solutions of MikroTik that includes both operator's equipment and SOHO solutions.
MikroTik routers may be equipped with backup WAN channels that can be a GSM modem in addition to the wired Internet network. In this case, there is a possibility to launch scripts on MikroTik via SMS. This feature enables controlling NetPing devices that do not have a built-in GSM modem. Also, this feature may be urgent when a web interface of NetPing devices is unavailable via a common Ethernet network, or if a modem of a NetPing device got frozen.
In the latest firmware versions, the functionality of saving and restoring a device configuration from a binary file was implemented for NetPing devices with the aim to simplify configuration cloning for a group of devices in the network. On default, this functionality is available on the page «SETUP» of a device web interface.
«... SNMP (Simple Network Management Protocol ) – is a standard Internet protocol for managing devices in IP networks on the basis of TCP/UDP architectures. Devices that support SNMP are routers, switches, servers, workstations, printers, modem racks and others. A protocol is usually used in network management systems for controlling devices, which are connected to the network for conditions that warrant an administrator's attention. SNMP is determined by the Internet Engineering Task Force (IETF) as a TCP/IP component. It consists of a set of standards for network management, including an application layer protocol, a database schema and a set of data objects (the article «SNMP» from Wikipedia) …»
Besides local notifications, which were represented in the article «Integrating NetPing into the Monitoring System The Dude by Microtik», The Dude can perform almost any actions upon events through external applications. Let us show this on the example of configuring e-mail notifications.
The Dude – is a powerful and flexible network monitoring system (NMS), which supports different types of testing availability of services and can request devices via SNMP protocol. There is a possibility to send notifications on events via e-mail, Syslog, as well as configure SMS notification. Unlike a majority of other monitoring systems, The Dude is totally not demanding to hardware resources, simply installed, has an intuitive interface and can be installed at almost any OS.
Let us examine an example of integrating a monitoring system The Dude with a device UniPing server solution v4/SMS.
Observium is a monitoring and surveillance system for network devices and servers (NMS) just as Zabbix, Nagios, PRTG Network Monitor and others. At the same time, the list of supported devices is huge and is not limited to network devices only. An important requirement is that a device must support an operation of an SNMP protocol.
A main aim of the Observium project is to create a monitoring system with the simplest management and surveillance of devices, the same it remains today. The system is distributed in two ways: Community Edition (CE is free) and Subscription (and a paid subscription). The last one has agents for active notifications on events. Details can be found at the official website of the project: http://www.observium.org/.
Let us consider the example of integrating Observium CE with the device UniPing server solution v4/SMS.
«... Management Information Base (MIB) is a virtual database, which is used to manage objects in a communication network. The most frequently, this notion is related to Simple Network Management Protocol (SNMP). At the same time, it is used in a wider sense meaning a network management model OSI/ISO. Despite the fact a term MIB is not designed to denote all available information about an object, it is also often used to mark a particular subset, which can be more correctly named the MIB module.
A database has got a hierarchical (tree) structure. It is possible to address records using object identifiers OID. MIB bases are discussed in RFC documentation, particularly RFC 1155 and corresponding RFC 1213 and RFC 1157 (derived from the material named «Management Information Base» from Wikipedia) …»
NetPing devices for monitoring server rooms and remote controlling a power supply have got a possibility to send e-mail notifications about triggering sensors and relays, as well as send periodical reports about status of sensors according to previously configured schedule at the page of a web interface. However, the firmware of the module for sending e-mail notifications and reports of several devices is implemented to support the work with mail servers only, which support SMTP protocol, and an authentication method AUTH PLAIN. In addition, a module for sending e-mail notifications and reports cannot support SSL, TLS or other encoding types.
To avoid problems with sending e-mail notifications from devices NetPing through SMTP servers that work without authorization, or support an authentication method AUTH LOGIN and TLS encoding, it is possible to use a local SMTP relay from Microsoft. It is installed in server rooms under Windows OS in several minutes and requires a minimal configuration to start sending e-mail notifications.
Zabbix is a free monitoring system for tracking statuses of various services of a computer network, servers and network equipment. This system has got a possibility to adjust different ways to notify a user: e-mail, SMS, Jabber, Ez Texting, user scripts. These ways to notify a user are delivery channels in use to send notifications and alerts from Zabbix. According to the fact that Zabbix supports user scripts, it is possible to use devices NetPing SMS, UniPing server solution v4/SMS or NetPing 8/PWR-220 v4/SMS as an SMS gateway to send SMS notifications about events in the monitoring system Zabbix as one of the notification methods. As a result, organising this method of SMS notifications can significantly save funds due to using alternate services for sending SMS notifications, available on the Internet.
The service NetPing Dashboard allows creating an own interactive network map and a power supply control panel for devices individually, having spent several minutes. The service displays data from sensors connected to NetPing devices, which is updated in a real time. In addition, this service provides an opportunity to control built-in relays of a series of NetPing devices for a remote management of power supply sockets, thus adjusting the buttons for controlling sockets at the interactive map NetPing Dashboard.
In this article, creating a simple and convenient controlling panel for «smart sockets», located remotely in different branches of a company is described. At the picture above you can see a ready control panel for power supply of devices. Using this control panel, it is possible to turn on, turn off, reset and track a status of devices added to a scheme remotely.
Syslog (System log) is standard for sending and registering notifications about events taking place in the system (i.e. creating logs), which is used in computer networks, working via an IP protocol. A term «Syslog» is used to name both a standard network protocol Syslog, and software (application, library), which sends/receives system notifications.
To make a NetPing device located on the LAN available via the Internet, there is a need to configure port forwarding on your router.
Port Forwarding is a technology allowing to access a network device in the internal LAN behind a router from the Internet using NAT technology. The access is made by redirecting traffic from an external address of the router to the address of a selected network device in a local network.