Amarisoft

Installation - Network Monitor

The purpose of this tutorial is to show you how to install Network Monitoron the Callbox. To install this tool, you need to have the product in your installation tarball. This may require the license for it. You may reach out to sales@amarisoft.com for the details.

Assuming that you have this product in your installation tarball and you have never installed this package before in your system, you are supposed to install this manually as per this tutorial. Once you have installed this, your './insall.sh --default' would install the monitor tool together with other tools. Of course, it is no harm to add '--monitor' option for every installation as shown in this tutorial.

NOTE : this tutorial is only for the installation of Monitor tool, not for the operation/usage. For the operation/usage of the monitor tool, check out this tutorial.

Table of Contents

Introduction

Network Monitor is a specialized software tool designed for real-time observation and analysis of network activities within cellular infrastructure, such as the Amarisoft Callbox. Integrated as part of the Amarisoft suite, Network Monitor provides comprehensive insights into protocol messaging, traffic flow, and system health by capturing, decoding, and displaying a wide range of signaling and user plane data. Architecturally, it interfaces directly with the baseband and core network layers, leveraging packet capture and protocol decoding engines to generate actionable diagnostics for network engineers and developers. The installation process for Network Monitor requires that the tool is included in the product’s installation tarball, which may be subject to specific licensing terms. Once installed, Network Monitor can be seamlessly managed alongside other Callbox tools using the standard installation scripts, facilitating streamlined updates and maintenance. Its significance lies in its ability to empower operators and developers with deep visibility into the behavior of mobile networks, essential for troubleshooting, optimization, and compliance testing. As a crucial component of the broader Amarisoft ecosystem, Network Monitor supports efficient network development cycles and high-quality service assurance by enabling proactive monitoring and rapid issue resolution.

Summary of the Tutorial

This tutorial outlines the procedures to verify and install the ltemonitor module from an installation tarball, as well as post-installation checks for proper setup and configuration files.

The tutorial provides a systematic approach to ensure the ltemonitor module is included, properly installed, and configured, with emphasis on verifying all required directories and configuration files post-installation.

Check if Your Installation tar ball contains Monitor Installation file

The ltemonitor installation module does not comes by default and you have to make it sure that the installation tarball for lte monitor should be included in your installation tarball.

First the download the installation package, untar the tarball, go into the untarred directory and check if you have ltemonitor tar file as shown below. (NOTE : If you are not familiar with how to get installation package and untar it, check this).

In this package the file is ltemonitor-linux-2022-08-26.tar.gz. It sits next to the other component tarballs such as lteenb, ltemme, lteots and lteview. All of them carry the same release date as the package.

This is the tarball that installs the monitor. If you don't see it in your installation tarball, contact sales@amarisoft.com. The install.sh script in the same directory is the one used in the next step.

Directory listing of the 2022-08-26 package with the ltemonitor tarball underlined

Install

Installation process is similar to regular callbox software installation except that you need to put an additional option '--monitor' as shown below.

'./install.sh --default' is the regular callbox installation. '--monitor' is the only addition, and it adds the monitor component to the same run.

I ran the command as root from inside the untarred 2022-08-26 directory.

install.sh command line with --default and the added --monitor option

You can confirm if the ltemonitor is being installed as shown below during the installation process.

Step 8, 'Install LTE monitoring', is the step that installs the monitor functionality. In this run it also installed the ssmtp package (ssmtp-2.64-24.fc32.x86_64). The monitor uses ssmtp to send alarm emails.

The installer then goes on to step 9, 'Finalize LTE automatic service', and step 10, 'Clean'. The run ends with 'Installation successful'.

The warning about ots.default.cfg in step 9 is not related to the monitor. It only says that a modified reference config file was kept as ots.default.cfg.bak.

Installer output with step 8 Install LTE monitoring and successful completion

Check out the installed files

Once the installation is done, you may check out if all the directories and basic configuration files are properly installed.

Check if you have monitor directory under \root as shown below.

I used 'll | grep "\->"' in /root to list only the symbolic links. 'monitor' is a link to /root/ltemonitor-linux-2022-08-26. This indicates the Monitor program is installed.

The other components from the same package work the same way. enb, mme, mbms, ots and trx_sdr each point to their own 2022-08-26 directory.

Symbolic links under /root with monitor pointing to ltemonitor-linux-2022-08-26

Now to go monitor directory (/root/monitor) and see if you have files and directories as shown below.

The program itself is ltemonitor.js. It comes with helper scripts such as component.js, config.js, proxy.js and utils.js, and a node_modules directory.

The config directory holds the configuration files covered next. The doc directory, license.txt, license.pdf and ReleaseNotes-ltemonitor.txt are also installed here. The same directory also has the test-email.sh script.

Contents of /root/monitor including ltemonitor.js, config and test-email.sh

Now go to config directory (/root/monitor/config) and check if you have following files. monitor.cfg is the main configuration file that are directly used by monitor program. alarm.tpl and ssmtp.conf are indirectly used in link with monitor.cfg file. alarm.tpl and ssmtp.conf may or may not used depending on the configurations in monitor.cfg

monitor.cfg is not a plain file. It is a symbolic link to monitor.default.cfg, the default configuration installed with the package.

If you want to use your own configuration, point the monitor.cfg link to your own file. The default file can then stay as it is.

Listing of /root/monitor/config with monitor.cfg linked to monitor.default.cfg

