[smokeping-users] [Ticket #35] smokeping-users Digest, Vol 77, Issue 5

IT Department anghelflorin at globtel.ro
Tue Nov 12 18:32:31 CET 2013


This is a notification from the Help Desk.




On Nov 12, 2013 @ 05:32 pm, smokeping-users-request at lists.oetiker.ch wrote:
Send smokeping-users mailing list submissions to
	smokeping-users at lists.oetiker.ch

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
or, via email, send a message with subject or body 'help' to
	smokeping-users-request at lists.oetiker.ch

You can reach the person managing the list at
	smokeping-users-owner at lists.oetiker.ch

When replying, please edit your Subject line so it is more specific
than "Re: Contents of smokeping-users digest..."


Today's Topics:

   1. Alerts for different slaves (Nick Toseland)
   2. Re: rename of smokeping.cgi into index.cgi (Jean St-Laurent)
   3. SipSak : host uri issue (Nicolas KARP)
   4. Re: SipSak : host uri issue (Russell Dwarshuis)
   5. Re: Alerts for different slaves (Nick Toseland)
   6. Re: SipSak : host uri issue (Nicolas KARP)


----------------------------------------------------------------------

Message: 1
Date: Fri, 12 Jul 2013 18:02:17 +0100
From: Nick Toseland <nick at livejournalinc.com>
Subject: [smokeping-users] Alerts for different slaves
To: smokeping-users at lists.oetiker.ch
Message-ID: <51E03699.20407 at livejournalinc.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi All,

Is it possible to have alerts per slave?

I have a slave that is approx 140ms from the master.

If for instance I ping the www.bbc.co.uk from the master it is about 150 
ms RTT, from the slave it is 12ms..

I would like an alert to fire if the RTT from the master goes above 
200ms  and an alert if the RTT from the slave goes about 40ms

Many thanks

Nick



------------------------------

Message: 2
Date: Fri, 12 Jul 2013 21:18:49 +0200
From: Jean St-Laurent <jean at wedebugyou.com>
Subject: Re: [smokeping-users] rename of smokeping.cgi into index.cgi
To: smokeping-users at lists.oetiker.ch
Message-ID: <51E05699.9020001 at wedebugyou.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 7/8/13 4:09 PM, Arnaud wrote:
> G.W. Haywood <ged <at> jubileegroup.co.uk> writes:
>
>> Hi there,
>>
>> On Wed, 6 Feb 2013, Kris De Rocker wrote:
>>
>>> I've followed a nice (and working!) how-to to install smokeping on a
> CentOS system
>>> (http://www.wedebugyou.com/2012/11/how-to-install-and-configure-
> smokeping-on-centos-6/)
>> Unofficial HOWTOs generally should be treated with suspicion.  They
>> are usually out of date and often wrong.
>>
>>> At this moment, the smokeping URL is like
> http://ip/smokeping/smokeping.cgi
>>> Can i just do a rename of smokeping.cgi into index.cgi so that when i
> surf to
>>> http://ip/smokeping it will be visible?  Or isn't that possible?
>> Don't do that.  Use the facilities which are made available by Apache:
>>
>> http://httpd.apache.org/docs/2.4/mod/mod_dir.html#directoryindex
>>
>>
> Hi,
>
> I am following the same installation with a problem in step 6 (add
> smokeping start/stop script) because the link is anavailable.
> Could you please send me the file "smokeping_start_stop.txt"?
>
> Best regards
>
>
>
> _______________________________________________
> smokeping-users mailing list
> smokeping-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Hi,

the link is fix in step 6.

Sincerely,
Jean



------------------------------

Message: 3
Date: Tue, 16 Jul 2013 18:09:48 +0200
From: Nicolas KARP <liste at karp.fr>
Subject: [smokeping-users] SipSak : host uri issue
To: "<smokeping-users at lists.oetiker.ch>"
	<smokeping-users at lists.oetiker.ch>
Message-ID:
	<CAELGAXeU2LhEhUB=PS1MMr+jgyvC-_LunYNQWRa9fv9+pVnGWw at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

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 at 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, at extra_opts)


Any idea ?

Many thanks.


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


