Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Node-Red
  5. Node Advanced Ping

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    16
    1
    1.7k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    866

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.1k

Node Advanced Ping

Scheduled Pinned Locked Moved Node-Red
22 Posts 4 Posters 1.3k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • hotspot_2H Online
    hotspot_2H Online
    hotspot_2
    wrote on last edited by
    #1

    Hallo zusammen,

    ich würde gerne ein paar Pings mit Node Red durchführen und verwende dazu das Node Advanced Ping. Aber egal welchen Host ich dem Node übergebe ich bekomme immer "false" als payload. Der Ping ist also nie erfolgreich obwohl die Geräte alle pingbar sind.

    Hat jemand eine Idee woran das liegen könnte?

    Marc BergM mickymM 2 Replies Last reply
    0
    • hotspot_2H hotspot_2

      Hallo zusammen,

      ich würde gerne ein paar Pings mit Node Red durchführen und verwende dazu das Node Advanced Ping. Aber egal welchen Host ich dem Node übergebe ich bekomme immer "false" als payload. Der Ping ist also nie erfolgreich obwohl die Geräte alle pingbar sind.

      Hat jemand eine Idee woran das liegen könnte?

      Marc BergM Offline
      Marc BergM Offline
      Marc Berg
      Most Active
      wrote on last edited by
      #2

      @hotspot_2 sagte in Node Advanced Ping:

      ich bekomme immer "false" als payload

      auch bei "localhost"?

      NUC10I3+Ubuntu+Docker+ioBroker+influxDB2+Node Red+EMQX+Grafana

      Pi-hole, Traefik, Checkmk, Conbee II+Zigbee2MQTT, ESPSomfy-RTS, LoRaWAN, Arduino, KiCad

      Benutzt das Voting im Beitrag, wenn er euch geholfen hat.

      hotspot_2H 1 Reply Last reply
      0
      • hotspot_2H hotspot_2

        Hallo zusammen,

        ich würde gerne ein paar Pings mit Node Red durchführen und verwende dazu das Node Advanced Ping. Aber egal welchen Host ich dem Node übergebe ich bekomme immer "false" als payload. Der Ping ist also nie erfolgreich obwohl die Geräte alle pingbar sind.

        Hat jemand eine Idee woran das liegen könnte?

        mickymM Online
        mickymM Online
        mickym
        Most Active
        wrote on last edited by
        #3

        @hotspot_2 sagte in Node Advanced Ping:

        Advanced Ping.

        Probiere halt die normale Ping Node - diese Advanced Ping Node - wurde ja schon seit 9 Jahren nicht mehr aktualisiert.

        https://flows.nodered.org/node/node-red-node-ping

        Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

        hotspot_2H 1 Reply Last reply
        0
        • Marc BergM Marc Berg

          @hotspot_2 sagte in Node Advanced Ping:

          ich bekomme immer "false" als payload

          auch bei "localhost"?

          hotspot_2H Online
          hotspot_2H Online
          hotspot_2
          wrote on last edited by
          #4

          @marc-berg Ja, auch bei "localhost".

          1 Reply Last reply
          0
          • mickymM mickym

            @hotspot_2 sagte in Node Advanced Ping:

            Advanced Ping.

            Probiere halt die normale Ping Node - diese Advanced Ping Node - wurde ja schon seit 9 Jahren nicht mehr aktualisiert.

            https://flows.nodered.org/node/node-red-node-ping

            hotspot_2H Online
            hotspot_2H Online
            hotspot_2
            wrote on last edited by
            #5

            @mickym Ok, dann mache ich das mal.

            mickymM 1 Reply Last reply
            0
            • hotspot_2H hotspot_2

              @mickym Ok, dann mache ich das mal.

              mickymM Online
              mickymM Online
              mickym
              Most Active
              wrote on last edited by
              #6

              @hotspot_2 sagte in Node Advanced Ping:

              @mickym Ok, dann mache ich das mal.

              Bei mir tut sie jedenfalls.

              Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

              hotspot_2H 1 Reply Last reply
              0
              • mickymM mickym

                @hotspot_2 sagte in Node Advanced Ping:

                @mickym Ok, dann mache ich das mal.

                Bei mir tut sie jedenfalls.

                hotspot_2H Online
                hotspot_2H Online
                hotspot_2
                wrote on last edited by hotspot_2
                #7

                @mickym

                Wenn ich das hier ausführe, erhalte ich "false" als payload.

                [
                    {
                        "id": "28e232af8d22b0b3",
                        "type": "adv ping",
                        "z": "51a3fc41c8b9f6ae",
                        "name": "",
                        "host": "",
                        "x": 940,
                        "y": 640,
                        "wires": [
                            [
                                "e7944fceaceec9aa"
                            ]
                        ]
                    },
                    {
                        "id": "66a216322848d512",
                        "type": "inject",
                        "z": "51a3fc41c8b9f6ae",
                        "name": "",
                        "props": [
                            {
                                "p": "payload"
                            },
                            {
                                "p": "host",
                                "v": "localhost",
                                "vt": "str"
                            }
                        ],
                        "repeat": "",
                        "crontab": "",
                        "once": false,
                        "onceDelay": 0.1,
                        "topic": "",
                        "payload": "",
                        "payloadType": "date",
                        "x": 720,
                        "y": 640,
                        "wires": [
                            [
                                "28e232af8d22b0b3"
                            ]
                        ]
                    },
                    {
                        "id": "e7944fceaceec9aa",
                        "type": "debug",
                        "z": "51a3fc41c8b9f6ae",
                        "name": "debug 22",
                        "active": true,
                        "tosidebar": true,
                        "console": false,
                        "tostatus": false,
                        "complete": "true",
                        "targetType": "full",
                        "statusVal": "",
                        "statusType": "auto",
                        "x": 1140,
                        "y": 640,
                        "wires": []
                    }
                ]
                

                Wenn ich das auf der Proxmox Maschine direkt mache krieg ich auf alles eine Antwort.

                mickymM 1 Reply Last reply
                0
                • hotspot_2H hotspot_2

                  @mickym

                  Wenn ich das hier ausführe, erhalte ich "false" als payload.

                  [
                      {
                          "id": "28e232af8d22b0b3",
                          "type": "adv ping",
                          "z": "51a3fc41c8b9f6ae",
                          "name": "",
                          "host": "",
                          "x": 940,
                          "y": 640,
                          "wires": [
                              [
                                  "e7944fceaceec9aa"
                              ]
                          ]
                      },
                      {
                          "id": "66a216322848d512",
                          "type": "inject",
                          "z": "51a3fc41c8b9f6ae",
                          "name": "",
                          "props": [
                              {
                                  "p": "payload"
                              },
                              {
                                  "p": "host",
                                  "v": "localhost",
                                  "vt": "str"
                              }
                          ],
                          "repeat": "",
                          "crontab": "",
                          "once": false,
                          "onceDelay": 0.1,
                          "topic": "",
                          "payload": "",
                          "payloadType": "date",
                          "x": 720,
                          "y": 640,
                          "wires": [
                              [
                                  "28e232af8d22b0b3"
                              ]
                          ]
                      },
                      {
                          "id": "e7944fceaceec9aa",
                          "type": "debug",
                          "z": "51a3fc41c8b9f6ae",
                          "name": "debug 22",
                          "active": true,
                          "tosidebar": true,
                          "console": false,
                          "tostatus": false,
                          "complete": "true",
                          "targetType": "full",
                          "statusVal": "",
                          "statusType": "auto",
                          "x": 1140,
                          "y": 640,
                          "wires": []
                      }
                  ]
                  

                  Wenn ich das auf der Proxmox Maschine direkt mache krieg ich auf alles eine Antwort.

                  mickymM Online
                  mickymM Online
                  mickym
                  Most Active
                  wrote on last edited by mickym
                  #8

                  Wie gesagt nutze halt die normale Ping node. Auch die normale Ping Node - kann entweder selbst triggern oder man triggert wie Du von aussen.

                  d5a5cd66-d58a-4dd6-b223-9ae6e92bfddb-image.png

                  [
                     {
                         "id": "66a216322848d512",
                         "type": "inject",
                         "z": "54b226bc.0793e8",
                         "name": "",
                         "props": [
                             {
                                 "p": "payload"
                             },
                             {
                                 "p": "host",
                                 "v": "localhost",
                                 "vt": "str"
                             }
                         ],
                         "repeat": "",
                         "crontab": "",
                         "once": false,
                         "onceDelay": 0.1,
                         "topic": "",
                         "payload": "",
                         "payloadType": "date",
                         "x": 270,
                         "y": 4080,
                         "wires": [
                             [
                                 "601e1191cded82ce"
                             ]
                         ]
                     },
                     {
                         "id": "e7944fceaceec9aa",
                         "type": "debug",
                         "z": "54b226bc.0793e8",
                         "name": "debug 22",
                         "active": true,
                         "tosidebar": true,
                         "console": false,
                         "tostatus": false,
                         "complete": "true",
                         "targetType": "full",
                         "statusVal": "",
                         "statusType": "auto",
                         "x": 690,
                         "y": 4080,
                         "wires": []
                     },
                     {
                         "id": "601e1191cded82ce",
                         "type": "ping",
                         "z": "54b226bc.0793e8",
                         "protocol": "Automatic",
                         "mode": "triggered",
                         "name": "",
                         "host": "www.google.com",
                         "timer": "20",
                         "inputs": 1,
                         "x": 490,
                         "y": 4080,
                         "wires": [
                             [
                                 "e7944fceaceec9aa"
                             ]
                         ]
                     }
                  ]
                  

                  Zeitgesteuert - feuert die Node selbst ohne externen trigger.

                  Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                  hotspot_2H 1 Reply Last reply
                  0
                  • mickymM mickym

                    Wie gesagt nutze halt die normale Ping node. Auch die normale Ping Node - kann entweder selbst triggern oder man triggert wie Du von aussen.

                    d5a5cd66-d58a-4dd6-b223-9ae6e92bfddb-image.png

                    [
                       {
                           "id": "66a216322848d512",
                           "type": "inject",
                           "z": "54b226bc.0793e8",
                           "name": "",
                           "props": [
                               {
                                   "p": "payload"
                               },
                               {
                                   "p": "host",
                                   "v": "localhost",
                                   "vt": "str"
                               }
                           ],
                           "repeat": "",
                           "crontab": "",
                           "once": false,
                           "onceDelay": 0.1,
                           "topic": "",
                           "payload": "",
                           "payloadType": "date",
                           "x": 270,
                           "y": 4080,
                           "wires": [
                               [
                                   "601e1191cded82ce"
                               ]
                           ]
                       },
                       {
                           "id": "e7944fceaceec9aa",
                           "type": "debug",
                           "z": "54b226bc.0793e8",
                           "name": "debug 22",
                           "active": true,
                           "tosidebar": true,
                           "console": false,
                           "tostatus": false,
                           "complete": "true",
                           "targetType": "full",
                           "statusVal": "",
                           "statusType": "auto",
                           "x": 690,
                           "y": 4080,
                           "wires": []
                       },
                       {
                           "id": "601e1191cded82ce",
                           "type": "ping",
                           "z": "54b226bc.0793e8",
                           "protocol": "Automatic",
                           "mode": "triggered",
                           "name": "",
                           "host": "www.google.com",
                           "timer": "20",
                           "inputs": 1,
                           "x": 490,
                           "y": 4080,
                           "wires": [
                               [
                                   "e7944fceaceec9aa"
                               ]
                           ]
                       }
                    ]
                    

                    Zeitgesteuert - feuert die Node selbst ohne externen trigger.

                    hotspot_2H Online
                    hotspot_2H Online
                    hotspot_2
                    wrote on last edited by
                    #9

                    @mickym Cool, mit der normalen Ping Node ist auch alles false (localhost, IP-Adressen).

                    mickymM Thomas BraunT 2 Replies Last reply
                    0
                    • hotspot_2H hotspot_2

                      @mickym Cool, mit der normalen Ping Node ist auch alles false (localhost, IP-Adressen).

                      mickymM Online
                      mickymM Online
                      mickym
                      Most Active
                      wrote on last edited by
                      #10

                      @hotspot_2 Hmm da hab ich keine Ahnung

                      d64d7f3c-add9-4348-b042-f2ee7fd7badf-image.png

                      34d4eb63-49e0-447a-95db-c61f0f9f88ea-image.png

                      Vielleicht hat irgendwas keine Berechtigung - bei mir funktioniert die Node. - Ich schätze mal Du musst in Deinem Netzwerk Berechtigung oder proxmox zu tun.

                      Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                      1 Reply Last reply
                      0
                      • hotspot_2H hotspot_2

                        @mickym Cool, mit der normalen Ping Node ist auch alles false (localhost, IP-Adressen).

                        Thomas BraunT Online
                        Thomas BraunT Online
                        Thomas Braun
                        Most Active
                        wrote on last edited by
                        #11

                        @hotspot_2

                        sudo -H -u iobroker ping google.com
                        

                        funktioniert?

                        Linux-Werkzeugkasten:
                        https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                        NodeJS Fixer Skript:
                        https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                        iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                        hotspot_2H 1 Reply Last reply
                        0
                        • Thomas BraunT Thomas Braun

                          @hotspot_2

                          sudo -H -u iobroker ping google.com
                          

                          funktioniert?

                          hotspot_2H Online
                          hotspot_2H Online
                          hotspot_2
                          wrote on last edited by
                          #12

                          @thomas-braun sagte in Node Advanced Ping:

                          sudo -H -u iobroker ping google.com

                          Nein, das ist die Antwort:

                          ping: socktype: SOCK_RAW
                          ping: socket: Operation not permitted
                          ping: => missing cap_net_raw+p capability or setuid?
                          
                          
                          1 Reply Last reply
                          0
                          • mickymM Online
                            mickymM Online
                            mickym
                            Most Active
                            wrote on last edited by
                            #13

                            Vielleicht hast Du in deinem Container die Verwendung von ICMP Nachrichten verboten?

                            Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                            hotspot_2H 1 Reply Last reply
                            0
                            • mickymM mickym

                              Vielleicht hast Du in deinem Container die Verwendung von ICMP Nachrichten verboten?

                              hotspot_2H Online
                              hotspot_2H Online
                              hotspot_2
                              wrote on last edited by hotspot_2
                              #14

                              @mickym Wenn ich den Befehl richtig deute hat wohl eher der user iobroker hier ein Problem. Aber Thomas wird da bestimmt eine Idee haben ;-).

                              mickymM 1 Reply Last reply
                              0
                              • hotspot_2H hotspot_2

                                @mickym Wenn ich den Befehl richtig deute hat wohl eher der user iobroker hier ein Problem. Aber Thomas wird da bestimmt eine Idee haben ;-).

                                mickymM Online
                                mickymM Online
                                mickym
                                Most Active
                                wrote on last edited by mickym
                                #15

                                @hotspot_2 sagte in Node Advanced Ping:

                                Wenn ich den Befehl richtig deute hat wohl eher der user iobroker hier ein Problem

                                Na das eine muss das andere ja nicht ausschließen. Das ist wohl eher eine Geschichte von Proxmox, das hier dem User Iobroker die entsprechenden Rechte zu vergeben.
                                Den Text den @Thomas-Braun gemacht hat - ist klar - weil NodeRed im iobroker unter dem User "iobroker" arbeitet. Also musst Du dem user in Deinem System die Rechte geben, dass er ICMP Nachrichten nutzen kann.

                                Somit liegt das Problem nicht beim iobroker, NodeRed - sondern in Deinem Systemumfeld.

                                Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                                hotspot_2H 1 Reply Last reply
                                0
                                • mickymM mickym

                                  @hotspot_2 sagte in Node Advanced Ping:

                                  Wenn ich den Befehl richtig deute hat wohl eher der user iobroker hier ein Problem

                                  Na das eine muss das andere ja nicht ausschließen. Das ist wohl eher eine Geschichte von Proxmox, das hier dem User Iobroker die entsprechenden Rechte zu vergeben.
                                  Den Text den @Thomas-Braun gemacht hat - ist klar - weil NodeRed im iobroker unter dem User "iobroker" arbeitet. Also musst Du dem user in Deinem System die Rechte geben, dass er ICMP Nachrichten nutzen kann.

                                  Somit liegt das Problem nicht beim iobroker, NodeRed - sondern in Deinem Systemumfeld.

                                  hotspot_2H Online
                                  hotspot_2H Online
                                  hotspot_2
                                  wrote on last edited by hotspot_2
                                  #16

                                  @mickym Jupp, der User IOBroker in meiner Umgebung hat ein Problem. Hast Du zufällig eine Ahnung wie das geht dem User das Recht zu geben?

                                  mickymM Thomas BraunT 2 Replies Last reply
                                  0
                                  • hotspot_2H hotspot_2

                                    @mickym Jupp, der User IOBroker in meiner Umgebung hat ein Problem. Hast Du zufällig eine Ahnung wie das geht dem User das Recht zu geben?

                                    mickymM Online
                                    mickymM Online
                                    mickym
                                    Most Active
                                    wrote on last edited by
                                    #17

                                    @hotspot_2 Nein tut mir leid - habe von Proxmox keine Ahnung.

                                    Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                                    hotspot_2H 1 Reply Last reply
                                    0
                                    • hotspot_2H hotspot_2

                                      @mickym Jupp, der User IOBroker in meiner Umgebung hat ein Problem. Hast Du zufällig eine Ahnung wie das geht dem User das Recht zu geben?

                                      Thomas BraunT Online
                                      Thomas BraunT Online
                                      Thomas Braun
                                      Most Active
                                      wrote on last edited by
                                      #18

                                      @hotspot_2

                                      sudo setcap 'cap_net_raw=p' `type -p ping`
                                      

                                      mal versuchen.

                                      Linux-Werkzeugkasten:
                                      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                      NodeJS Fixer Skript:
                                      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                      1 Reply Last reply
                                      0
                                      • mickymM mickym

                                        @hotspot_2 Nein tut mir leid - habe von Proxmox keine Ahnung.

                                        hotspot_2H Online
                                        hotspot_2H Online
                                        hotspot_2
                                        wrote on last edited by
                                        #19

                                        @mickym Ist das nicht eher ein Linux Problem? Mit dem Admin - User auf der Proxmox Maschine kann ich pingen. Also müsste ich jetzt doch dem User iobroker auf der Proxmox VM das Recht geben und dann sollte es klappen, oder?

                                        hotspot_2H Thomas BraunT 2 Replies Last reply
                                        0
                                        • hotspot_2H hotspot_2

                                          @mickym Ist das nicht eher ein Linux Problem? Mit dem Admin - User auf der Proxmox Maschine kann ich pingen. Also müsste ich jetzt doch dem User iobroker auf der Proxmox VM das Recht geben und dann sollte es klappen, oder?

                                          hotspot_2H Online
                                          hotspot_2H Online
                                          hotspot_2
                                          wrote on last edited by hotspot_2
                                          #20

                                          @hotspot_2 Hat geklappt, mit dem vorheringen Befehl kann ich jetzt pingen.

                                          Und mit Node Red klappt jetzt auch alles. Top!

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          456

                                          Online

                                          32.6k

                                          Users

                                          82.1k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe