Amarisoft

Out of the Box Test - Network Monitor

 

The purpose of this tutorial is to show how to use Network Monitoring Functionalities.

Network Monitor in this tutorial is a software component developed by Amarisoft that can provide features listed as below.

 

 

Table of Contents

 

 

Before you start

 

Since Network Monitor is not the default components of the installation package, you need to check if your system is installed with network monitor or not before you try anything in this tutorial. Check the tutorial : Installation_Monitor for this check up.

 

 

Test Setup

 

Test setup for this tutorial is as shown below. (NOTE : Basically it doesn't matter with exact hardware setup to utilize the Command Line Commands. You can use the information in this page for any test setup you are using)

 

TestSetup Callbox UE 1sdr 01

 

 

 

Run Monitor in WebGUI

 

If Monitor installation is properly done, the monitor is executed as part of lte service. no specialy procedure is required for monitor execution only.  Just start or restart the lteservice as follows.

WebGUI 01

If you open up WebGUI, you would see 'MONITOR' component is added as shown below.

OutOfBox Monitor RunInWebGUI 02

You may set the filters for MONITOR log as shown below.  

OutOfBox Monitor RunInWebGUI 03

The Logs panel has 'MINITOR' column and the MONITOR log is printed as shown below.

OutOfBox Monitor RunInWebGUI 04

[Optional] If you want to display MONITOR log only, you may specify layers which belong to MONITOR component.

OutOfBox Monitor RunInWebGUI 08

 

 

 

Functions in MONITOR

 

If you go into MONITOR tab, you would have the list of the components you can manipulate with monitor as shown below.

OutOfBox Monitor RunInWebGUI 05

If you right mouse click on the root node of the list, you would get a menu as shown below. I think each of the menu items are self explanatory and you may not need any further explanation.

OutOfBox Monitor RunInWebGUI 06

If you right mouse click on the each component in the list, you would get a menu as shown below. I think each of the menu items are self explanatory and you may not need any further explanation.

OutOfBox Monitor RunInWebGUI 07

 

 

 

Setting Up Email for Alarm Notification

 

For now, Alarm is notified only by email. so you need to make it sure that the email is working properly with your system before you configure any alarm. This section would explain on how to configure email and test if email works or not.

First, configure email in /root/monitor/ssmtp.conf as shown below. This is just a template and don't copy & paste it as it is. The configuration in this file is for Sender email account for the alarm notification email.

OutOfBox Monitor EmailSetup 01

If you go to /root/monitor directory, you would find the email test script : test-email.sh as shown below.

OutOfBox Monitor EmailSetup 02

Try send a test email as shown below. (NOTE : In this example, I used the same email address for sender and reciever, but you can use any valid email for the reciever. But sender email should be the one specified in ssmtp.conf file)

OutOfBox Monitor EmailSetup 03

You would get the test email as shown below if the email setup (ssmtp.conf) is properly done.

OutOfBox Monitor EmailSetup 04

 

 

 

Setting Up Alarm Notification

 

Once you comfirmed that the email is working as in previous section, you can now specify a specific alarm in monitor.cfg and get notified by the email whenever the alarm condition is met.

 

 

Alarm Notification - Test 1

 

Configure the alarm  in monitor.cfg which you want to get notifified about. This is just an example of the possible alarms and you can find various other types of alarms in ltemonitor document.

OutOfBox Monitor AlarmTest 01

Now specify email in monitor.cfg as shown below. You should specify [from] parameter with the email you configured in ssmpt.conf, but you can configure any valid email in [to] parameter.

OutOfBox Monitor AlarmTest 02

Now start lte service and make it sure that MONITOR and other components are running.

OutOfBox Monitor AlarmTest 03

Now let's try to make an intentional error that would trigger the alarm (NOTE : Of course, you wouldn't make this kind of intentional error in real operation. This is just for the test). There can be various ways to trigger the alarm specified in this example. I will trigger the alarm by killing IMS process.

OutOfBox Monitor AlarmTest 04

Kill the IMS process.

OutOfBox Monitor AlarmTest 05

Now you would see the error message printed MONITOR log. (NOTE : When IMS service gets killed, OTS service would try run the service again and IMS service would get back on. Sometimes this error recovery is done so quickly and the alarm may not get triggered. If you don't get the alarm triggered in this way, you can try another method as described in next example).

OutOfBox Monitor AlarmTest 06

Once the alarm is triggered, you would receive the email notification as shown below.

OutOfBox Monitor AlarmTest 07

 

 

Alarm Notification - Test 2

 

This example is almost same as the previous example. The only difference is the different [to] email is used (in this example, the email with different domain name than [from] email) and the method to trigger alarm is different.

Configure the alarm  in monitor.cfg which you want to get notifified about. This is just an example of the possible alarms and you can find various other types of alarms in ltemonitor document.

OutOfBox Monitor AlarmTest Ex02 01

Now specify email in monitor.cfg as shown below. You should specify [from] parameter with the email you configured in ssmpt.conf, but you can configure any valid email in [to] parameter.

OutOfBox Monitor AlarmTest Ex02 02

Now start lte service and make it sure that MONITOR and other components are running.

OutOfBox Monitor AlarmTest Ex02 03

Now let's try to make an intentional error that would trigger the alarm (NOTE : Of course, you wouldn't make this kind of intentional error in real operation. This is just for the test). There can be various ways to trigger the alarm specified in this example. In this example, I will kill IMS service in screen console.

First switch to [IMS] console and Press [Ctrl + C]

OutOfBox Monitor AlarmTest Ex02 04

IMS service get killed and gets restarted soon by OTS service.

OutOfBox Monitor AlarmTest Ex02 05

Now you would see the error message printed MONITOR log.

OutOfBox Monitor AlarmTest Ex02 06

Once the alarm is triggered, you would receive the email notification as shown below.

OutOfBox Monitor AlarmTest Ex02 07

 

 

 

Setting Up Statistics

 

You can let MONITOR generate statistics data in certain interval that you want.  In this section, I will show you how to enable 'statistics data collection'.

 

Statistics - Test 1

 

You can enable (configure) stats parameter in monitor.cfg as shown below. You can specify when the stat data should be collected, where the data should be stored and how long those files should be reserved. (NOTE : For the description of each configuration parameters used here, refer to the monitor document )

OutOfBox Monitor StatTest Ex01 02

Once MONITOR runs, you would see a new directory is created as specified in 'store' parameter in monitor.cfg as shown below.

OutOfBox Monitor StatTest Ex01 03

You would see another subdirectory is created in stats (store directory) as shown below.

OutOfBox Monitor StatTest Ex01 04

within the subdirectory, you would see the statistic data gets stored with the intervals specified in monitor.cfg.

OutOfBox Monitor StatTest Ex01 05

If you open up the file, you would see the information printed in JSON format as shown below.

OutOfBox Monitor StatTest Ex01 06

You can print the json file in more readable format as shown below (NOTE : You may write your own script/program to parse / extract the specific data that you want to get)

OutOfBox Monitor StatTest Ex01 07