2011-12-20 70 views
1

我运行一个虚拟化(VMware的)的Debian(2.6.26-2-686),我通过Nagios的监控。最后,我得到了以下严重错误(由_check_ntp_peer_脚本报道):Nagios的check_ntp_peer不工作

 
    NTP CRITICAL: Server not synchronized, Offset unknown 

它要求我衡量某人

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

 

    tinker panic 0 

    driftfile /var/lib/ntp/ntp.drift 

    statistics loopstats peerstats clockstats 
    filegen loopstats file loopstats type day enable 
    filegen peerstats file peerstats type day enable 
    filegen clockstats file clockstats type day enable 


    server 0.debian.pool.ntp.org iburst dynamic 
    server 1.debian.pool.ntp.org iburst dynamic 
    server 2.debian.pool.ntp.org iburst dynamic 
    server 3.debian.pool.ntp.org iburst dynamic 

    restrict -4 default kod notrap nomodify nopeer noquery 
    restrict -6 default kod notrap nomodify nopeer noquery 

    restrict 127.0.0.1 
    restrict ::1 

因此,任何想法?

由于提前,

威尔默

+0

你可以包括你的check_command? – 2013-03-08 04:22:09

回答

0

我对Ubuntu和NTP类似的问题。时间急剧漂流关闭和Nagios的报道NTP CRITICAL:胶印未知。 检查您的VMware的状态时间同步

#vmware-toolbox-cmd timesync status 
Disable 

启用它,如果你发现它被禁用。

#vmware-toolbox-cmd timesync enable 
Enabled 

帮助了我的情况。可能对你也有帮助。我认为这是不符合VMware的最佳实践,但它的工作原理。