summaryrefslogtreecommitdiffstats
path: root/plugins/check_ntp_peer.c
AgeCommit message (Collapse)AuthorFilesLines
2007-12-04Cleanups onlyThomas Guyot-Sionnest1-16/+16
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/dermoth_ntp_rework@1842 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-04Add a quiet mode to avoid notification when NTP server isn't sync ↵Thomas Guyot-Sionnest1-14/+27
(check_ntp_peer and heck_ntp_time) Fix default jitter and stratum ranges not including -1 git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/dermoth_ntp_rework@1840 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-04Small cleanupsThomas Guyot-Sionnest1-2/+6
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/dermoth_ntp_rework@1839 f882894a-f735-0410-b71e-b25c423dba1c
2007-11-27Safer handling of te data pointer...Thomas Guyot-Sionnest1-4/+3
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/dermoth_ntp_rework@1837 f882894a-f735-0410-b71e-b25c423dba1c
2007-11-26Fix bug introduced in last commit: jitter and stratum must be initialized at ↵Thomas Guyot-Sionnest1-1/+2
the begining (and /me must have some rest now). git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/dermoth_ntp_rework@1836 f882894a-f735-0410-b71e-b25c423dba1c
2007-11-26- fix segfault in extract_value called with no data (should never happen though)Thomas Guyot-Sionnest1-48/+82
- Will now retry with empty getvar request if all else fail and parse what it can - check_ntp used to get the average of all candidates of there's no sync peer. Average of a clock offset isn't obvious, so it gets the offset, jitter and stratum of the best candidate (based of current ooffset) - Various fixes - check conversion of stratum (using strtol instead of atoi) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/dermoth_ntp_rework@1835 f882894a-f735-0410-b71e-b25c423dba1c
2007-11-23comments and notesThomas Guyot-Sionnest1-1/+13
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/dermoth_ntp_rework@1833 f882894a-f735-0410-b71e-b25c423dba1c
2007-11-23Rename check_ntp* and merge change in TrunkThomas Guyot-Sionnest1-0/+618
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/dermoth_ntp_rework@1832 f882894a-f735-0410-b71e-b25c423dba1c