Technical Tip: Analyzing NTP logs from FortiWeb CLI
| Description | This article describes the meanings and ways to understand the NTP logs on the FortiWeb device. |
| Scope | FortiWeb. |
| Solution | For NTP-related issues, take debugs on the CLI by using below commands:
FortiWeb-VM-01 # diagnose debug application ntpd 7 FortiWeb-VM-01 # diagnose debug enable
Non-working logs will show up as below, for example:
FortiWeb-VM-01 # diagnose debug application ntpd 7 FortiWeb-VM-01 # diagnose debug enable FortiWeb-VM-01 # ntpd.c[363] ntpd_main: old time is 1765863428
1765863428 (and the other numbers) are Unix epoch timestamps, which means they are not human-readable form.
To convert Unix epoch timestamps, there are different converters available online.
Below is one example:
Another Important output: ntp server is 0, exiting. Which means that: new time = old time.
Workaround: Change the NTP server to another server IP/FQDN.
Note: If this does not resolve the issue, then contact Fortinet Support. |

