<div dir="ltr">On Mon, Jul 1, 2013 at 2:25 AM, Paul Mansfield <span dir="ltr"><<a href="mailto:paul.mansfield+smokeping@grapeshot.co.uk" target="_blank">paul.mansfield+smokeping@grapeshot.co.uk</a>></span> wrote:<br>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 1 July 2013 10:20, puneet bhardwaj <<a href="mailto:puneetbhrdwj02@gmail.com">puneetbhrdwj02@gmail.com</a>> wrote:<br>
> Yes I want to measure network latency between my smokeping monitoring<br>
> server and all clients who have been allocated a DHCP address and also the<br>
<br>
</div>I would suggest using cacti and monitor switch ports instead.<br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br></div><div style>While it is certainly possible to measure latency to your clients, DHCP allocated addresses add some behaviors that are somewhat incompatible with long-term measurements. DHCP hands out addresses on request. These addresses have a lease lifetime and the device that requested the address will be required to renew prior to the expiration of the lease. There is no guarantee that the device will always receive the same IP address, although it is very likely. Further problems arise when devices with an allocated address leave the network - a cell phone on WiFi, for example, will travel away from the network and therefore the address is no longer active or may be reassigned to a different device. This will generate graphs with holes, spikes and all kinds of noisy information.</div>
<div style><br></div><div style>Assuming you're going to continue down this path, you'll need to find the dhcpd.leases file on your DHCP server. In a Linux installation, the file is normally located at /var/lib/dhcp3/dhcpd.leases. You'll then need to write a script to read this file, extract IP addresses, generate a set of Smokeping targets in your smokeping configuration file and finally reload Smokeping. You may also want to remove targets from leases that are no longer active, or not...</div>
<div style><br></div><div style>Bandwidth measurement is not a strength of Smokeping. As mentioned by Paul Mansfield, you will want to use a different solution that can read SNMP information from your managed switch to retrieve the number of packets being sent and received.</div>
<div style><br></div><div style>Best,</div><div style><br></div><div style>Dan</div><div style><br></div><div style><br></div><div style><br></div></div>
</div></div>