[ntp:questions] Monitoring Number of Clients

Mike Cook michael.cook at sfr.fr
Tue Feb 7 16:23:19 UTC 2017


> Le 6 févr. 2017 à 21:10, Johannes Weber <johannes at webernetz.net> a écrit :
> 
> Hello NTP list,
> 
> I have one question concerning the monstats and mrulist commands. I am
> monitoring my NTP servers and I want to graph the current clients. I am
> using the "addresses" line from the monstats output.
> However, it seems that every client that is gone many days ago (!) is
> still listed within the "addresses" section and not only in the "peak
> addresses". Same is true within the mrulist output which lists addresses
> that have a lstint many days ago.
> 
> So my question is: How can I get a number of the "most recent" clients,
> i.e., clients that have a lstint < 2000 or the like. (One bad approach
> might be to use the mrulist output and to grep all lines that have an
> lstint < 2000. But I am searching for a better way to do it.)
> 

grep is great.

> Thanks in advance!

but try:
ntpq -c "mrulist mincount=2000"

There are a number of newish knobs to twiddle in ntp.conf as well with which to tailor the data collection strategy. 

> 
> Johannes
> 
> -- 
> Johannes Weber
> Webernetz.net - Network Security Consulting
> mail:    johannes at webernetz.net
> mobile:  +49 174 1880211
> 
> blog:    https://blog.webernetz.net
> twitter: @webernetz [1] 
> 
> Links:
> ------
> [1] https://twitter.com/webernetz
> _______________________________________________
> questions mailing list
> questions at lists.ntp.org
> http://lists.ntp.org/listinfo/questions

"The power of accurate observation is commonly called cynicism by those who have not got it. »
George Bernard Shaw



More information about the questions mailing list