Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Node-Red
    5. Node Advanced Ping

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Node Advanced Ping

    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hotspot_2 @mickym last edited by 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.

      mickym 1 Reply Last reply Reply Quote 0
      • mickym
        mickym Most Active @hotspot_2 last edited by 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.

        H 1 Reply Last reply Reply Quote 0
        • H
          hotspot_2 @mickym last edited by

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

          mickym Thomas Braun 2 Replies Last reply Reply Quote 0
          • mickym
            mickym Most Active @hotspot_2 last edited by

            @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.

            1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @hotspot_2 last edited by

              @hotspot_2

              sudo -H -u iobroker ping google.com
              

              funktioniert?

              H 1 Reply Last reply Reply Quote 0
              • H
                hotspot_2 @Thomas Braun last edited by

                @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 Reply Quote 0
                • mickym
                  mickym Most Active last edited by

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

                  H 1 Reply Last reply Reply Quote 0
                  • H
                    hotspot_2 @mickym last edited by 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 ;-).

                    mickym 1 Reply Last reply Reply Quote 0
                    • mickym
                      mickym Most Active @hotspot_2 last edited by 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.

                      H 1 Reply Last reply Reply Quote 0
                      • H
                        hotspot_2 @mickym last edited by 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?

                        mickym Thomas Braun 2 Replies Last reply Reply Quote 0
                        • mickym
                          mickym Most Active @hotspot_2 last edited by

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

                          H 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @hotspot_2 last edited by

                            @hotspot_2

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

                            mal versuchen.

                            1 Reply Last reply Reply Quote 0
                            • H
                              hotspot_2 @mickym last edited by

                              @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?

                              H Thomas Braun 2 Replies Last reply Reply Quote 0
                              • H
                                hotspot_2 @hotspot_2 last edited by hotspot_2

                                @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 Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @hotspot_2 last edited by

                                  @hotspot_2

                                  Das ist überhaupt kein 'Problem' oder gar ein Fehler, das ist genauso wie vorgesehen. Es darf nicht jeder Dödel-User wild durch die Gegend pingen.

                                  H 1 Reply Last reply Reply Quote 0
                                  • H
                                    hotspot_2 @Thomas Braun last edited by

                                    @thomas-braun Ok. Passt für mich.

                                    Vielen Dank für die Hilfe!

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post

                                    Support us

                                    ioBroker
                                    Community Adapters
                                    Donate

                                    554
                                    Online

                                    31.7k
                                    Users

                                    79.7k
                                    Topics

                                    1.3m
                                    Posts

                                    4
                                    22
                                    804
                                    Loading More Posts
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    Community
                                    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                    The ioBroker Community 2014-2023
                                    logo