<div dir="ltr"><div>thanks Greg for that tip ! --  I did a few things and now it seems to be working</div><div><br></div><div>1) added the 
 latest installed version of tcptraceroute (manual compile/installation) to update-alternatives <br></div><div>2) removed all other alternatives for tcptraceroute , leaving only the latest installed version. <br></div><div>3) setuid on tcpping binary</div><div>4) setuid on tcpptraceroute  <br></div><div><br></div><div>might not have needed #2, maybe just configure update-alternatives to use the latest.. but just in case...</div><div>at this point smokeping is now updating the rrd and graphing as expected =)</div><div><br></div><div><br></div><div>thanks for all the help</div><div><br></div><div>Christian <br></div><br></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 26, 2018 at 11:13 AM Gregory Sloop <<a href="mailto:gregs@sloop.net">gregs@sloop.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>
<span style="font-family:'Courier New';font-size:9pt">TCPPing generally requires root.<br>
Thus, when you run at the CLI, [presumably as root] it works.<br>
When you run it as smokeping it doesn't.<br>
<br>
Google "setuid" for general direction as how to solve it.<br>
I think something like [chmod u+s /location/of/some/tcpping-binary] will set the UID bit properly. <br>
<br>
HTH<br>
<br>
-Greg<br>
<br>
<a name="m_-7438304080047897801_m_-2279144967907025624m_-280749822311238026m_5574185271714476433AppleMailSignature"></a>
</span><table>
<tr>
<td width="2" bgcolor="#0000ff"><br>
</td>
<td><span style="font-family:'courier new';font-size:9pt">Hi all <br>
<br>
just to add ,  if I run smokeping --debug-daemon,  the graph generates....wth... <br>
<br>
On Mon, Nov 26, 2018 at 9:50 AM Christian Vo <</span><a style="font-family:'courier new';font-size:9pt" href="mailto:christian.vo@gmail.com" target="_blank">christian.vo@gmail.com</a><span style="font-family:'courier new';font-size:9pt">> wrote:<br>
hi Igor,<br>
<br>
thanks for the tip -->  I re-installed tcptraceroute and now<br>
1) from smokeping --debug , I can see proper data collected and smokeping seems to graph the value as expected (good)<br>
2) however, when I run smokeping as a daemon,  it doesn't seem to graph (bad) <br>
<br>
the newer tcptraceroute was installed into /usr/local/bin,  and I tried sym-link to /usr/sbin/tcptraceroute<br>
tcpping is still there as /usr/sbin/tcpping<br>
<br>
I'm not sure it's a tcpping issue at this point, but I checked  the imagecache and datadir , perfmissions seem to be ok.<br>
as a test (new target anyhow) I deleted the rrd and imagecache folder for this target, but new graph still doesn't show anything.<br>
I can see timestamp update on the rrd file but nothing gets generated in the graph.<br>
<br>
any ideas?  it could be something really simple that I missed, but I'm drawing blanks =(<br>
<br>
Christian<br>
<br>
<br>
<br>
<br>
On Sun, Nov 25, 2018 at 12:08 PM Маценко Игорь <</span><a style="font-family:'courier new';font-size:9pt" href="mailto:Aikanaro@live.ru" target="_blank">Aikanaro@live.ru</a><span style="font-family:'courier new';font-size:9pt">> wrote:<br>
Hi Christian, <br>
<br>
It has something to do with the tcptraceroute package, I had the same issue. I remember what I did was re-installed tcptraceroute package and it worked. <br>
<br>
Thanks, <br>
Igor<br>
<br>
On Nov 25, 2018, at 2:59 PM, Christian Vo <</span><a style="font-family:'courier new';font-size:9pt" href="mailto:christian.vo@gmail.com" target="_blank">christian.vo@gmail.com</a><span style="font-family:'courier new';font-size:9pt">> wrote:<br>
<br>
Hi Igor,  <br>
<br>
Both tcptraceroute and tcpping are in the same folder. I notice issue seems to be related to the script being called with -c option? If I run  the command manually with this flag, it doesnt return the values.. not sure where I'd fix this, anyone? <br>
<br>
<br>
On Wed, Nov 21, 2018, 8:53 PM Маценко Игорь <</span><a style="font-family:'courier new';font-size:9pt" href="mailto:Aikanaro@live.ru" target="_blank">aikanaro@live.ru</a><span style="font-family:'courier new';font-size:9pt"> wrote:<br>
Hi Christian,<br>
 <br>
