I don't see anything obviously wrong.  Perhaps the shell that open invokes is 
changing them.  Try open with just three arguments instead, like

open (my $sak, '-|', "$self->{properties}{binary} -vv -A $pingcount -s 
sip:$host " . join(' ',@extra_opts));

Another possibility is you are looking at an old invocation in ps and your run 
did not start a new sipsak???


-Russell Dwarshuis

----- Original Message -----
From: "Nicolas KARP" <[email protected]>
To: "<[email protected]>" <[email protected]>
Sent: Tuesday, July 16, 2013 12:09:48 PM
Subject: [smokeping-users] SipSak : host uri issue

Hi Everyone, 

As I'm not an expert in Perl, i don't really understand what is happening with 
this SipSak probe : 

Probe config : 

+ SipSak 
binary = /usr/local/bin/sipsak 
forks = 5 
offset = 50% 
step = 300 
timeout = 15 
params = --hostname myhost 

Traget config : 

++ SipGateway 
probe = SipSak 
host = hostip 
port = 5060 
user = nobody 



When I look at the "ps" output, here is what I see when smokeping executes the 
sipsak command : 

/usr/local/bin/sipsak -vv -A 20 -s sip nobody hostip 5060 --hostname myhost 

If I look at the code for the probe, the variable host should be something like 
: 

$host = $vars->{user}.'@'.$host if $vars->{user}; 
$host = $host . ':' . $vars->{port} if $vars->{port}; 


So in my case : "nobody@hostip:5060" 

But I don't know why the characters "@" and ":" were removed from the hostname 
when they are using with the command open : 


open (my 
$sak,'-|',$self->{properties}{binary},'-vv','-A',$pingcount,'-s','sip:'.$host,@extra_opts)
 


Any idea ? 

Many thanks. 


# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - - - - 

# - - Nicolas KARP 
# - - Network and Security Engineer 
# - - Email : [email protected] 
# - - Linkedin : http://www.linkedin.com/in/nicolaskarp 
# - - Viadeo : http://www.viadeo.com/fr/profile/ nicolas.karp 
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - - - - 



_______________________________________________
smokeping-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

_______________________________________________
smokeping-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Reply via email to