Fortinet black logo

User Guide

NTP (Linux)

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

NTP (Linux)

Agent Configuration

If you would like to change the NTP server you are using for reference, then you can add the following section to your Agent config file (/etc/fm-agent/fm-agent.cfg).

[ntp]
ntp_host = pool.ntp.org
ntp_port = 123

Just replace the host name and port with the appropriate values for the NTP server that you are using.

Control Panel Configuration

The NTP plugin allows you to monitor the disagreement between your machine’s time, and the NTP time.

To add an NTP Agent resource to your server first see Add FortiMonitor Agent checks if you have not already.

First select “Linux” catalog and choose NTP from the list.

The plugin will only have one option; “Difference between machine and NTP time.” This resource returns the number of seconds, please take this into account if you choose to change your alert thresholds.

Metric

Unit

Difference between machine and NTP time

seconds

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

NTP (Linux)

Agent Configuration

If you would like to change the NTP server you are using for reference, then you can add the following section to your Agent config file (/etc/fm-agent/fm-agent.cfg).

[ntp]
ntp_host = pool.ntp.org
ntp_port = 123

Just replace the host name and port with the appropriate values for the NTP server that you are using.

Control Panel Configuration

The NTP plugin allows you to monitor the disagreement between your machine’s time, and the NTP time.

To add an NTP Agent resource to your server first see Add FortiMonitor Agent checks if you have not already.

First select “Linux” catalog and choose NTP from the list.

The plugin will only have one option; “Difference between machine and NTP time.” This resource returns the number of seconds, please take this into account if you choose to change your alert thresholds.

Metric

Unit

Difference between machine and NTP time

seconds

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