The default configurations in monitor.cfg is something as shown below. The details and specific examples will be covered by other tutorials.

The monitor writes its log to /tmp/monitor.log, with log_options set to "all.level=info,all.max_size=0,".

com_addr is "0.0.0.0:9007". With 0.0.0.0, the monitor listens on port 9007 on all interfaces of the Callbox.

The alarms block defines one alarm with id 'alarm1'. Its filters match messages with level 'ERROR', and messages in section 'Rx|Cx' with title 'disconnected'.

Default monitor.cfg with log settings, com_addr 9007 and alarm1 filters

alarm.tpl is the configuration defining the email format when you configure monitor to send you the email for a specific alarms. The details and examples will be covered by another tutorial.

The Subject line is built from [][] /

: . The body starts with 'Alarm <ALARM> triggered'.</p> <p id="5e9cc48e539456bc4f0e33b0bb8b8b1d">The body then lists Level, Host, Date, Component with its version, Section, Title, Count and Message. The monitor fills in each placeholder in angle brackets when the alarm is raised.</p> <p><img title="Install Monitor InstalledFiles 05" alt="alarm.tpl email template with Subject line and alarm placeholder fields" border="0" height="292" src="images/Install_Monitor_InstalledFiles_05.webp" width="1044"/></p> <p id="d73b3eed8560c15be4a4eb1bb82fd307">ssmtp.conf is the configuration in which you should configure all the necessary information to get access your email server so that monitor can send you the email for the alarm. </p> <p id="a71741c7edde315cafb274f5436b149f">All the basic parameters are commented out in the default file. Email does not work until you fill them in and remove the '#'.</p> <p id="3d5571434030175e60d0ea0ba7bae40b">AuthUser and AuthPass are the SMTP server account login and password. MailHub is the SMTP server address and port. UseTLS, Hostname, FromLineOverride and TLS_CA_File are also there. TLS_CA_File defaults to /etc/pki/tls/certs/ca-bundle.crt.</p> <p id="7685e03905e8cb0bd386fb70c12ec089">For more on these parameters, the file points to https://wiki.archlinux.org/index.php/SSMTP or /etc/ssmtp/ssmtp.conf.</p> <p><img title="Install Monitor InstalledFiles 06" alt="Default ssmtp.conf with commented SMTP account, server and TLS parameters" border="0" height="284" src="images/Install_Monitor_InstalledFiles_06.webp" width="1044"/></p> </div> </body> </div> </div> <div class="footer"> <div> © 2026 All rights reserved | <a href="legal-notice.html">Legal notice</a> | <a class="twitter-x" href="https://x.com/amarisoft/" target="ama"></a> <a class="linkedin" href="https://www.linkedin.com/company/amarisoft/" target="ama"></a> </div> </div> <div id='popup-login' class='popup-main'> <div class='popup-mask'></div> <form id="login-form" action='signin'> <div class="popup-content"> <div class="login-line">Login:</div> <div class="login-line"><input id="username" type="text" placeholder="email" required autofocus></div> <div class="login-line"><input id="password" type="password" placeholder="Password" required></div> <div class="login-line" id="status"></div> <div class="login-line"><input class="btn" id="login-btn" type='submit' value="Log in"></div> <div class="login-line" id="forgot"><a href="https://extranet.amarisoft.com/password-reset">Forgot your password ?</a></div> </div> </form> </div> <script> var ShowPopup = function (name, cb) { var popup = document.getElementById('popup-' + name); popup.style.display = 'block'; var mask = popup.getElementsByClassName('popup-mask')[0]; var closeFunc = function (event) { popup.style.display = 'none'; mask.removeEventListener('mousedown', closeFunc); if (cb) cb(); }; mask.addEventListener('mousedown', closeFunc); } var Login = function () { var btn = document.getElementById('btn-login'); btn.style.display = 'none'; ShowPopup('login', function () { btn.style.display = 'block'; }); } var Logout = function () { var xhr = new XMLHttpRequest(); xhr.open('POST', 'signout'); xhr.onreadystatechange = function () { if (xhr.readyState !== 4) return; if (xhr.status < 200 || xhr.status >= 300) { alert('Error'); return; } window.location.reload(true); return; }; xhr.send(); } </script> <script> var statusTimer = 0; document.getElementById('login-form').addEventListener('submit', function (event) { console.log('Submit'); event.preventDefault(); event.stopPropagation(); var form = document.getElementById('login-form'); if (form.submitted) return; form.submitted = true; clearTimeout(statusTimer); var xhr = new XMLHttpRequest(); xhr.open('POST', 'signin'); xhr.onreadystatechange = function () { if (xhr.readyState !== 4) return; if (xhr.status < 200 || xhr.status >= 300) { alert('Error'); return; } form.submitted = false; var error = 'Bad credentials'; try { var resp = JSON.parse(xhr.responseText); //console.log('Success', resp); if (resp.status === 'SUCCESS') { //form.submit(); window.location.reload(true); return; } } catch (e) { console.error(e); error = 'Internal error'; } var status = document.getElementById('status'); status.innerHTML = error; status.style.opacity = 1; statusTimer = setTimeout(function () { status.style.opacity = 0; }, 5000); }; var username = document.getElementById("username"); var password = document.getElementById("password"); xhr.send(JSON.stringify({ user: username.value, pass: password.value, key: '', })); }); </script> </body> </html>