On 10/10/12 23:41, Stefan Reisenbauer wrote:
Hello all,
how do you generate these reports where you can see how many clients
connect to your NTP Server in a second?
I'm doing this this way:
secs=$(ntpdc -c iostats | grep time | awk ' { print $NF }')
r=$(ntpdc -c iostats | grep -E "received packets|packets sent" | awk
'{print $NF }')
in=$(echo "${r}" | head -n 1)
ou=$(echo "${r}" | tail -n 1)
to=$((${in}+${ou}))
echo $(($to/$secs)
But of course, it's a dirty way - any better ideas?
all the best,
stefan
_______________________________________________
pool mailing list
[email protected]
http://lists.ntp.org/listinfo/pool
For traffic and packet stats I've recently started to use rrdtool and
been pulling the data from shorewall firewalls accounting, mostly
because shorewall gives byte counts as well as packet counts. Would
work with rrdtool and ntpq -c iostats also and it produces nice graphs
as well, I have scripts to obtain client counts etc also that I use.
_______________________________________________
pool mailing list
[email protected]
http://lists.ntp.org/listinfo/pool