check_timex: add new plugin (#1344)

Sami Kerola <[email protected]>
Newsgroups gmane.network.nagios.devel
Message-ID <monitoring-plugins/monitoring-plugins/pull/[email protected]>
This plugin uses ntp_adjtime() function to read and report system time
using struct timex values.  Check is similar to check_ntp_time, but with
a difference being completely local execution.	This has some desirable
effects, such as:

1) This check runs very quickly.

2) The status of clock is reported from solely systems point of view,
i.e., a small network hiccup or public DNS failure will not cause
spurious failures

3) The check works when clock is syncronized with something else than
ntp, such as ptp.

Main difference of the check_timex and check_ntp_time is units used in
--warning and --critical arguments.  This check is using microseconds,
while the check_ntp_time is using seconds.  That means one should not
interchange these checks without additional configuration changes.
You can view, comment on, or merge this pull request online at:

  https://github.com/monitoring-plugins/monitoring-plugins/pull/1344

-- Commit Summary --

  * check_timex: add new plugin

-- File Changes --

    M .gitignore (1)
    M THANKS.in (1)
    M configure.ac (5)
    M plugins/Makefile.am (5)
    A plugins/check_timex.c (174)
    M po/POTFILES.in (1)

-- Patch Links --

https://github.com/monitoring-plugins/monitoring-plugins/pull/1344.patch
https://github.com/monitoring-plugins/monitoring-plugins/pull/1344.diff

-- 
Reply to this email on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/pull/1344
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.