[Eisfair] smokeping: slave findet master nicht mehr

Rolf Bensch azubi at bensch-net.de
So Apr 23 17:46:15 CEST 2023


Hallo zusammen,

heute kamen mit einem "Automatic System update" eine Menge Libs. Seitdem findet der smokeping-slave seinen Master nicht mehr.

Auf dem Slave:

    Activate configuration now (y/n) [yes]?
     * Restarting smokeping.service ...
    WARNING: No secret found for slave ibs-server.ibs.lan

    ERROR: we did not get config from the master. Maybe we are not configured as a slave for any of the targets on the master ?
    /bin/cat: /var/smokeping192.168.0.206/smokeping.pid: No such file or directory
    /etc/init.d/smokeping status: smokeping is not running                                                         [  OK  ]
    Press ENTER to continue

Der Ordner /var/smokeping192.168.0.206 existiert, das PID-File ist tatsächlich nicht vorhanden:

    # ls -l /var/smokeping192.168.0.206/
    total 0

Auf dem Master (unverändert):

    SMOKEPING_MASTER                            =  yes
    │ SMOKEPING_SLAVE                             =  no
    │
    │-------------------------------------------------------------
    │                Master configuration
    │-------------------------------------------------------------
    │
    │ SMOKEPING_SLAVES_HOST_N                     =  1
    │   SMOKEPING_SLAVES_HOST_1_PASSWORD          =  [geheim]
    │   SMOKEPING_SLAVES_HOST_1_HOSTNAME          =  ibs-server
    │   SMOKEPING_SLAVES_HOST_1_COLOR             =  fcaf3e
    ....
    |   SMOKEPING_GROUP_1_HOST_1_SLAVES         =  ibs-server


Auf dem Slave (unverändert):

    │ SMOKEPING_MASTER                             =  no
    │ SMOKEPING_SLAVE                              =  yes
    │ SMOKEPING_ONLY_SLAVE                         =  no
    │
    │---------------------------------------------------------------
    │                Slave configuration
    │---------------------------------------------------------------
    │
    │ SMOKEPING_MASTER_N                           =  1
    │   SMOKEPING_MASTER_1_HOST                    =  http://192.168.0.206
    │   SMOKEPING_MASTER_1_PASSWORD                =  [geheim]


Diese Konfiguration lief hier sehr lange stabil. Ich weiß aktuell nicht welcher Server dieses PID-File schreibt ([Master|Slave] - ich vermute Slave) bzw. über welchen Mechanismus der Slave die Daten der zu testenden Hosts erhält. Der Slave hat keine Infos was er testen soll. /var/log/messages auf dem Slave:

    Apr 23 17:12:54 ibs-server smokeping[13015]: Starting syslog logging
    Apr 23 17:12:54 ibs-server smokeping[13021]: Smokeping version 2.007003 successfully launched.
    Apr 23 17:12:54 ibs-server smokeping[13021]: Entering multiprocess mode.
    Apr 23 17:12:54 ibs-server smokeping[13021]: No targets defined for probe DNS, skipping.
    Apr 23 17:12:54 ibs-server smokeping[13021]: No targets defined for probe FPing, skipping.
    Apr 23 17:12:54 ibs-server smokeping[13021]: DNS: probing 0 targets with step 300 s and offset 36 s.
    Apr 23 17:12:54 ibs-server smokeping[13021]: FPing: probing 0 targets with step 180 s and offset 36 s.

Auf dem Master sieht das für mich okay aus:

    Apr 23 17:13:02 eis64-2 smokeping[2739]: Starting syslog logging
    Apr 23 17:13:02 eis64-2 smokeping[2745]: Smokeping version 2.007003 successfully launched.
    Apr 23 17:13:02 eis64-2 smokeping[2745]: Entering multiprocess mode.
    Apr 23 17:13:02 eis64-2 smokeping[2745]: Child process 2746 started for probe FPing.
    Apr 23 17:13:02 eis64-2 smokeping[2745]: Child process 2747 started for probe EchoPingHttps.
    Apr 23 17:13:02 eis64-2 smokeping[2745]: Child process 2748 started for probe DNS.
    Apr 23 17:13:02 eis64-2 smokeping[2745]: All probe processes started successfully.
    Apr 23 17:13:02 eis64-2 smokeping[2747]: EchoPingHttps: probing 11 targets with step 180 s and offset 158 s.
    Apr 23 17:13:02 eis64-2 smokeping[2746]: FPing: probing 6 targets with step 180 s and offset 4 s.
    Apr 23 17:13:02 eis64-2 smokeping[2748]: DNS: probing 8 targets with step 300 s and offset 3 s.

