Re: email critical logs to me

From: Bret Hughes (bhughes_at_elevating.com)
Date: 10/23/03

  • Next message: Edward Smith: "Remote Desktops"
    To: redhat-list@redhat.com
    Date: 23 Oct 2003 15:26:37 -0500
    
    

    On Thu, 2003-10-23 at 11:14, Genti Hila wrote:
    > Hello,
    >
    > I have an Linux Box that acts as an NTP (network time protocol) server and i would like to sent the critical logs, especially if the ntpd daemon stops.
    >
    > Can anybody give some directions on that ?
    >
    > Any idea is appreciated
    >
    > Genti

    this is the only issue I have with ntpd:

    If the daemon stops or in one case I had a smp machine that would skew
    the time faster than ntp would keepup with it so I created a script taht
    would check all the machines listed in a file and do some ugly hacks to
    figure out if the box was synced or not. I run it via cron
    periodically:

    I will put the script at

    http://www.elevating.com/bret/checktime.pl

    browser readable :
    http://www.elevating.com/bret/checktime.pl.txt

    if you are interested.

    I have been playing with a better way to do this using ntpdc. For
    instance

    ntpdc -c sysinfo |awk '/stratum/ {print $2}'

    will print the stratum that the peer of the machine is running at. On
    my machines if it is synced it usually prints 2 or 3 depending on the
    server it is synced to. If a box is not synced it prints 11 since that
    is the stratum I set the local fudge to. At least I think that is
    right.

    HTH

    Bret

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Edward Smith: "Remote Desktops"

    Relevant Pages

    • Re: [SLE] SuSE 10.0 NTP Server
      ... to SuSE 10.0 becuase the freebsd box will be retired. ... box's can't bind to the ntp server and sync off of it. ... Checking for network time protocol daemon: ...
      (SuSE)
    • Re: [SLE] SuSE 10.0 NTP Server
      ... to SuSE 10.0 becuase the freebsd box will be retired. ... box's can't bind to the ntp server and sync off of it. ... Shutting down network time protocol daemon done ...
      (SuSE)
    • Re: simple time server
      ... When I said the server would give out local system time, ... Not as good as NTP, ... SNTP or Simple Network Time Protocol is much easier to implement but not as accurate. ...
      (comp.protocols.time.ntp)
    • Re: Suse 10 and the realtime clock
      ... To know about NTP use Google: ... the home of the Network Time Protocol. ... Give this server name to the NTP client and your time will be OK. ...
      (alt.os.linux.suse)
    • Re: broadcast client
      ... synchronizing with the same ntp server. ... ntp displined clock. ... because the drift discipline is inversely ... The reason for the backup to long poll intervals is ...
      (comp.protocols.time.ntp)