Comment 3 for bug 1934876

Revision history for this message
Nobuto Murata (nobuto) wrote :

Just for the record from the actual environment.

[peers=20 by using the default pools]

$ juju run-action --wait nrpe/0 run-nrpe-check name=check-ntpmon
unit-nrpe-0:
  UnitId: nrpe/0
  id: "12"
  results:
    check-output: 'OK: offset is 0.000289 | frequency=0.234000 offset=0.000289 peers=20
      reach=96.875000 result=0 rootdelay=0.001704 rootdisp=0.000376 runtime=17650
      stratum=2 sync=1.000000 sysjitter= sysoffset=-0.000064300 tracehosts= traceloops=
      tracetime='
  status: completed
  timing:
    completed: 2022-03-15 12:07:43 +0000 UTC
    enqueued: 2022-03-15 12:07:42 +0000 UTC
    started: 2022-03-15 12:07:43 +0000 UTC

[peers=3]

$ juju run-action --wait nrpe/0 run-nrpe-check name=check-ntpmon
unit-nrpe-0:
  UnitId: nrpe/0
  id: "18"
  results:
    check-output: 'WARNING: Number of peers is too low (3) - should be greater than
      3 | frequency=0.234000 offset=0.000573 peers=3 reach=62.500000 result=0 rootdelay=0.226154
      rootdisp=0.031747 runtime=114 stratum=3 sync=1.000000 sysjitter= sysoffset=-0.000342362
      tracehosts= traceloops= tracetime='
  status: completed
  timing:
    completed: 2022-03-15 12:11:29 +0000 UTC
    enqueued: 2022-03-15 12:11:29 +0000 UTC
    started: 2022-03-15 12:11:29 +0000 UTC