Apache-error_log.ssl auf dem Master:

[Sun Apr 23 16:29:38.247655 2023] [fcgid:warn] [pid 16893:tid 140292749485760] [client 93.209.203.250:56278] mod_fcgid: stderr: [Sun Apr 23 , referer: https://www.[myDomain]/cgi-bin/smokeping.fcgi
[Sun Apr 23 16:29:38.258699 2023] [fcgid:warn] [pid 16893:tid 140292749485760] [client 93.209.203.250:56278] mod_fcgid: stderr: 16:29:38 2023] smokeping.fcgi [client 93.209.203.250]: Use of uninitialized value in string ne at /usr/local/smokeping/lib/Smokeping.pm line 947., referer: https://www.[myDomain]/cgi-bin/smokeping.fcgi
[Sun Apr 23 16:29:38.258716 2023] [fcgid:warn] [pid 16893:tid 140292749485760] [client 93.209.203.250:56278] mod_fcgid: stderr: [Sun Apr 23 16:29:38 2023] smokeping.fcgi [client 93.209.203.250]: Use of uninitialized value in string eq at /usr/local/smokeping/lib/Smokeping/Graphs.pm line 28., referer: https://www.[myDomain]/cgi-bin/smokeping.fcgi
[Sun Apr 23 16:29:38.258719 2023] [fcgid:warn] [pid 16893:tid 140292749485760] [client 93.209.203.250:56278] mod_fcgid: stderr: [Sun Apr 23 16:29:38 2023] smokeping.fcgi [client 93.209.203.250]: Use of uninitialized value in string eq at /usr/local/smokeping/lib/Smokeping.pm line 959., referer: https://www.[myDomain]/cgi-bin/smokeping.fcgi

... auf dem Slave:
[Sun Apr 23 17:34:34.233218 2023] [ssl:warn] [pid 13758] AH01909: webserver.ibs.lan:443:0 server certificate does NOT include an ID which matches the server name
[Sun Apr 23 17:34:34.469029 2023] [ssl:warn] [pid 13811] AH01909: webserver.ibs.lan:443:0 server certificate does NOT include an ID which matches the server name
[Sun Apr 23 17:34:38.908584 2023] [ssl:warn] [pid 14384] AH01909: webserver.ibs.lan:443:0 server certificate does NOT include an ID which matches the server name
[Sun Apr 23 17:34:39.036702 2023] [ssl:warn] [pid 14385] AH01909: webserver.ibs.lan:443:0 server certificate does NOT include an ID which matches the server name

... gilt es vielleicht zu klären, ich sehe aber hier keinen Zusammenhang zum Problem weil ohne ssl angefragt wird..

In Sachen "WARNING: No secret found for slave ibs-server.ibs.lan" hier noch

    # ls -l /usr/local/smokeping/etc  (auf dem Slave)
    total 100
    -rw-r--r-- 1 root   root 35378 Jan 18  2013 SNMP_Session_IP_v4.pm
    -rw-r--r-- 1 root   root 35365 Jan 18  2013 SNMP_Session_IP_v6.pm
    -rw-r--r-- 1 root   root  2219 Jan 27  2020 basepage.html
    -rw-r--r-- 1 root   root  2712 Apr 23 17:34 config
    -rw-r--r-- 1 root   root  2760 Aug 27  2008 config.dist
    -rw-r----- 1 wwwrun root     9 Apr 23 17:34 secret192.168.0.206.txt
    -rw-r--r-- 1 root   root  1563 Apr 30  2015 smokemail
    -rwxr-xr-x 1 root   root  2604 Oct 19  2018 smokeping.cgi
    -rw-r--r-- 1 root   root  3815 Apr 30  2015 tmail

sieht für mich auch in Ordnung aus. secret192.168.0.206.txt enthält das definierte Passwort.

Wo kann ich weiter recherchieren?

Grüße

Rolf


Mehr Informationen über die Mailingliste Eisfair