Fortinet black logo

User Guide

Disk (Linux)

24.1.0
Copy Link
Copy Doc ID af1daa65-c273-11ec-9fd1-fa163e15d75b:300562
Download PDF

Disk (Linux)

The Disk plugin lets you monitor how much space you have available on your server. This tool can be particularly useful for server management, for example, you can trigger an alert when the disk space falls below a certain threshold. Monitoring your disk space, and preventing disk filling, is one of the greatest ways to prevent outages.

To add a Disk resource type to your server first see Add FortiMonitor Agent checks if you have not already.

Control Panel Configuration

First select Linux from the monitoring catalog.

Scroll to the Disk section, there are a number of metrics to choose from.

Metric

Unit

Disk Space Available

kb

Filesystem mounted

Inode used

Inodes

Inodes Available

Inodes

Inodes percent used

Inodes

Percentage of disk used

%

The metric will have three options: "Percentage of Disk Used", "Available Disk Space" and "File Systems". The first two are pretty self-explanatory, but the third is a Boolean test to see if a remote file system is mounted to your server.

Clicking Add will give you finer control over the alert timeline used as well as thresholds. The specific number that this resource returns is defined by the above options, please take this into account if you choose to change your Alert Thresholds for this resource. For this resource, we recommend having at least two alert thresholds. The first is send out email notifications if the disk space is getting low, and the second to send out SMS/voice alerts when the disk space is dangerously low and requires immediate attention.

You can add multiple Disk agent resources to one server if you would like, which is especially useful if you have a large number of file systems.

If you would like to inspect the Disk plugin in more detail you can find the python script for it in /usr/lib/panopta-agent/plugins/disk.py.

Use fstab to specify mount points that should be monitored

You can use the fstab file to monitor unmounted filesystems that have never by adding the following parameter to the Agent configuration file:

[disk]

use_findmnt = True

Override filesystem discovery

By default, the following partitions are excluded from discovery:

  • tmpfs

  • devtmpfs

  • none

  • proc

  • swap

  • devices

  • cgroup

  • /dev/loop

To override the default values, open the Agent configuration file and modify the following parameter:

[disk]

device_ignore_list = ("tmpfs", "devtmpfs", "none", "proc", "swap", "devices", "cgroup", "/dev/loop")

Disk (Linux)

The Disk plugin lets you monitor how much space you have available on your server. This tool can be particularly useful for server management, for example, you can trigger an alert when the disk space falls below a certain threshold. Monitoring your disk space, and preventing disk filling, is one of the greatest ways to prevent outages.

To add a Disk resource type to your server first see Add FortiMonitor Agent checks if you have not already.

Control Panel Configuration

First select Linux from the monitoring catalog.

Scroll to the Disk section, there are a number of metrics to choose from.

Metric

Unit

Disk Space Available

kb

Filesystem mounted

Inode used

Inodes

Inodes Available

Inodes

Inodes percent used

Inodes

Percentage of disk used

%

The metric will have three options: "Percentage of Disk Used", "Available Disk Space" and "File Systems". The first two are pretty self-explanatory, but the third is a Boolean test to see if a remote file system is mounted to your server.

Clicking Add will give you finer control over the alert timeline used as well as thresholds. The specific number that this resource returns is defined by the above options, please take this into account if you choose to change your Alert Thresholds for this resource. For this resource, we recommend having at least two alert thresholds. The first is send out email notifications if the disk space is getting low, and the second to send out SMS/voice alerts when the disk space is dangerously low and requires immediate attention.

You can add multiple Disk agent resources to one server if you would like, which is especially useful if you have a large number of file systems.

If you would like to inspect the Disk plugin in more detail you can find the python script for it in /usr/lib/panopta-agent/plugins/disk.py.

Use fstab to specify mount points that should be monitored

You can use the fstab file to monitor unmounted filesystems that have never by adding the following parameter to the Agent configuration file:

[disk]

use_findmnt = True

Override filesystem discovery

By default, the following partitions are excluded from discovery:

  • tmpfs

  • devtmpfs

  • none

  • proc

  • swap

  • devices

  • cgroup

  • /dev/loop

To override the default values, open the Agent configuration file and modify the following parameter:

[disk]

device_ignore_list = ("tmpfs", "devtmpfs", "none", "proc", "swap", "devices", "cgroup", "/dev/loop")