andy.chen | 6 Jul 2012 01:54

Alerts for Slaves

Dear all,

 

Can someone tell me how I can set different alerts for slaves?

Because each slave has different RTT to the same target, therefore I want to set different alerts for different slaves instead of having alerts = rtt-30, rtt-100, someloss

 

My config is like this.

For example, alerts rtt-30 for Server_B, rtt-100 for Server_C,  lossdetect for Server D.

 

+ Server A

menu = Server A

title = Server A

alerts = rtt-30

host = 123.123.123.123

slaves = Server_B Server_C Server_D

 

Thank you in advance.

Andy

 

 

 

 

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Dmitry Melekhov | 6 Jul 2012 06:33

TelnetIOSPing & timeout, patch

Hello!

Several days we established link with very long delay and I found that  
TelnetIOSPing always ends with probe timeout.
timeout for probe changes nothing, smokeping always says that probe timeout.
I found this is because Net::Telnet timeout is 10 secs ( 
http://search.cpan.org/~jrogers/Net-Telnet-3.03/lib/Net/Telnet.pm) and 
probe exists telnet before 20 pings took place.
So here is simple patch:

dm <at> dm:~/smokeping-2.6.2/lib/Smokeping/probes$ diff -up 
TelnetIOSPing.pm.orig TelnetIOSPing.pm
--- TelnetIOSPing.pm.orig    2012-07-06 08:25:27.514127708 +0400
+++ TelnetIOSPing.pm    2012-07-06 08:26:30.402738380 +0400
 <at>  <at>  -137,13 +137,15  <at>  <at>  sub pingone ($$){
      my $pssword = $target->{vars}{iospass};
      my $bytes = $self->{properties}{packetsize};
      my $pings = $self->pings($target);
+    my $timeout = $self->{properties}{timeout};
+

      # do NOT call superclass ... the ping method MUST be overwriten
      my %upd;
      my  <at> args = ();

-     my $telnet = Net::Telnet->new();
+     my $telnet = Net::Telnet->new( Timeout    => $timeout );
  #               These are for debugging
  #               $telnet->errmode("TIPreturn");
  #               $telnet->input_log("TIPinlog");

Thank you!

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

Kumara_N | 6 Jul 2012 07:45

HI

Hi,

 

I am unable to set-up Smoke ping in my windows 7 system. Its giving following error. I am using Apache2.2 as web server. Please help me out.

 

C:\smokeping-2.0.8\bin>smokeping.pl

Can't locate Sys/Syslog.pm in <at> INC ( <at> INC contains: lib C:/smokeping-2.0.8/lib C:

/Perl/site/lib C:/Perl/lib .) at C:/smokeping-2.0.8/lib/Smokeping.pm line 14.

BEGIN failed--compilation aborted at C:/smokeping-2.0.8/lib/Smokeping.pm line 14

.

Compilation failed in require at C:\smokeping-2.0.8\bin\smokeping.pl line 7.

BEGIN failed--compilation aborted at C:\smokeping-2.0.8\bin\smokeping.pl line 7.

 

Thx

Kumara

 



DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Ryan Becker | 6 Jul 2012 07:47
Picon
Gravatar

Re: HI

Did you... try installing the syslog module?  Additionally, SmokePing is a Linux program, so it's unlikely that trying to run it on Windows will be successful.

On Fri, Jul 6, 2012 at 1:45 AM, Kumara_N <Kumara_N <at> mahindrasatyam.com> wrote:

Hi,

 

I am unable to set-up Smoke ping in my windows 7 system. Its giving following error. I am using Apache2.2 as web server. Please help me out.

 

C:\smokeping-2.0.8\bin>smokeping.pl

Can't locate Sys/Syslog.pm in <at> INC ( <at> INC contains: lib C:/smokeping-2.0.8/lib C:

/Perl/site/lib C:/Perl/lib .) at C:/smokeping-2.0.8/lib/Smokeping.pm line 14.

BEGIN failed--compilation aborted at C:/smokeping-2.0.8/lib/Smokeping.pm line 14

.

Compilation failed in require at C:\smokeping-2.0.8\bin\smokeping.pl line 7.

BEGIN failed--compilation aborted at C:\smokeping-2.0.8\bin\smokeping.pl line 7.

 

Thx

Kumara

 



DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.

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


_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Kumara_N | 6 Jul 2012 08:13

Re: HI

Please find the syslog module attached. Once I add this into C:\smokeping-2.0.8\lib/Sys/, am getting below error. Please let me know if am doing anything wrong here.

 

Useless use of hash element in void context at C:\smokeping-2.0.8\lib/Sys/Syslog

.pm line 74.

Useless use of hash element in void context at C:\smokeping-2.0.8\lib/Sys/Syslog

.pm line 74.

Useless use of hash element in void context at C:\smokeping-2.0.8\lib/Sys/Syslog

.pm line 74.

Bareword "closelog" not allowed while "strict subs" in use at C:\smokeping-2.0.8

\lib/Sys/Syslog.pm line 133.

Compilation failed in require at C:\smokeping-2.0.8\lib/Smokeping.pm line 14.

BEGIN failed--compilation aborted at C:\smokeping-2.0.8\lib/Smokeping.pm line 14

.

Compilation failed in require at C:\smokeping-2.0.8\bin\smokeping.pl line 7.

BEGIN failed--compilation aborted at C:\smokeping-2.0.8\bin\smokeping.pl line 7.

 

Earlier I tried with Wamp server, but it was showing images in the web url http://127.0.0.1/cgi-bin/smokeping.pl . so i am checking with Apache2.2 now.

 

Thank you.

 

Regards

Kumara N, WAN Operations

Telephone: +91 40 - 4022 5555/ 5566

US Direct: +1 631 229 9263

Extn: 75555

 

From: smokeping-users-bounces+kumara_n=mahindrasatyam.com <at> lists.oetiker.ch [mailto:smokeping-users-bounces+kumara_n=mahindrasatyam.com <at> lists.oetiker.ch] On Behalf Of Ryan Becker
Sent: Friday, July 06, 2012 11:18 AM
To: smokeping-users <at> lists.oetiker.ch
Subject: Re: [smokeping-users] HI

 

Did you... try installing the syslog module?  Additionally, SmokePing is a Linux program, so it's unlikely that trying to run it on Windows will be successful.

On Fri, Jul 6, 2012 at 1:45 AM, Kumara_N <Kumara_N <at> mahindrasatyam.com> wrote:

Hi,

 

I am unable to set-up Smoke ping in my windows 7 system. Its giving following error. I am using Apache2.2 as web server. Please help me out.

 

C:\smokeping-2.0.8\bin>smokeping.pl

Can't locate Sys/Syslog.pm in <at> INC ( <at> INC contains: lib C:/smokeping-2.0.8/lib C:

/Perl/site/lib C:/Perl/lib .) at C:/smokeping-2.0.8/lib/Smokeping.pm line 14.

BEGIN failed--compilation aborted at C:/smokeping-2.0.8/lib/Smokeping.pm line 14

.

Compilation failed in require at C:\smokeping-2.0.8\bin\smokeping.pl line 7.

BEGIN failed--compilation aborted at C:\smokeping-2.0.8\bin\smokeping.pl line 7.

 

Thx

Kumara

 

 


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.


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

 



DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
Attachment (Syslog.pm): application/octet-stream, 10 KiB
_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Ryan Becker | 6 Jul 2012 08:27
Picon
Gravatar

Re: HI

As I said, not likely it will run on Windows.

On Fri, Jul 6, 2012 at 2:13 AM, Kumara_N <Kumara_N <at> mahindrasatyam.com> wrote:

Please find the syslog module attached. Once I add this into C:\smokeping-2.0.8\lib/Sys/, am getting below error. Please let me know if am doing anything wrong here.

 

Useless use of hash element in void context at C:\smokeping-2.0.8\lib/Sys/Syslog

.pm line 74.

Useless use of hash element in void context at C:\smokeping-2.0.8\lib/Sys/Syslog

.pm line 74.

Useless use of hash element in void context at C:\smokeping-2.0.8\lib/Sys/Syslog

.pm line 74.

Bareword "closelog" not allowed while "strict subs" in use at C:\smokeping-2.0.8

\lib/Sys/Syslog.pm line 133.

Compilation failed in require at C:\smokeping-2.0.8\lib/Smokeping.pm line 14.

BEGIN failed--compilation aborted at C:\smokeping-2.0.8\lib/Smokeping.pm line 14

.

Compilation failed in require at C:\smokeping-2.0.8\bin\smokeping.pl line 7.

BEGIN failed--compilation aborted at C:\smokeping-2.0.8\bin\smokeping.pl line 7.

 

Earlier I tried with Wamp server, but it was showing images in the web url http://127.0.0.1/cgi-bin/smokeping.pl . so i am checking with Apache2.2 now.

 

Thank you.

 

Regards

Kumara N, WAN Operations

Telephone: +91 40 - 4022 5555/ 5566

US Direct: +1 631 229 9263

Extn: 75555

 

From: smokeping-users-bounces+kumara_n=mahindrasatyam.com <at> lists.oetiker.ch [mailto:smokeping-users-bounces+kumara_n=mahindrasatyam.com <at> lists.oetiker.ch] On Behalf Of Ryan Becker
Sent: Friday, July 06, 2012 11:18 AM
To: smokeping-users <at> lists.oetiker.ch
Subject: Re: [smokeping-users] HI

 

Did you... try installing the syslog module?  Additionally, SmokePing is a Linux program, so it's unlikely that trying to run it on Windows will be successful.

On Fri, Jul 6, 2012 at 1:45 AM, Kumara_N <Kumara_N <at> mahindrasatyam.com> wrote:

Hi,

 

I am unable to set-up Smoke ping in my windows 7 system. Its giving following error. I am using Apache2.2 as web server. Please help me out.

 

C:\smokeping-2.0.8\bin>smokeping.pl

Can't locate Sys/Syslog.pm in <at> INC ( <at> INC contains: lib C:/smokeping-2.0.8/lib C:

/Perl/site/lib C:/Perl/lib .) at C:/smokeping-2.0.8/lib/Smokeping.pm line 14.

BEGIN failed--compilation aborted at C:/smokeping-2.0.8/lib/Smokeping.pm line 14

.

Compilation failed in require at C:\smokeping-2.0.8\bin\smokeping.pl line 7.

BEGIN failed--compilation aborted at C:\smokeping-2.0.8\bin\smokeping.pl line 7.

 

Thx

Kumara

 

 


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.


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

 



DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Tobias Oetiker | 6 Jul 2012 09:07
Picon
Gravatar

Re: TelnetIOSPing & timeout, patch

Hi Dmitry,

Today Dmitry Melekhov wrote:

> Hello!
>
> Several days we established link with very long delay and I found that
> TelnetIOSPing always ends with probe timeout.
> timeout for probe changes nothing, smokeping always says that probe timeout.
> I found this is because Net::Telnet timeout is 10 secs (
> http://search.cpan.org/~jrogers/Net-Telnet-3.03/lib/Net/Telnet.pm) and
> probe exists telnet before 20 pings took place.
> So here is simple patch:
>
> dm <at> dm:~/smokeping-2.6.2/lib/Smokeping/probes$ diff -up
> TelnetIOSPing.pm.orig TelnetIOSPing.pm
> --- TelnetIOSPing.pm.orig    2012-07-06 08:25:27.514127708 +0400
> +++ TelnetIOSPing.pm    2012-07-06 08:26:30.402738380 +0400
>  <at>  <at>  -137,13 +137,15  <at>  <at>  sub pingone ($$){
>       my $pssword = $target->{vars}{iospass};
>       my $bytes = $self->{properties}{packetsize};
>       my $pings = $self->pings($target);
> +    my $timeout = $self->{properties}{timeout};
> +
>
>       # do NOT call superclass ... the ping method MUST be overwriten
>       my %upd;
>       my  <at> args = ();
>
>
> -     my $telnet = Net::Telnet->new();
> +     my $telnet = Net::Telnet->new( Timeout    => $timeout );
>   #               These are for debugging
>   #               $telnet->errmode("TIPreturn");
>   #               $telnet->input_log("TIPinlog");
>

thanks ... added and updated the git repo

cheers
tobi

>
> Thank you!
>
>
> _______________________________________________
> smokeping-users mailing list
> smokeping-users <at> lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>
>

--

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi <at> oetiker.ch ++41 62 775 9902 / sb: -9900

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

G.W. Haywood | 6 Jul 2012 11:38
Picon
Favicon

Re: HI

Hi there,

On Fri, 6 Jul 2012, Kumara_N wrote:

> I am unable to set-up Smoke ping in my windows 7 system. ...

That's correct.  To quote from the documentation on the Smokeping
Website that you obviously haven't read:

"Prerequisites

SmokePing does not stand alone. It relies on various other tools and
services being present. Apart from a Unix OS and a working Perl
installation you need ..."

G.W. Haywood | 6 Jul 2012 11:42
Picon
Favicon

Re: Alerts for Slaves

Hi there,

On Fri, 6 Jul 2012, andy.chen wrote:

> Can someone tell me how I can set different alerts for slaves?

http://oss.oetiker.ch/smokeping/doc/smokeping_master_slave.en.html

See "++override".

Vinny_Abello | 6 Jul 2012 16:18
Picon
Favicon

Re: HI

That being said, I have seen it work on Windows. I know of a few people who have done it, but it's not exactly
straight forward.

-Vinny

-----Original Message-----
From: smokeping-users-bounces+vinny_abello=dell.com <at> lists.oetiker.ch
[mailto:smokeping-users-bounces+vinny_abello=dell.com <at> lists.oetiker.ch] On Behalf Of G.W. Haywood
Sent: Friday, July 06, 2012 5:39 AM
To: Kumara_N
Cc: smokeping-users <at> lists.oetiker.ch
Subject: Re: [smokeping-users] HI

Hi there,

On Fri, 6 Jul 2012, Kumara_N wrote:

> I am unable to set-up Smoke ping in my windows 7 system. ...

That's correct.  To quote from the documentation on the Smokeping
Website that you obviously haven't read:

"Prerequisites

SmokePing does not stand alone. It relies on various other tools and
services being present. Apart from a Unix OS and a working Perl
installation you need ..."


Gmane