【问题标题】:Nagios check_ntp_peer not workingNagios check_ntp_peer 不工作
【发布时间】:2011-12-20 01:54:54
【问题描述】:

我正在运行通过 Nagios 监控的虚拟化 (vmware) debian (2.6.26-2-686)。最后,我收到以下严重错误(由 _check_ntp_peer_ 脚本报告):

NTP CRITICAL:服务器未同步,偏移量未知

它引起了我的注意

ion that none of the lines outputted by the _ntpq –no_ command has a star (*)

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 200.144.121.33  193.204.114.232  2 u    1   64    1  187.298  -34742.  32.024
 146.164.53.65   200.20.186.75    2 u    2   64    1  185.574  -34716.   0.001
 200.160.0.8     200.160.7.186    2 u    1   64    1  186.229  -34734.   0.001
 187.49.33.13    .INIT.          16 u    -   64    0    0.000    0.000   0.001

有什么线索吗? 这是 ntp.conf

修补恐慌 0 漂移文件 /var/lib/ntp/ntp.drift 统计 loopstats peerstats clockstats filegen loopstats 文件 loopstats 类型 day enable filegen peerstats 文件 peerstats 类型 day enable filegen clockstats 文件 clockstats 类型 day enable 服务器 0.debian.pool.ntp.org iburst 动态 服务器 1.debian.pool.ntp.org iburst 动态 服务器 2.debian.pool.ntp.org iburst 动态 服务器 3.debian.pool.ntp.org iburst 动态 限制 -4 默认 kod notrap nomodify nopeer noquery 限制 -6 默认 kod notrap nomodify nopeer noquery 限制 127.0.0.1 限制 ::1

那么,你知道问题可能是什么吗?

提前致谢,

威尔默

【问题讨论】:

  • 你能包含你的 check_command 吗?

标签: linux debian nagios ntp


【解决方案1】:

我在 ubuntu 和 ntp 上遇到过类似的问题。时间急剧流逝,nagios 报告 NTP CRITICAL:偏移未知。 检查您的 vmware timesync 的状态

#vmware-toolbox-cmd timesync status
Disable

如果您发现它被禁用,请启用它。

#vmware-toolbox-cmd timesync enable
Enabled

对我的情况有所帮助。也可能对你有帮助。我认为这不符合 vmware 最佳实践,但它确实有效。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-29
    相关资源
    最近更新 更多