Integrating NetPing into the Monitoring System The Dude by MikroTik

  • Published In: Tutorial
  • Created Date: 2015-10-01
  • Hits: 4291

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.

An offered solution allows to watch parameters received from temperature and humidity sensor, which are connected to a device UniPing server solution v4/SMS. A system draws diagrams of temperature and humidity and displays current values at a map of a device in a monitoring system The Dude. If specified margins are exceeded, a corresponding notification will be shown. 

The Dude - temperature and humidity graphs from the UniPing server solution v4SMS

Program notifications and a system notification, respectively:

The Dude - notification of the program about the temperature rise from the NetPing device

The Dude - System notification of the temperature is lowered from NetPing device

Requirements

To implement a represented solution, the next equipment will be necessary:

There is a need to perform an initial configuring and setting up a monitoring system The Dude to PC/server. For an additional information go to the official documentation on the product or corresponding resources on the Internet.

If NetPing equipment uses a router with the NAT function and/or Firewall to access the Internet, there is a need to allow incoming packages via an SNMP protocol (UDP/161) to the NetPing device to control it remotely. For an additional information go to the documentation for a router equipment or a network administrator.

If necessary, a NetPing device can be connected to a router via Wi-Fi wireless technology using VAP11N adapter. An adapter is purchased separately. For additional information go to the «VAP11N user guide».

Configuring UniPing server solution v3/SMS

Set a device UniPing server solution v4/SMS into a working condition, plug in temperature and humidity sensor, and connect a device to the Internet network – all according to corresponding sections of  «Firmware description».

An access to a device UniPing server solution v4/SMS via an SNMP protocol in the Internet network can be obtained due to the next parameters according to documentation:

  • IP address/host: dude.netping.ru
  •  порт SNMP: 161
  •  SNMP Community for read: snmpread

An access to connected temperature sensors and a humidity sensor can be obtained via the next SNMP OID respectively:

  • .1.3.6.1.4.1.25728.8800.1.1.2.1
  • .1.3.6.1.4.1.25728.8800.1.1.2.2
  • .1.3.6.1.4.1.25728.8400.3.2.0.1

Configuring NMS The Dude

After setting up and initial configuring NMS The Dude, there is a need to add a new  SNMP profile for further working with a device UniPing server solution v4/SMS. «Settings» -> «SNMP» -> (icon with a read plus) – and fill in the fields as follows and save all settings:

  • Name: netping_snmp
  • Version: 1
  • Port: 161
  • Community: snmpread

The Dude - adding a new SNMP profile to connect the UniPing server solution v4SMS

Then there is a need to add sensors, from which an information will be gathered, and diagrams built. If a specified value is exceeded, a notification will be displayed. To add a new sensor there is a need to go to the section «Probes» -> (icon with a red plus) – and enter the next values of the frist temperature sensor «Temp1»:

  • Name: Temp1
  • Type: Function
  • Agent: default
  • Available: "1"
  • Error: if (oid("1.3.6.1.4.1.25728.8800.1.1.2.1") > 30, "Temp Over 30 C","")
  • Value: oid("1.3.6.1.4.1.25728.8800.1.1.2.1")
  • Unit: C

The Dude - adding a new sensor from the UniPing server solution v3SMS

Add the second temperature sensor in the same way:

  • Name: Temp2
  • Type: Function
  • Agent: default
  • Available: "1"
  • Error: if (oid("1.3.6.1.4.1.25728.8800.1.1.2.2") > 30, "Temp Over 30 C","")
  • Value: oid("1.3.6.1.4.1.25728.8800.1.1.2.2")
  • Unit: C

The same for a humidity sensor «Humid1»:

  • Name: Humid1
  • Type: Function
  • Agent: default
  • Available: "1"
  • Error: if (oid(".1.3.6.1.4.1.25728.8400.3.2.0.1") > 70, "Humid Over 70%","")
  • Value: oid(".1.3.6.1.4.1.25728.8400.3.2.0.1")
  • Unit: %

To add a device UniPing server solution v4/SMS go to the section «Devices» -> (icon with a read plus) – and enter the address of a device UniPing server solution v4/SMS published to the Internet into the field «Address», particularly dude.netping.ru and go to the next step «Next»:

The Dude - adding a new UniPing server solution v3SMS

At the next step, add a previously created temperature sensor:

The Dude - adding a temperature sensor from the UniPing server solution v4SMS

Include logging of notifications and events  (if necessary):

The Dude - activation of notifications and recording of events from sensors UniPing server solution v3SMS in the system log

Repeat the steps to add the rest of sensors.

Go back to device settings again and change an SNMP profile, which is used on default:

 The Dude - change the default SNMP profile

To configure displaying of sensor status directly on the map of devices,  there is a need to click the right button on a device at the map of devices. There is a need to click a right button of a mouse on a device and select «Appearance»:

The Dude - setting up the display of sensors on the map

Activate the section «Label» and enter the next data:

  • [Device.Name]
  • [Device.ServicesDown]
  • Uptime: [oid("1.3.6.1.2.1.1.3.0")]
  • TEMP1=[oid("1.3.6.1.4.1.25728.8800.1.1.2.1")] C
  • TEMP2=[oid("1.3.6.1.4.1.25728.8800.1.1.2.2")] C
  • HS1=[oid("1.3.6.1.4.1.25728.8400.3.2.0.1")] %

The Dude - setting up the display of sensors on the map

To add an icon to a device go to the tab «Image» and select a suitable one (or add an own one):

The Dude - setting the device icon on the map

A basic configuring of a monitoring system The Dude from MikroTik is now completed.


Tags: All devices
comments powered by Disqus