# - -   Nicolas KARP
# - -   Network and Security Engineer
# - -    Email : liste at karp.fr <nicolas at karp.fr>
# - -    Linkedin :  http://www.linkedin.com/in/nicolaskarp
# - -    Viadeo : http://www.viadeo.com/fr/profile/nicolas.karp
<http://www.viadeo.com/fr/profile/nicolas.karp%20>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20130716/4e1c4e90/attachment-0001.htm 

------------------------------

Message: 4
Date: Tue, 16 Jul 2013 13:30:31 -0400 (EDT)
From: Russell Dwarshuis <rjd at merit.edu>
Subject: Re: [smokeping-users] SipSak : host uri issue
To: Nicolas KARP <liste at karp.fr>
Cc: smokeping-users <smokeping-users at lists.oetiker.ch>
Message-ID:
	<1660584909.226915.1373995831757.JavaMail.zimbra at merit.edu>
Content-Type: text/plain; charset=utf-8

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(' ', at 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" <liste at karp.fr>
To: "<smokeping-users at lists.oetiker.ch>" <smokeping-users at lists.oetiker.ch>
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 at 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, at extra_opts) 


Any idea ? 

Many thanks. 


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

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



_______________________________________________
smokeping-users mailing list
smokeping-users at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users



------------------------------

Message: 5
Date: Tue, 16 Jul 2013 20:44:05 +0100
From: Nick Toseland <nick at livejournalinc.com>
Subject: Re: [smokeping-users] Alerts for different slaves
To: smokeping-users at lists.oetiker.ch
Message-ID: <51E5A285.7030902 at livejournalinc.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi,

Does anybody have any suggestions?

Thanks In Advance

Nick

On Fri Jul 12 18:02:17 2013, Nick Toseland wrote:
> Hi All,
>
> Is it possible to have alerts per slave?
>
> I have a slave that is approx 140ms from the master.
>
> If for instance I ping the www.bbc.co.uk from the master it is about 150
> ms RTT, from the slave it is 12ms..
>
> I would like an alert to fire if the RTT from the master goes above
> 200ms  and an alert if the RTT from the slave goes about 40ms
>
> Many thanks
>
> Nick



------------------------------

Message: 6
Date: Tue, 16 Jul 2013 22:12:52 +0200
From: Nicolas KARP <liste at karp.fr>
Subject: Re: [smokeping-users] SipSak : host uri issue
To: Russell Dwarshuis <rjd at merit.edu>
Cc: smokeping-users <smokeping-users at lists.oetiker.ch>
Message-ID:
	<CAELGAXdS7mc6NB_QE1TX5CUJPnopdiMv9hAqSdkBJ=jS4dDVvQ at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Another possibility is you are looking at an old invocation in ps and your
> run did not start a new sipsak???
>
>
> LoL. No, I was doing a "while [

1 ]" with a "ps | grep sipsak" in order to check the next sip call ;)
The variable host looks good before the call of the funtion open because I
tried to write the value of this variable and was able to see the : and
@..


I will try what you suggested. I think Perl should be using the shell "sh".
I will check tomorrow and run some tests again. That's odd !

FYI, i'm using Centos 6.1 if I remeber right.


Cheers.

Nick
 

>
> ----- Original Message -----
> From: "Nicolas KARP" <liste at karp.fr>
> To: "<smokeping-users at lists.oetiker.ch>" <smokeping-users at lists.oetiker.ch
> >
> 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 at 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, at extra_opts)
>
>
> Any idea ?
>
> Many thanks.
>
>
> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - - - - - - - - - - -
>
> # - - Nicolas KARP
> # - - Network and Security Engineer
> # - - Email : liste at karp.fr
> # - - Linkedin : http://www.linkedin.com/in/nicolaskarp
> # - - Viadeo : http://www.viadeo.com/fr/profile/ nicolas.karp
> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - - - - - - - - - - -
>
>
>
> _______________________________________________
> smokeping-users mailing list
> smokeping-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20130716/98953bec/attachment.htm 

------------------------------

_______________________________________________
smokeping-users mailing list
smokeping-users at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users


End of smokeping-users Digest, Vol 77, Issue 5
**********************************************

------
This is an automated response.  Your issue has been noted.  We'll be in touch soon.



Please reply to this email or visit the URL below with any additional details.

http://florin-pc/portal/view-help-request/35


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20131112/fc2b59b1/attachment-0001.htm 


More information about the smokeping-users mailing list