The ntp package is removed from hosts running systemd-timesyncd for clock synchronization. That makes diamond fail as follows:
Feb 06 14:41:47 cp4002 diamond[941]: Unable to run ['/usr/bin/ntpq', '-np'] Feb 06 14:41:47 cp4002 diamond[941]: Traceback (most recent call last): Feb 06 14:41:47 cp4002 diamond[941]: File "/usr/share/diamond/collectors/ntpd/ntpd.py", line 50, in run_command Feb 06 14:41:47 cp4002 diamond[941]: stdout=subprocess.PIPE).communicate()[0] Feb 06 14:41:47 cp4002 diamond[941]: File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ Feb 06 14:41:47 cp4002 diamond[941]: errread, errwrite) Feb 06 14:41:47 cp4002 diamond[941]: File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child Feb 06 14:41:47 cp4002 diamond[941]: raise child_exception Feb 06 14:41:47 cp4002 diamond[941]: OSError: [Errno 2] No such file or directory Feb 06 14:41:47 cp4002 diamond[941]: Unable to run ['/usr/bin/ntpdc', '-c', 'kerninfo'] Feb 06 14:41:47 cp4002 diamond[941]: Traceback (most recent call last): Feb 06 14:41:47 cp4002 diamond[941]: File "/usr/share/diamond/collectors/ntpd/ntpd.py", line 50, in run_command Feb 06 14:41:47 cp4002 diamond[941]: stdout=subprocess.PIPE).communicate()[0] Feb 06 14:41:47 cp4002 diamond[941]: File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ Feb 06 14:41:47 cp4002 diamond[941]: errread, errwrite) Feb 06 14:41:47 cp4002 diamond[941]: File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child Feb 06 14:41:47 cp4002 diamond[941]: raise child_exception Feb 06 14:41:47 cp4002 diamond[941]: OSError: [Errno 2] No such file or directory
Should we remove /usr/share/diamond/collectors/ntpd/ if systemd-timesyncd is in use?