I can verify that changing the script to ntpq on my side worked fine. Here's the svn diff:
root@observium:/opt/observium# svn diff Index: scripts/agent-local/ntpd =================================================================== --- scripts/agent-local/ntpd (revision 9109) +++ scripts/agent-local/ntpd (working copy) @@ -15,7 +15,7 @@ // START SETTINGS ///
$ntpq = "ntpq"; - $ntpdc = "ntpdc"; + $ntpdc = "ntpq";
// END SETTINGS ///
@@ -85,4 +85,4 @@
doUnixAgent($vars, $vars2);
-?> \ No newline at end of file +?> root@observium:/opt/observium#
...Ron
On 2018-03-22 04:10, Adam Armstrong wrote:
Seems like we should just switch to ntpq as default then!
Adam.
Sent from BlueMail [6] On 22 Mar 2018, at 06:01, Adrian Murphy amurphy@gsoft.com.au wrote:
On 22 Mar 2018, at 4:01 pm, Adam Armstrong adama@observium.org wrote:
I'm not at all familiar with NTP, so I'm not sure what the difference between these two tools is, or why one wouldn't work :)
Does anyone else know?
ntpdc is deprecated. It has probably been removed one installations of ntpd.
https://www.eecis.udel.edu/~mills/ntp/html/ntpdc.html [1]
Adrian
adam.
Adam Armstrong Managing Director & Lead Architect Observium Limited http://www.observium.org [2] http://docs.observium.org [3] http://jira.observium.org [4] On 2018-03-19 17:55:39, Ron Marosko ron@rjr-services.com wrote:
Howdy Adam, et. al.,
I’ve run into an issue with the agent ntpd script on certain of my servers where the command “ntpdc -c iostats” times out with no response. However, the equivalent command used with ntpq works fine and provides the correct information Witness:
root@observium:/opt/observium# ntpdc -c iostats
localhost: timed out, nothing received
***Request timed out
root@observium:/opt/observium# ntpq -c iostats
time since reset: 1116387
receive buffers: 10
free receive buffers: 9
used receive buffers: 0
low water refills: 1
dropped packets: 0
ignored packets: 0
received packets: 140116
packets sent: 145459
packet send failures: 0
input wakeups: 140118
useful input wakeups: 140118
root@observium:/opt/observium#
Yes, that is actually on the VM running observium.
For simplicity of minimum changes to the script, I made the following change:
// START SETTINGS ///
$ntpq = "ntpq";
$ntpdc = "ntpq";
// END SETTINGS ///
End result is this:
You can see where I made the change to the script yesterday afternoon.
The related version of ntpd is: ntpd - NTP daemon program - Ver. 4.2.8p4
I don’t know if you want to push this out as a change overall, but wanted to make you aware of this so that it’s documented somewhere at least.
Regards,
Ron
--
Ron Marosko, Jr.
. . . . . . . . . . . . . . . . . . . . . . . . . .
CCIE No. 4526 (R/S), NN5DX
Senior Network Engineer
RJR Services, Inc.
1108 West Dickinson Blvd, Suite A
Fort Stockton, TX 79735 USA
o: +1 432 336 5600 x115
c: +1 432 290 6344
e: ron@rjr-services.com
pgp pubkey: 0x58AB8B5C
"To know me is to fly with me."
-- This message has been scanned for viruses and dangerous content by E.F.A. Project, and is believed to be clean.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [5]
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [5]
Links:
[1] https://www.eecis.udel.edu/~mills/ntp/html/ntpdc.html [2] http://www.observium.org [3] http://docs.observium.org [4] http://jira.observium.org [5] http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [6] http://www.bluemail.me/r?b=12512
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium