[gelöst] icanhazip.com abfrage alle 7 sekunden

Begonnen von 3dmanipulator, 18 März 2020, 15:11:49

Vorheriges Thema - Nächstes Thema

herrmannj

Dann muss es was fhem unabhängiges sein

Wernieman

Hätte ich auch getippt.

Was steht in Deiner crontab?
cat /etc/crontab

es könnte auch ein sonstiger Deamon sein ...
ps aux
.. die Ausgabe könnte etwas länger sein ...
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

3dmanipulator

pi@raspberrypi:~ $ cat /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name command to be executed
17 * * * * root    cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
raspberry pi, razberry, fibaro sensor, fibaro dimmer,  nodon fb, tkb dual dimmer Switch, milight e27 + stripe, hmlan, hm-TC, hm-RT

Wernieman

Also ein Deamon ... müsstest Du ein "ps -aux" auswerten ...
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

3dmanipulator

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.8  0.8  33872  8220 ?        Ss   17:15   0:17 /sbin/init
root         2  0.0  0.0      0     0 ?        S    17:15   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        I<   17:15   0:00 [rcu_gp]
root         4  0.0  0.0      0     0 ?        I<   17:15   0:00 [rcu_par_gp]
root         8  0.0  0.0      0     0 ?        I<   17:15   0:00 [mm_percpu_wq]
root         9  0.0  0.0      0     0 ?        S    17:15   0:00 [ksoftirqd/0]
root        10  0.3  0.0      0     0 ?        I    17:15   0:07 [rcu_sched]
root        11  0.0  0.0      0     0 ?        I    17:15   0:00 [rcu_bh]
root        12  0.0  0.0      0     0 ?        S    17:15   0:00 [migration/0]
root        13  0.0  0.0      0     0 ?        S    17:15   0:00 [cpuhp/0]
root        14  0.0  0.0      0     0 ?        S    17:15   0:00 [cpuhp/1]
root        15  0.0  0.0      0     0 ?        S    17:15   0:00 [migration/1]
root        16  0.0  0.0      0     0 ?        S    17:15   0:00 [ksoftirqd/1]
root        19  0.0  0.0      0     0 ?        S    17:15   0:00 [cpuhp/2]
root        20  0.0  0.0      0     0 ?        S    17:15   0:00 [migration/2]
root        21  0.0  0.0      0     0 ?        S    17:15   0:00 [ksoftirqd/2]
root        24  0.0  0.0      0     0 ?        S    17:15   0:00 [cpuhp/3]
root        25  0.0  0.0      0     0 ?        S    17:15   0:00 [migration/3]
root        26  0.0  0.0      0     0 ?        S    17:15   0:00 [ksoftirqd/3]
root        29  0.0  0.0      0     0 ?        S    17:15   0:00 [kdevtmpfs]
root        30  0.0  0.0      0     0 ?        I<   17:15   0:00 [netns]
root        31  0.0  0.0      0     0 ?        I    17:15   0:00 [kworker/0:1-cgroup_destroy]
root        32  0.0  0.0      0     0 ?        I    17:15   0:00 [kworker/1:1-mm_percpu_wq]
root        34  0.0  0.0      0     0 ?        S    17:15   0:00 [khungtaskd]
root        35  0.0  0.0      0     0 ?        S    17:15   0:00 [oom_reaper]
root        36  0.0  0.0      0     0 ?        I<   17:15   0:00 [writeback]
root        37  0.0  0.0      0     0 ?        S    17:15   0:00 [kcompactd0]
root        38  0.0  0.0      0     0 ?        I<   17:15   0:00 [crypto]
root        39  0.0  0.0      0     0 ?        I<   17:15   0:00 [kblockd]
root        40  0.0  0.0      0     0 ?        S    17:15   0:00 [watchdogd]
root        41  0.0  0.0      0     0 ?        I<   17:15   0:00 [rpciod]
root        42  0.0  0.0      0     0 ?        I<   17:15   0:00 [kworker/u9:0]
root        43  0.0  0.0      0     0 ?        I<   17:15   0:00 [xprtiod]
root        44  0.0  0.0      0     0 ?        I    17:15   0:01 [kworker/u8:1-events_unbound]
root        46  0.0  0.0      0     0 ?        S    17:15   0:00 [kswapd0]
root        47  0.0  0.0      0     0 ?        I<   17:15   0:00 [nfsiod]
root        58  0.0  0.0      0     0 ?        I<   17:15   0:00 [kthrotld]
root        60  0.0  0.0      0     0 ?        I<   17:15   0:00 [iscsi_eh]
root        61  0.0  0.0      0     0 ?        I<   17:15   0:00 [dwc_otg]
root        62  0.0  0.0      0     0 ?        I<   17:15   0:00 [DWC Notificatio]
root        63  0.0  0.0      0     0 ?        S<   17:15   0:00 [vchiq-slot/0]
root        64  0.0  0.0      0     0 ?        S<   17:15   0:00 [vchiq-recy/0]
root        65  0.0  0.0      0     0 ?        S<   17:15   0:00 [vchiq-sync/0]
root        66  0.0  0.0      0     0 ?        S    17:15   0:00 [vchiq-keep/0]
root        67  0.0  0.0      0     0 ?        S<   17:15   0:00 [SMIO]
root        70  0.0  0.0      0     0 ?        I<   17:15   0:00 [mmc_complete]
root        72  0.0  0.0      0     0 ?        I<   17:15   0:01 [kworker/0:1H-mmc_complete]
root        73  0.0  0.0      0     0 ?        I<   17:15   0:00 [kworker/1:1H-kblockd]
root        76  0.0  0.0      0     0 ?        S    17:15   0:00 [scsi_eh_0]
root        77  0.0  0.0      0     0 ?        I<   17:15   0:00 [scsi_tmf_0]
root        78  0.0  0.0      0     0 ?        S    17:15   0:00 [usb-storage]
root        79  0.0  0.0      0     0 ?        S    17:15   0:00 [jbd2/mmcblk0p2-]
root        80  0.0  0.0      0     0 ?        I<   17:15   0:00 [ext4-rsv-conver]
root        81  0.0  0.0      0     0 ?        I<   17:15   0:00 [ipv6_addrconf]
root        83  0.0  0.0      0     0 ?        I<   17:15   0:00 [kworker/3:1H-kblockd]
root       126  0.5  1.2  33240 11840 ?        Ss   17:15   0:11 /lib/systemd/systemd-journald
root       146  0.0  0.4  18820  4136 ?        Ss   17:15   0:01 /lib/systemd/systemd-udevd
root       162  0.0  0.0      0     0 ?        S<   17:15   0:00 [SMIO]
root       173  0.0  0.0      0     0 ?        I<   17:15   0:00 [mmal-vchiq]
root       174  0.0  0.0      0     0 ?        I<   17:15   0:00 [mmal-vchiq]
root       175  0.0  0.0      0     0 ?        I<   17:15   0:00 [mmal-vchiq]
systemd+   295  0.0  0.6  22408  5700 ?        Ssl  17:15   0:00 /lib/systemd/systemd-timesyncd
nobody     323  0.0  0.2   4972  2384 ?        Ss   17:15   0:00 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event*
root       325  0.0  0.6  13492  6000 ?        Ss   17:15   0:02 /lib/systemd/systemd-logind
root       327  0.0  0.2   8320  2624 ?        Ss   17:15   0:00 /usr/sbin/cron -f
root       330  0.0  0.4  11748  4552 ?        SNs  17:15   0:00 /usr/sbin/alsactl -E HOME=/run/alsa -s -n 19 -c rdaemon
root       331  0.0  1.1  67208 10756 ?        Ssl  17:15   0:00 /usr/lib/udisks2/udisksd
avahi      334  0.0  0.3   6424  2884 ?        Ss   17:15   0:01 avahi-daemon: running [raspberrypi.local]
root       337  0.0  0.8  54644  8152 ?        Ssl  17:15   0:00 /usr/sbin/ModemManager --filter-policy=strict
root       338  0.1  0.3  25860  2916 ?        Ssl  17:15   0:03 /usr/sbin/rsyslogd -n -iNONE
message+   341  0.5  0.4   7444  4128 ?        Ss   17:15   0:12 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root       346  0.0  0.4  10740  3980 ?        Ss   17:15   0:00 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
root       381  0.0  0.0      0     0 ?        I<   17:15   0:00 [cfg80211]
root       382  0.0  0.1   2832  1764 ?        Ss   17:15   0:00 /sbin/dhcpcd -q -b
avahi      405  0.0  0.0   6424   300 ?        S    17:15   0:00 avahi-daemon: chroot helper
root       407  0.1  0.7  39188  7092 ?        Ssl  17:15   0:03 /usr/lib/policykit-1/polkitd --no-debug
root       411  0.0  3.0 232376 28596 ?        Ss   17:15   0:00 php-fpm: master process (/etc/php/7.3/fpm/php-fpm.conf)
root       412  0.0  1.8  44616 17624 ?        Ssl  17:15   0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
root       418  0.0  0.2   8976  2708 ?        Ss   17:15   0:00 /usr/bin/vncserver-x11-serviced -fg
root       434  0.0  0.6  47376  6252 ?        Ssl  17:15   0:00 /usr/sbin/lightdm
root       446  1.1  2.8  43508 27404 ?        S    17:15   0:24 /usr/bin/vncserver-x11-core -service
root       518  0.0  0.5  10928  5328 ?        Ss   17:15   0:00 /usr/sbin/sshd -D
mysql      582  0.2  7.3 1016236 69384 ?       Ssl  17:15   0:04 /usr/sbin/mysqld
root       606  1.4  7.2 227244 68856 tty7     Rsl+ 17:15   0:31 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
root       611  0.0  0.1   4656  1464 tty1     Ss+  17:15   0:00 /sbin/agetty -o -p -- \u --noclear tty1 linux
root       665  0.5  1.3  19984 12708 ?        S    17:15   0:12 /usr/bin/vncagent service 14
root       673  0.0  0.7  12676  7152 ?        Ss   17:15   0:00 /usr/sbin/apache2 -k start
www-data   674  0.0  0.6 545232  6428 ?        Sl   17:15   0:00 /usr/sbin/apache2 -k start
www-data   675  0.0  0.6 545232  6428 ?        Sl   17:15   0:00 /usr/sbin/apache2 -k start
root       931  0.0  0.4  40256  3984 ?        Ss   17:15   0:00 /usr/lib/postfix/sbin/master -w
postfix    933  0.0  0.5  40776  5448 ?        S    17:15   0:00 qmgr -l -t unix -u
root      1034  0.0  0.7  30412  6740 ?        Sl   17:15   0:00 lightdm --session-child 14 17
www-data  1052  0.0  1.6 232680 15888 ?        S    17:15   0:00 php-fpm: pool www
www-data  1053  0.0  1.6 232680 15888 ?        S    17:15   0:00 php-fpm: pool www
www-data  1054  0.0  1.6 232680 15724 ?        S    17:15   0:00 php-fpm: pool www
www-data  1058  0.0  1.6 232680 15696 ?        S    17:15   0:00 php-fpm: pool www
pi        1087  0.0  0.8  14692  7668 ?        Ss   17:15   0:00 /lib/systemd/systemd --user
pi        1094  0.0  0.3  17364  3612 ?        S    17:15   0:00 (sd-pam)
pi        1134  0.0  1.2  55176 12012 ?        Ssl  17:15   0:00 /usr/bin/lxsession -s LXDE-pi -e LXDE
pi        1148  0.0  0.4   7296  3980 ?        Ss   17:15   0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
redis     1156  0.5  0.4  48964  4496 ?        Ssl  17:15   0:12 /usr/bin/redis-server 127.0.0.1:0
pi        1197  0.0  0.0   4520   288 ?        Ss   17:15   0:00 /usr/bin/ssh-agent x-session-manager
pi        1242  0.0  0.6  43608  6292 ?        Ssl  17:15   0:00 /usr/lib/gvfs/gvfsd
pi        1247  0.0  0.5  54508  5192 ?        Sl   17:15   0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
pi        1252  0.0  1.7  64380 16432 ?        S    17:15   0:01 openbox --config-file /home/pi/.config/openbox/lxde-pi-rc.xml
pi        1258  0.0  1.1  47680 11144 ?        Sl   17:15   0:00 lxpolkit
pi        1266  0.6  3.5 157476 33400 ?        Sl   17:15   0:13 lxpanel --profile LXDE-pi
pi        1268  0.1  2.1  72412 20420 ?        Sl   17:15   0:03 pcmanfm --desktop --profile LXDE-pi
pi        1276  0.0  3.5  68388 34024 ?        Sl   17:15   0:01 /usr/bin/python -O /usr/share/wicd/gtk/wicd-client.py --tray
pi        1277  0.0  0.0   4520   292 ?        Ss   17:15   0:00 /usr/bin/ssh-agent -s
pi        1287  0.0  0.5  40448  4784 ?        Sl   17:15   0:00 /usr/lib/geoclue-2.0/demos/agent
pi        1297  0.1  5.2 264412 49544 ?        Sl   17:15   0:02 clipit
pi        1302  0.0  1.9 182016 18768 ?        S<sl 17:15   0:00 /usr/bin/pulseaudio --daemonize=no
rtkit     1313  0.0  0.2  23536  2292 ?        SNsl 17:15   0:00 /usr/lib/rtkit/rtkit-daemon
pi        1318  0.0  1.3  32492 13244 ?        S    17:15   0:01 /usr/bin/vncserverui service 16
pi        1329  0.0  0.5  26440  5132 ?        Sl   17:15   0:00 /usr/lib/menu-cache/menu-cached /run/user/1000/menu-cached-:0
pi        1341  0.0  1.5  32276 14836 ?        S    17:15   0:00 /usr/bin/vncserverui -statusicon 5
pi        1346  0.0  1.0  98520 10356 ?        Ssl  17:15   0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
pi        1376  0.0  0.5  41868  5000 ?        Ssl  17:15   0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
pi        1389  0.0  0.4  40300  4596 ?        Ssl  17:15   0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
pi        1393  0.0  0.7  56220  7296 ?        Ssl  17:15   0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
pi        1401  0.0  0.4  40300  4324 ?        Ssl  17:15   0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
pi        1441  0.0  0.6  53312  6496 ?        Sl   17:15   0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.4 /org/gtk/gvfs/exec_spaw/0
pi        1478  0.0  0.4  31176  4304 ?        Ssl  17:15   0:00 /usr/lib/gvfs/gvfsd-metadata
postfix   1838  0.0  0.5  40732  5496 ?        S    17:16   0:00 pickup -l -t unix -u -c
fhem      3647 17.3  6.3  99764 60052 ?        S    17:20   5:19 /usr/bin/perl fhem.pl fhem.cfg
root      7877  0.0  0.0      0     0 ?        I    17:30   0:00 [kworker/2:2-mm_percpu_wq]
root      8671  0.0  0.0      0     0 ?        I<   17:31   0:00 [kworker/2:1H-kblockd]
pi        8955  1.3  2.9  85728 28280 ?        Rl   17:32   0:15 lxterminal
pi        8961  0.0  0.4   8972  4060 pts/0    Ss   17:32   0:00 bash
root      9904  0.0  0.0      0     0 ?        I    17:34   0:00 [kworker/3:3-cgroup_destroy]
root     11724  0.0  0.0      0     0 ?        I    17:38   0:00 [kworker/u8:2-events_unbound]
root     12273  0.0  0.0      0     0 ?        I    17:39   0:00 [kworker/3:1-events]
root     13353  0.0  0.0      0     0 ?        I<   17:41   0:00 [kworker/2:2H]
root     13774  0.0  0.0      0     0 ?        I    17:42   0:00 [kworker/1:2-cgroup_destroy]
root     13846  0.0  0.0      0     0 ?        I<   17:43   0:00 [kworker/1:0H]
root     14463  0.0  0.0      0     0 ?        I    17:44   0:00 [kworker/0:0-cgroup_destroy]
root     14559  0.0  0.0      0     0 ?        I    17:44   0:00 [kworker/3:0-mm_percpu_wq]
root     14598  0.0  0.0      0     0 ?        I    17:44   0:00 [kworker/2:1-events]
root     14639  0.0  0.0      0     0 ?        I<   17:44   0:00 [kworker/3:2H]
root     15041  0.0  0.0      0     0 ?        I<   17:45   0:00 [kworker/0:0H]
root     16229  0.0  0.0      0     0 ?        I    17:48   0:00 [kworker/3:2-mm_percpu_wq]
root     16780  0.0  0.0      0     0 ?        I    17:49   0:00 [kworker/0:2-cgroup_destroy]
root     16876  0.0  0.0      0     0 ?        I    17:49   0:00 [kworker/2:0-mm_percpu_wq]
root     17137  0.0  0.0      0     0 ?        I    17:50   0:00 [kworker/u8:0]
root     17167  0.0  0.0      0     0 ?        I    17:50   0:00 [kworker/1:0-mm_percpu_wq]
pi       17642 11.0  0.3  10440  3088 pts/0    R+   17:51   0:00 ps -aux


das einzige was mir hier verdächtig vorkommt ist
root        10  0.3  0.0      0     0 ?        I    17:15   0:07 [rcu_sched]


aber was das ist, oder wie ich es abschalten kan, keine ahnung
raspberry pi, razberry, fibaro sensor, fibaro dimmer,  nodon fb, tkb dual dimmer Switch, milight e27 + stripe, hmlan, hm-TC, hm-RT

DeeSPe

Zitat von: herrmannj am 18 März 2020, 16:37:29
Im code von Homemode wird die IP alle 5 Sekunden abgefragt.
Das ist absolut falsch!
Standardmäßig wird die IP überhaupt nicht abgefragt, erst wenn man über ein Attribut selbst das Abfrageinterval (nur in Minuten einzustellen) vorgibt wird das getan.
HOMEMODE läuft mit einer Frequenz von 0,2Hz. Das heißt alle 5 Sekunden wird geprüft ob z.B. das o.g. Interval bereits erreicht ist und nur dann wird der IP Check ausgeführt.

Gruß
Dan
MAINTAINER: 22_HOMEMODE, 98_Hyperion, 98_FileLogConvert, 98_serviced

Als kleine Unterstützung für meine Programmierungen könnt ihr mir gerne einen Kaffee spendieren: https://buymeacoff.ee/DeeSPe