I had similar issue, make sure you have installed packed called tcptraceroute/traceroute(that’s solved my issue) on the box that you are running smokeping instance from. I am 100% sure that’s the issue. <br>
Ubuntu: <span style="font-family:'consolas';color:#333333">sudo apt-get install tcptraceroute<br>
<br>
<span style="font-family:'courier new';color:#000000">Also, have you tried running smokeping in debug mode? It could shed some light.<br>
 <br>
Thanks,<br>
Igor<br>
 <br>
<hr style="height:2px;color:#000000;background-color:#000000;border-width:0px"><span style="font-family:'calibri';font-size:11pt"><b>From:</b> smokeping-users <smokeping-users-bounces+aikanaro=</span></span></span></span><a style="color:#000000;font-family:'calibri';font-size:11pt" href="mailto:live.ru@lists.oetiker.ch" target="_blank">live.ru@lists.oetiker.ch</a><span style="font-family:'calibri';font-size:11pt">> on behalf of Christian Vo <</span><a style="color:#000000;font-family:'calibri';font-size:11pt" href="mailto:christian.vo@gmail.com" target="_blank">christian.vo@gmail.com</a><span style="font-family:'calibri';font-size:11pt">><br>
<b>Sent:</b> Wednesday, November 21, 2018 10:23:48 PM<br>
<b>To: </b></span><a style="color:#000000;font-family:'calibri';font-size:11pt" href="mailto:smokeping-users@lists.oetiker.ch" target="_blank">smokeping-users@lists.oetiker.ch</a><br>
<span style="font-family:'calibri';font-size:11pt"><b>Subject:</b> [smokeping-users] TCPPing - glob -- how to fix this? <br>
 <br>
<span style="font-family:'courier new';font-size:9pt">(Sorry if it's been asked, but google search didn't clearly explain how to resolve this =()<br>
<br>
<br>
I'm trying to implement a probe using TCPPing <br>
I have the script working along with tcptraceroute (i.e. works via CLI fine)<br>
<br>
however, smokeping isn't generating any data against the target host,<br>
and from debug allI see is the following:<br>
<br>
TCPPing: forks 5, timeout for each target 301<br>
TCPPing: Executing /usr/sbin/tcpping -C -x 20 </span></span><a style="font-family:'courier new';font-size:9pt" href="http://host.somewhere.com" target="_blank">host.somewhere.com</a><span style="font-family:'courier new';font-size:9pt"> 443<br>
TCPPing: Received: GLOB(0x2e388e8)<br>
TCPPing:  </span><a style="font-family:'courier new';font-size:9pt" href="http://host.somewhere.com" target="_blank">host.somewhere.com</a><span style="font-family:'courier new';font-size:9pt">: got <br>
(Nothing else afterwards related to TCPPing, just FPING targets and related results)<br>
<br>
I tried to search on " TCPPing: Received: GLOB(0x2e388e8)"<br>
which got me this: </span><a style="font-family:'courier new';font-size:9pt" href="https://github.com/oetiker/SmokePing/issues/60" target="_blank">https://github.com/oetiker/SmokePing/issues/60</a><br>
<span style="font-family:'courier new';font-size:9pt">but I'm not sure if I'm missing something...<br>
<br>
my Probe definition:<br>
<br>
+ TCPPing<br>
<br>
binary = /usr/sbin/tcpping<br>
forks = 5<br>
step = 300<br>
offset = 50%<br>
timeout = 15<br>
<br>
my Target definition:<br>
<br>
probe = TCPPing<br>
menu = zoom<br>
title =  </span><a style="font-family:'courier new';font-size:9pt" href="http://host.somewhere.com" target="_blank">host.somewhere.com</a> <br>
<span style="font-family:'courier new';font-size:9pt">host =  </span><a style="font-family:'courier new';font-size:9pt" href="http://host.somewhere.com" target="_blank">host.somewhere.com</a> <br>
<span style="font-family:'courier new';font-size:9pt">port = 443<br>
<br>
Pls help,<br>
<br>
Chris<br>
</span></td>
</tr>
</table>
<br><br>
</div>_______________________________________________<br>
smokeping-users mailing list<br>
<a href="mailto:smokeping-users@lists.oetiker.ch" target="_blank">smokeping-users@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users" rel="noreferrer" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a><br>
</blockquote></div>