summaryrefslogtreecommitdiffstats
path: root/plugins/check_ntp.c
AgeCommit message (Collapse)AuthorFilesLines
2023-10-19check_ntp: Use C99 booleansrefs/pull/1948/headRincewindsHat1-13/+14
2023-10-19Revert "check_ntp: Use C99 booleans"RincewindsHat1-13/+13
This reverts commit ca5af12f9475775179a599875bf7cf8d3296f02a.
2023-10-18check_ntp: Use C99 booleansRincewindsHat1-13/+13
2023-10-03Fix some more typosrefs/pull/1931/headRincewindsHat1-1/+1
2023-04-14Fix a lot of typos reported by codespellrefs/pull/1864/headJan Wagner1-5/+5
2022-09-14Check ntp remove unused variables (#1781)Lorenz1-4/+4
* Remove unused argument * Fix typo in comment
2016-12-01Spelling fixes suggested by lintianrefs/pull/1452/headJan Wagner1-2/+2
2016-11-07Merge pull request #1311 from waja/check_ntp_remove_unused_variablesSven Nierlein1-4/+2
check_ntp: remove unused variables
2015-10-04use unknown exit code for help/version in pluginsSven Nierlein1-2/+2
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-12-27check_ntp: remove unused variablesrefs/pull/1311/headSebastian Herbszt1-4/+2
Remove unused variables. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2014-12-01check_ntp: Nul-terminate jitter dataHolger Weiss1-1/+11
Make sure the jitter response is nul-terminated before parsing the data using string functions.
2014-11-30Revert "plugins/check_ntp.c - Verify struct from response"Holger Weiss1-11/+2
This reverts commit a04df3e1b67dc5eab3adc202cc89901f801cdeaa. The "fix" was bogus in many ways and broke jitter checking. Conflicts: plugins/check_ntp.c
2014-11-26check_ntp: fix null terminationSebastian Herbszt1-1/+1
Fix null termination introduced by commit a04df3e ("plugins/check_ntp.c - Verify struct from response"). Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2014-06-28plugins/check_ntp.c - Verify struct from responseSpenser Reinhardt1-2/+11
Coverity 66524 - req.data is not neccessarily null terminated but still feed to printf statements. This both does that, and verifies the struct more so than before. - SR
2014-01-24Fixing bug in average calculation (Submitted by Lars)Jan Wagner1-1/+1
The more important change: A fix for a bug which caused the check_ntp_time and check_ntp_time check to always take the first response from ntp and not the avarage since "j" is not increased anywhere. "i" should be used there instead. Partly Closes #956 and Closes #1166 Closes: #1089
2014-01-24Making AVG_NUM configurable by compiler define (Submitted by Lars)Jan Wagner1-0/+2
A minor change which makes the AVG_NUM configurable by compiler define. Partly Closed #956 and Closes #1166
2014-01-21Merge branch 'rename'Thomas Guyot-Sionnest1-3/+3
2014-01-21plugins/*.c: Alterations for timeout messages.Spenser Reinhardt1-1/+1
.c file changes for misleading timeout messages in help functions. Solution to pull request #1209 tracker by awiddersheim. Files: plugins/check_apt.c, plugins/check_by_ssh.c, plugins/check_dbi.c, plugins/check_dig.c, plugins/check_disk.c, plugins/check_dns.c, plugins/check_game.c, plugins/check_http.c, plugins/check_ldap.c, plugins/check_ntp.c, plugins/check_ntp_peer.c, plugins/check_ntp_time.c, plugins/check_nwstat.c, plugins/check_overcr.c, plugins/check_pgsql.c, plugins/check_ping.c, plugins/check_procs.c, plugins/check_radius.c, plugins/check_real.c, plugins/check_smtp.c, plugins/check_snmp.c, plugins/check_ssh.c, plugins/check_tcp.c, plugins/check_time.c, plugins/check_ups.c, plugins/negate.c
2014-01-20Capitalize "Monitoring" when it's the first wordHolger Weiss1-1/+1
2014-01-19Project rename initial commit.Monitoring Plugins Development Team1-3/+3
This is an initial take at renaming the project to Monitoring Plugins. It's not expected to be fully complete, and it is expected to break things (The perl module for instance). More testing will be required before this goes mainline.
2012-11-28check_ntp(_time): don't die on connect errorsSven Nierlein1-1/+5
connect errors may happen if clients check agains dual stacked ipv4/6 ntp servers.
2012-11-28unified ipv4/6 usage and help textSven Nierlein1-1/+2
2012-06-29Die when asprintf failsAnders Kaseorg1-10/+10
Fixes many instances of warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2010-04-22Add newline after "Usage:" in --helpThomas Guyot-Sionnest1-1/+1
2010-04-22Standardize the extra-opts notesThomas Guyot-Sionnest1-4/+0
2010-04-14Fix translations when extra-opts aren't enabledThomas Guyot-Sionnest1-8/+8
Bug #2832884 reported problem with translations outputting pot file headers. This is caused by "" matching the header of the translation files. This patch moves gettext macros inside utils macros and update some french translations.
2010-04-14Update french translation (fix all fuzzy's)Thomas Guyot-Sionnest1-2/+2
2008-11-23Removing CVS/SVN tags and replacing with git-based versioningThomas Guyot-Sionnest1-6/+2
For contrib/, full tags have been imported from subversion git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2091 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-19Bulk EOL cleanupThomas Guyot-Sionnest1-5/+5
$ git diff --ignore-space-change|diffstat 0 files changed git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-19Fixed buffer overflow in check_ntp/check_ntp_peer (#1999319, Ubuntu #291265)Thomas Guyot-Sionnest1-1/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2086 f882894a-f735-0410-b71e-b25c423dba1c
2008-05-07Added support for --extra-opts in all C plugins (disabled by default, see ↵Thomas Guyot-Sionnest1-0/+9
configure --help) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1991 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-29Use UT_THRESHOLDS_NOTES in all pluginsThomas Guyot-Sionnest1-3/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1986 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-27--help output cleanup (plus removal of spaces on blank lines)Thomas Guyot-Sionnest1-1/+0
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1984 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-05check_ntp and check_ntp_peer now show proper jitter/stratum thresholds ↵Thomas Guyot-Sionnest1-2/+2
longopts in --help git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1977 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-30Bump plugins/ to GPLv3 (check_apt to check_nwstat)Thomas Guyot-Sionnest1-25/+22
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1916 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-29Fix bugs and flaws in best offset server selection of check_ntp_time and ↵Thomas Guyot-Sionnest1-33/+35
(deprecated) check_ntp git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1909 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-05Fix Bug #1862300: check_ntp_time segfault in 1.4.11 (Also apply to check_ntp)Thomas Guyot-Sionnest1-7/+14
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1887 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-11Adding missing function calls needed for i18n (only for plugins already in ↵Thomas Guyot-Sionnest1-0/+4
POTFILES.in) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1861 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-10OOPS! Last commit should have included these files.Thomas Guyot-Sionnest1-5/+5
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1858 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-04missing word in comment block.Thomas Guyot-Sionnest1-1/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1838 f882894a-f735-0410-b71e-b25c423dba1c
2007-11-23- Use max_state_alt in check_ntp to fix some issues with the latest commits.Thomas Guyot-Sionnest1-53/+10
- Roll back the stratum check as there were issues with it and a better one is already implemented in check_ntp_peer (about to be included) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1830 f882894a-f735-0410-b71e-b25c423dba1c
2007-11-10Fix newly added stratum check (has to be decreased by one when using normal ↵Thomas Guyot-Sionnest1-1/+3
NTP packets versus control packets) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1822 f882894a-f735-0410-b71e-b25c423dba1c
2007-10-25check_ntp now return UNKNOWN instead of WARNING if jitter isThomas Guyot-Sionnest1-6/+25
unavailable. If no offset threshold is specified and the offset is unavailable, will return UNKNOWN as well. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1811 f882894a-f735-0410-b71e-b25c423dba1c
2007-10-11Add stratum thresholds support for check_ntp (feature request #1703823)Thomas Guyot-Sionnest1-15/+56
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1806 f882894a-f735-0410-b71e-b25c423dba1c
2007-10-11Use provided threshold functions (no functionnal change apart the check for ↵Thomas Guyot-Sionnest1-38/+26
overlaping thresholds) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1805 f882894a-f735-0410-b71e-b25c423dba1c
2007-09-26Patch #1798774: check_ntp: honor ntp flagsThomas Guyot-Sionnest1-0/+9
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1799 f882894a-f735-0410-b71e-b25c423dba1c
2007-07-14check_ntp: Fixed typo in typo in argument sanity check. Thanks to Aurelien ↵Matthias Eble1-1/+1
Bompard (#1753506) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1756 f882894a-f735-0410-b71e-b25c423dba1c
2007-04-10- Fix possibility of printing scientific numbers in perfdataThomas Guyot-Sionnest1-12/+36
- Use fperfdata function for perfdata formatting - Make the printing part a bit more flexible (similar to check_disk) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1678 f882894a-f735-0410-b71e-b25c423dba1c
2007-04-04Fix for getting dispersion instead of jitter on older servers (like xntpd on ↵Thomas Guyot-Sionnest1-2/+13
Solaris). git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1676 f882894a-f735-0410-b71e-b25c423dba1c
2007-04-03Fix the synchronization source selection on big-endian systems.Holger Weiss1-2/+2
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1675 f882894a-f735-0410-b71e-b25c423dba1c