herrmannj

ZitatDas ist absolut falsch!
Dann möchte ich mich hiermit in aller Form für meine offensichtlich falsche Aussage entschuldigen und mich davon distanzieren! :) (Ich habe den code nur überflogen und den internalTimer falsch interpretiert)

Dem TE dürfte der Unterschied ohnehin egal sein da Homemode als Ursache ja bereits ausgeschieden ist. Hast Du noch einen Tip für ihn?


DeeSPe

Zitat von: herrmannj am 18 März 2020, 23:41:50
Dann möchte ich mich hiermit in aller Form für meine offensichtlich falsche Aussage entschuldigen und mich davon distanzieren! :) (Ich habe den code nur überflogen und den internalTimer falsch interpretiert)

Kein Problem, wollte es nur richtigstellen.

Zitat von: herrmannj am 18 März 2020, 23:41:50Hast Du noch einen Tip für ihn?

Evtl. cron mal prüfen?
Oder mal ein grep nach der URL im übrigen Dateisystem ausführen?

Gruß
Dan
MAINTAINER: 22_HOMEMODE, 98_Hyperion, 98_FileLogConvert, 98_serviced

Als kleine Unterstützung für meine Programmierungen könnt ihr mir gerne einen Kaffee spendieren: https://buymeacoff.ee/DeeSPe

Wernieman

Auf jedem Falle ist es ein Desktopsystem .. und damit sehr unübersichtlich.
Zusätzlich läuft vncserverui und Dekstoptools .. auf die Schnelle kann man damit gaaans schlecht den Verursacher ermitteln.

Muß es wirklich ein Dekstopsystem für einen Server sein?
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

3dmanipulator

vielen dank für eure hilfe.

ich konnte das problem lösen.

vor vielen monaten, im august 2019, habe ich auf diesem server mal mit nextcloud experimentiert.
eine batch datei ist wohl aus dem ruder gelaufen und hat die anfragen ausgelöst.
knapp 12000 pro tag!

an fhem lag es also nicht.

grüße horst
raspberry pi, razberry, fibaro sensor, fibaro dimmer,  nodon fb, tkb dual dimmer Switch, milight e27 + stripe, hmlan, hm-TC, hm-RT

Wernieman

Du solltest Dir aber mal überlegen, die Maschine etwas aufzuräumen ....
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

3dmanipulator

raspberry pi, razberry, fibaro sensor, fibaro dimmer,  nodon fb, tkb dual dimmer Switch, milight e27 + stripe, hmlan, hm-TC, hm-RT

Wernieman

- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html