# How to Keep your Infrastructure Healthy with ntopng | ntop

> Almost 3 years ago we introduced Active Monitoring support in ntopng. This allows you to monitor the infrastructure and make sure that all systems are operati

[Blog](https://www.ntop.org/blog/)[ntopng](https://www.ntop.org/category/ntopng/)

# How to Keep your Infrastructure Healthy with ntopng

March 20, 20233 min read

Almost [3 years ago](https://www.ntop.org/how-active-monitoring-works-in-ntopng/) we introduced [Active Monitoring](https://www.ntop.org/guides/ntopng/user_interface/shared/snmp/monitoring.html) support in ntopng. This allows you to monitor the infrastructure and make sure that all systems are operational. In fact ntopng can continuously monitor hosts in your network by periodically running different active measurements including:

-   *ICMP*, which measures the RTT (Round Trip Time).
-   *Continuous ICMP*, which evaluates network reachability and service availability.
-   *Speedtest*, which estimates the Internet bandwidth and latency contacting a speedtest server.
-   *HTTP(S)*, which checks the HTTP/HTTPS availability of web servers.
-   *Throughout*, which tests the throughput contacting an HTTP server.

As a result, it is possible to:

1.  **Monitor** the status of the services over time, by looking at the table in the Active Monitoring page which contains all the measurements.
2.  **Get notified** when a measure is failing or the result is not satisfying a threshold, by triggering an alert.
3.  **React (Automatically)** with some custom action, for instance running a script, when a service goes down, to restore it.

[![](/images/2023/03/active_monitor.webp)](https://www.ntop.org/images/2023/03/active_monitor.webp)

## Add a new Measurement

As we have seen in a few [previous posts](https://www.ntop.org/how-active-monitoring-works-in-ntopng/), adding a new service to be monitored is easy:

1.  Select the *System* interface from the drop down at the top of each page.
2.  Go to the *Monitoring ->**Active Monitoring* page from the sidebar
3.  Click on the add button (+)
4.  Select the measurement, the host/service to check and a reasonable threshold that should not be exceeded if the service is operational

[![](/images/2023/03/active_monitoring_add.webp)](https://www.ntop.org/images/2023/03/active_monitoring_add.webp)

At this point ntopng will periodically check the measure, and trigger an alert in case of failure. Those alerts are visible under the *Alerts* -> *Explorer* -> *Active Monitoring* page.

[![](/images/2023/03/active_monitor_alerts-1.webp)](https://www.ntop.org/images/2023/03/active_monitor_alerts-1.webp)

### Get Notified

If we want to get notified through some of the endpoints (e.g. messaging systems) supported by ntopng, we can go and configure this from the *Notifications* page.

For instance, let’s assume that we want to receive a message on Telegram on our mobile phone. First of all we should create a new endpoint from the *Notifications* -> *Endpoint* page, where we specify the endpoint type (Telegram) and the required parameters.

[![](/images/2023/03/notification_endpoint_telegram.webp)](https://www.ntop.org/images/2023/03/notification_endpoint_telegram.webp)

Then we need to create a recipient for delivering alerts generated by the Active Monitoring support from the *Notifications* -> *Recipient* page, where we specify which alerts we want to receive, filtering them by Severity, Category, Entity, and finally the Active Monitoring entries that we want to monitor.

[![](/images/2023/03/notification_recipient_telegram.webp)](https://www.ntop.org/images/2023/03/notification_recipient_telegram.webp)

### React (Automatically)

In some case, we can do something better than just getting notified (actionable results), because:

-   A manual reaction to the notification may take time
-   It may be we are away, busy, or even sleeping and not able to react at all
-   It is possible to fix the service with a task which is easy to automate (e.g. a simple service restart)

In ntopng it is possible to automatically react to events like alerts generated by the Active Monitoring and run custom action. One way for achieving this is, for instance, running a shell script or calling a web-hook.

In order to run a shell script:

1.  Create the script (with .sh or .py extension and executable permission) under /usr/share/ntopng/scripts/shell/. In order to get alert information, they are provided to the script as standard input in JSON format.
2.  Create a new endpoint from the *Notifications* -> *Endpoint* page, specifying Shell Script as endpoint type and by selecting the script from the dropdown.  
    [![](/images/2023/03/notification_endpoint_shell.webp)](https://www.ntop.org/images/2023/03/notification_endpoint_shell.webp)
3.  Create a recipient from the *Notifications* -> *Recipient* page, specifying for which service we want to run the script.  
    [![](/images/2023/03/notification_recipient_shell.webp)](https://www.ntop.org/images/2023/03/notification_recipient_shell.webp)

This way you can restore a service with an automatic action, or simply notify a peer: just create a script that can perform the action you need.

Enjoy !

## Keep reading

nDPINov 7, 2026

### [Detecting CVE-2026-98432 using nDPI/ntopng](https://www.ntop.org/detecting-cve-2026-98432-using-ndpi-ntopng/)

CVE-2026-98432 is a critical, 9.8-severity use-after-free (UAF) vulnerability in the Linux kernel’s IPv4 TCP networking stack. It allows an unauthenticated remote attacker to potentially cause system crashes, memory corruption, or execute arbitrary commands with root privileges. From a network stand

[![](/images/2026/09/Screenshot-2026-09-09-151028-1.webp)](https://www.ntop.org/october-20th-join-us-for-the-ntopng-7-0-webinar/)

AnnounceOct 5, 2026

### [October 20th: Join us for the ntopng 7.0 Webinar](https://www.ntop.org/october-20th-join-us-for-the-ntopng-7-0-webinar/)

Is your network monitoring keeping pace with AI, larger infrastructures, and the growing need for real observability? We’re excited to introduce ntopng 7.0, alongside new releases of the rest of the ntop…

[![](/images/2026/09/Screenshot-2026-09-09-163410-1.webp)](https://www.ntop.org/ntopng-user-interface-introducing-the-new-navigation-bar/)

ntopngSep 21, 2026

### [ntopng User Interface: Introducing the New Navigation Bar](https://www.ntop.org/ntopng-user-interface-introducing-the-new-navigation-bar/)

In our continuous effort to improve user experience and make network monitoring more intuitive, we have completely redesigned the ntopng Navigation Bar. As our feature set expands—with crucial additions like the nAnalyst…

## Try it on your own network

Download the free Community edition and see your first flows in five minutes.

[Download ntopng free](https://www.ntop.org/support/documentation/software-installation/)[Talk to an engineer](https://www.ntop.org/support/need-help/contacts/)
Source: https://www.ntop.org/how-to-keep-the-infrastructure-up-with-ntopng/