<html><head><title>Re: [smokeping-users] Read target hostname/IP from a script's output</title>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
</head>
<body>
<br><br>
<br>
<span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>RGRB> Hi guys.<br>
<br>
RGRB> My goal is to monitor the latency between my LAN and my PPPoE peer (the<br>
RGRB> concentrator). I find out the IP address of the concentrator by using<br>
RGRB> "traceroute" in a shell script.<br>
<br>
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>
<br>
RGRB> I didn't find anything useful on Google, nor did I find anything in the<br>
RGRB> docs.<br>
<br>
RGRB> Can you please help?<br>
<br>
RGRB> KR,<br>
<br>
RGRB> Ralf<br>
<br>
</b><span style=" color: #000000;">I see two options.<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>
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>
<br>
I'm not aware of any other way to do what you want to do. And the second is, IMO, far less prone to issues.<br>
<br>
HTH<br>
<br>
-Greg<br>
<br>
<br>
</body></html>