diff options
Diffstat (limited to 'web/attachments/122868-check_ntp.patch')
-rw-r--r-- | web/attachments/122868-check_ntp.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/web/attachments/122868-check_ntp.patch b/web/attachments/122868-check_ntp.patch new file mode 100644 index 0000000..b463ed6 --- /dev/null +++ b/web/attachments/122868-check_ntp.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | *** nagios-plugins-HEAD-200502231747/plugins-scripts/check_ntp.pl Fri Nov 19 14:59:43 2004 | ||
2 | --- nagios-plugins-NEW/plugins-scripts/check_ntp.pl Thu Feb 24 16:13:59 2005 | ||
3 | *************** | ||
4 | *** 200,209 **** | ||
5 | if (/(offset|adjust)\s+([-.\d]+)/i) { | ||
6 | $offset = $2; | ||
7 | |||
8 | - # An offset of 0.000000 with an error is probably bogus. Actually, | ||
9 | - # it's probably always bogus, but let's be paranoid here. | ||
10 | - if ($offset == 0) { undef $offset;} | ||
11 | - | ||
12 | $ntpdate_error = defined ($offset) ? $ERRORS{"OK"} : $ERRORS{"CRITICAL"}; | ||
13 | print "ntperr = $ntpdate_error \n" if $verbose; | ||
14 | |||
15 | --- 200,205 ---- | ||