CPNV-ES-MON1 / Zabbix

Zabbix
1 stars 0 forks source link

ntpsec.service not found #6

Closed mathiasgui closed 3 months ago

mathiasgui commented 3 months ago

error Failed to start ntpsec.service: Unit ntpsec.service not found. when starting ntpsec.service image

mathiasgui commented 3 months ago

The reason why the ntpsec.service does not exist on this system is that the distribution uses systemd and relies on systemd-timesyncd for time synchronization instead. systemd-timesyncd is a lightweight and integrated time synchronization service that comes with systemd, which is the default service manager in many modern Linux distributions.

To resolve the issue, use systemd-timesyncd instead of ntpsec. Here are the relevant commands to manage systemd-timesyncd:

By using systemd-timesyncd, the system's time will be synchronized correctly without needing to install ntpsec.

mathiasgui commented 3 months ago

refer to the documentation: https://github.com/CPNV-ES-MON1/Zabbix/wiki/7-%E2%80%90-Red%C3%A9marrer-un-service-arr%C3%AAt%C3%A9#linux