<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Gregory.<br>
<br>
Thanks for your response.<br>
<br>
On 2014-10-30 15:13 , Gregory Sloop wrote:<br>
</div>
<blockquote cite="mid:1209614953.20141030071345@sloop.net"
type="cite">
<title>Re: [smokeping-users] Read target hostname/IP from a
script's output</title>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<span style=" font-family:'courier new'; font-size: 9pt; color:
#800000;"><b>RGRB> How can I set up SmokePing so that instead
of a fixed hostname the<br>
RGRB> output of the above script can be used?<br>
</b><span style=" color: #000000;"><br>
<br>
A) Use your script and extend it to re-write the target
fqdn/ip in your smokeping configuration and then restart
smokeping to load it.<br>
</span></span></blockquote>
That's ugly. I also had that idea and discarded it immediately. ;-)<br>
<blockquote cite="mid:1209614953.20141030071345@sloop.net"
type="cite"><span style=" font-family:'courier new'; font-size:
9pt; color: #800000;"><span style=" color: #000000;">
B) Use a dynamic IP service like dyndns, and put in the dyndns
fqdn in your smokeping config, and use the script to update
where the dyndns FQDN points to. This will get a new dns
lookup every time smokeping runs it, and so will always point
at the correct target, as long as your script works.<br>
</span></span></blockquote>
I considered a slightly more elegant solution, but still find it not
to be <i>as</i> elegant and simple as I want it to be.<br>
<br>
My idea was to use "nsupdate" to update an internal dynamic zone in
my DNS (which is similar to what you suggest, but "more elegant" in
that it doesn't rely upon an external service). But I discarded that
as well since I thought it was kind of "overkill," and I didn't know
whether SmokePing would eventually cache the nameserver lookup.<br>
<br>
Any other ideas, anyone?<br>
<br>
Thank you.<br>
<br>
KR,<br>
<br>
Ralf<br>
</body>
</html>