Skip to main content

How to monitor FreeBSD

· 5 min read
Shyam Sreevalsan

FreeBSD is a high-quality, stable, and secure operating system used in a wide variety of applications, and we want to show you how monitor FreeBSD systems painlessly and effectively.

Why FreeBSD?

FreeBSD is a free and open source Unix-like operating system descended from the Berkeley Software Distribution (BSD). FreeBSD is the most widely used open source BSD distribution. It is used by companies such as Netflix, Baidu, the United States Department of Defense, and the European Organization for Nuclear Research (CERN).

FreeBSD is a high-quality, stable, and secure operating system used in a wide variety of applications. FreeBSD is developed by a large and passionate community of volunteers and is an excellent choice if you are looking for a high-quality, stable, and secure operating system.

Installing Netdata on FreeBSD

Setting up Netdata monitoring on your FreeBSD server is a simple and straightforward process.

  1. Install the dependencies
pkg install bash e2fsprogs-libuuid git curl autoconf automake pkgconf pidof liblz4 libuv json-c cmake gmake
  1. Install Netdata from the kickstart script

The easiest method is to use the single line kickstart script

If you have a Netdata Cloud account, then clicking on the Connect Nodes button will generate the kickstart command you should use. Use the command from the "Linux" tab, it should look something like this:

Connecting a node to Netdata cloud

Paste the copied command on your FreeBSD terminal and hit enter. Please respond in the affirmative for any relevant prompts during the installation process.

wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --claim-token <CLAIM_TOKEN> --claim-url https://app.netdata.cloud

Monitoring FreeBSD

Once the installation is completed, you should be able to start monitoring the FreeBSD server using Netdata. On the Overview tab you will see the following view - the system overview is a quick summary dashboard that gives you an idea about the health of your server.

image

The menu on the right contains the table of contents which organizes and lists all the metrics that Netdata is collecting. In this example, which is running on a fresh FreeBSD installation, 228 charts are already being collected for most metrics you could think of.

Clicking on a section in the TOC will take you to the relevant charts.

Here's an example of how Netdata visualizes your disk I/O bandwidth metrics.

image

Another example is networking related metrics, which you can visualize at a high fidelity to help quickly identify the root cause of any unexpected packet discards.

image

Netdata doesn't just monitor system services, of course: it comes with hundreds of collectors that will auto discover and start monitoring services and applications that you are likely to install on your server. Each collector would create its own section in the table of contents. For a few examples of how this would look like, please visit Netdata's public loginless demo.

Netdata also automatically discovers hundreds of processes and visualizes them in the Applications section. If your custom application isn't on the list of applications that Netdata recognizes, it will show up under "other," but it's just a matter of adding a couple of lines of configuration to make sure it shows up as a separate entry. To find out how to do this, please read our blog on how to find out which application is causing system load

image

Troubleshooting FreeBSD with Netdata

Alerts

Netdata comes with pre-configured alerts to reduce the monitoring burden for you.

Here's an alert that triggered when the disk space used on the FreeBSD server exceeded the threshold:

image

If you would like to update the alert thresholds for any of these alerts or want to create your own alert for another metric – please follow the instructions here.

By default you will receive email notifications whenever an alert is triggered – if you would not like to receive these notifications you can turn them off from your profile settings.

Anomaly Advisor

Anomaly Advisor lets you quickly identify if the system you are monitoring has any anomalies and allows you to drill down into which metrics are behaving anomalously.

To learn more about how to use Anomaly Advisor to troubleshoot your FreeBSD server check out the documentation or visit the anomalies tab in the demo space to play with it right now.

Metric Correlations

Metric Correlations lets you quickly find metrics and charts related to a particular window of interest that you want to explore further. By displaying the standard Netdata dashboard, filtered to show only charts that are relevant to the window of interest, you can get to the root cause sooner.

Let us hear from you

If you haven’t already, sign up now for a free Netdata account!

We’d love to hear from you – if you have any questions, complaints or feedback please reach out to us on Discord or Github.

Happy Troubleshooting!