Skip to content

os::linux::local::plugin --mode=ntp --ntp-mode=ntpq: No peers detected #5500

Open
@joschi99

Description

@joschi99

The parsing of the ntp peers seem's not working correctly:

./centreon_plugins.pl --hostname=x.x.x.x --ssh-backend=sshcli --ssh-username=user --sshcli-option='-o=StrictHostKeyChecking=no' --plugin=os::linux::local::plugin --mode=ntp --ntp-mode=ntpq --warning-offset=-30000:30000 --critical-peers=1: --critical-offset=-50000:50000 --ssh-port=22 --debug
CRITICAL: Number of ntp peers: 0 | 'peers.detected.count'=0;;1:;0;
command response:      remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 172.27.21.3     185.232.69.65    3 u  864 1024    3    0.248   +0.192   0.027
 172.27.21.4     213.172.105.106  3 u  801 1024    3    0.335   -0.039   0.213

This test is done with latest version 20250300

the chrony mode is working.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions