[Eisfair] e1: smokeping (curl) reagiert nicht?

Rolf Bensch azubi at bensch-net.de
So Okt 5 19:36:40 CEST 2014


Hallo Olaf,

Am 05.10.2014 um 13:43 schrieb Olaf Jaehrling:

> im Dropdown kannst du aber das letzte auswählen. Für den Fall, dass das
> Fenster dafür zu klein ist ...
> online-offline-bigloss-someloss-rttdetect-startloss-anothersshloss

ok, so weit "nach unten" hatte ich nicht nachgesehen.

> Im dropdown alles zu erfassen ist einfach nicht möglich. Du kannst aber
> mal versuchen in der Datei
> /usr/local/smokeping/alertlist
> bigloss-someloss-startloss-rttdetect
> einzutragen. Evtl. übernimmt es das dropdownmenu und der Check schlägt
> auch nicht fehl.

Es wurde nicht vom Dropdown übernommen, eine Fehlermeldung gab es aber 
auch nicht.

> P.S. Du kannst den ECE auch austricksen. Öffne die Datei
> /etc/config.d/smokeping und trage
> SMOKEPING_HOST_1_ALERTS bigloss,someloss,startloss,rttdetect
> händisch ein. Der Check erlaubt - und , als Trennzeichen. So war es
> zumindest gedacht. Wenn das funktioniert, wäre ich über eine Rückmeldung
> erfreut. Dann nehme ich das mit in die Doku auf.

Das ist soweit eingetragen, einen Fehler kann ich nicht erkennen. 
Allerdings werden auch mit dieser Konfig keine Alerts generiert.

Ich kann in keinem Fall erkennen, dass ein Event zur Erzeugung eines 
Alerts gestartet wird. Die Graphen zeigen eindeutig den Ausfall an, aber 
es ist weder in /var/log/messages noch im Mail-Protokoll irgendwas 
angezeigt. Nach einem Blick ins smokeping-Wiki:

/etc/init.d/smokeping stop
smokeping --debug

erzeugt u.A.:

### Compiling alert detector pattern 'someloss'
### ==0%,>0%,>0%
sub {
     my $d = shift;
     my $y = $d->{loss};
     for(1){
         my $minlength = 3;
         my $maxlength = 3;
         next if scalar @$y < $minlength ;
         next unless defined $y->[-3]
                         and $y->[-3] =~ /^\d/
                         and $y->[-3] == 0
                              ;        next unless defined $y->[-2]
                         and $y->[-2] =~ /^\d/
                         and $y->[-2] > 0
                              ;        next unless defined $y->[-1]
                         and $y->[-1] =~ /^\d/
                         and $y->[-1] > 0
                              ;        return 1;
     }
     return 0;
}
....

Curl: forks 5, timeout for each target 26
Curl: executing command list '/usr/bin/curl','-m','5','-w','Time: 
%{time_total} DNS time: %{time_namelookup} Redirect time: 
%{time_redirect}\n','http://[Servername]/'
...
   % Total    % Received % Xferd  Average Speed   Time    Time     Time 
  Current
                                  Dload  Upload   Total   Spent    Left 
  Speed
100   228  100   228    0     0   3438      0 --:--:-- --:--:-- --:--:-- 
  3454
Curl: curl output: 'Time: 0.066 DNS time: 0.015 Redirect time: 0.000', 
result: 0.051
   % Total    % Received % Xferd  Average Speed   Time    Time     Time 
  Current
                                  Dload  Upload   Total   Spent    Left 
  Speed
   0     0    0     0    0     0      0      0 --:--:-- --:--:-- 
--:--:--     0  % Total    % Received % Xferd  Average Speed   Time 
Time     Time  Current
                                  Dload  Upload   Total   Spent    Left 
  Speed
   0     0    0     0    0     0      0      0 --:--:-- --:--:-- 
--:--:--     0  % Total    % Received % Xferd  Average Speed   Time 
Time     Time  Current
                                  Dload  Upload   Total   Spent    Left 
  Speed
   0     0    0     0    0     0      0      0 --:--:-- --:--:-- 
--:--:--     0  % Total    % Received % Xferd  Average Speed   Time 
Time     Time  Current
                                  Dload  Upload   Total   Spent    Left 
  Speed
   0     0    0     0    0     0      0      0 --:--:-- --:--:-- 
--:--:--     0curl: (7) Failed connect to [Servername]:80; No route to host
Curl: curl output: 'Time: 0.017 DNS time: 0.016 Redirect time: 0.000', 
result: 0.001
Curl: WARNING: curl exited with status 7 on [Servername]

...

Alert "bigloss": no match for target 
/usr/local/smokeping/var/Lokal/Localhost
Alert "someloss": no match for target 
/usr/local/smokeping/var/Lokal/Localhost
Alert "startloss": no match for target 
/usr/local/smokeping/var/Lokal/Localhost
Alert "rttdetect": no match for target 
/usr/local/smokeping/var/Lokal/Localhost
Calling RRDs::update(/usr/local/smokeping/var/Lokal/Localhost.rrd 
--template uptime:loss:median:ping1:ping2:ping3:ping4:ping5 
1412529724:U:0:U:0:0:0:0.000999999999999997:0.001)

Warum "matcht" das nicht? Kannst Du das interpretieren?


Grüße

Rolf



Mehr Informationen über die Mailingliste Eisfair