<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma",sans-serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma",sans-serif;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Great question.   The DNS resolver checks to see if it  the named being queried is its own, then the local Host file first, cache, and then a DNS query.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m wondering if you could also use a secondary or tertiary DNS entry which would only be in your smkokeping host.  (This way you could run multiple smokeping hosts and only have to run one script.  The on this DNS server host run the script to populate the DNS table.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Let us know how it works out for you.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> smokeping-users [mailto:smokeping-users-bounces+doug.spindler=gmail.com@lists.oetiker.ch] <b>On Behalf Of </b>Joshua Cameron<br><b>Sent:</b> Sunday, April 10, 2016 4:36 PM<br><b>To:</b> smokeping-users@lists.oetiker.ch<br><b>Subject:</b> Re: [smokeping-users] DHCP handling<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'>Sorry, I mean whenever a device is added or removed from the network I’ll have to have the script re-write the config file then restart the service.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Is that going to cause any issues on Smokeping side? Restarting every couple days? I don’t think that it would but thought I’d ask.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif'> smokeping-users [<a href="mailto:smokeping-users-bounces+joshuac=ace.com.au@lists.oetiker.ch">mailto:smokeping-users-bounces+joshuac=ace.com.au@lists.oetiker.ch</a>] <b>On Behalf Of </b>Joshua Cameron<br><b>Sent:</b> Monday, April 11, 2016 9:33 AM<br><b>To:</b> <a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><br><b>Subject:</b> Re: [smokeping-users] DHCP handling<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'>Douglas,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Script to work with the host file sounds great.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Did a few tests with that idea and it looks like it’ll work.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Much appreciated.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>When the host is passed into FPing, will it check the hostfile everytime it’s run or will it cache the DNS requests?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Would I have to flush DNS cache whenever I change host file if something changes IP?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Whenever something changes IP address, I’ll have to have the script re-write the config file for Smokeping then restart the service.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Is that going to cause any issues on Smokeping side?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I’m just going to do this with my host file:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>IPADDRESS MAC.tld.com.au<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Then put the MAC.tld.com.au as the host in the Smokeping config file.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-AU style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-AU'>Joshua Cameron</span></b><i><span lang=EN-AU style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-AU'><o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-AU style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-AU'>Systems Administrator</span></i><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif'> Douglas Spindler [<a href="mailto:doug.spindler@gmail.com">mailto:doug.spindler@gmail.com</a>] <br><b>Sent:</b> Monday, April 11, 2016 9:02 AM<br><b>To:</b> Joshua Cameron; <a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><br><b>Subject:</b> RE: [smokeping-users] DHCP handling<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>BOOTP?  Or use a script to populate the  host file.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> smokeping-users [<a href="mailto:smokeping-users-bounces+doug.spindler=gmail.com@lists.oetiker.ch">mailto:smokeping-users-bounces+doug.spindler=gmail.com@lists.oetiker.ch</a>] <b>On Behalf Of </b>Joshua Cameron<br><b>Sent:</b> Sunday, April 10, 2016 3:56 PM<br><b>To:</b> <a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><br><b>Subject:</b> [smokeping-users] DHCP handling<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hey,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I use Smokeping for about 40 devices at the moment, but we’ve got around 200 more on the network I’d like to add to it.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>However some of the devices I want to monitor on our network can have dynamic IP addresses(DHCP), beside setting everything to static IPs which is never gonna happen, is there a way to keep the ping history data in Smokeping associated to a device across IP address changes?<o:p></o:p></p><p class=MsoNormal>Some sort of MAC address lookup or similar?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span lang=EN-AU style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-AU'>Joshua Cameron</span></b><i><span lang=EN-AU style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-AU'><o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-AU style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-AU'>Systems Administrator</span></i><i><span lang=EN-AU style='font-size:10.0pt;font-family:"Tahoma",sans-serif;mso-fareast-language:EN-AU'><o:p></o:p></span></i></p></div></body></html>