Giter Club home page Giter Club logo

iobroker.ping's Introduction

Logo

PING Adapter

Number of Installations Number of Installations NPM version

Test and Release Translation status Downloads

Pings configured IP addresses.

Pings specified IP addresses in a defined interval and monitors the results.

This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.

Ping from javascript adapter

You can ping any IP address from the javascript adapter with command:

sendTo('ping.0', 'ping', '192.168.1.1', (res) => {
    console.log('Result: ' + JSON.stringify(res)); // Result: {"result": {"host": "192.168.1.1", "alive": true, "ms": 250}} 
});

Known Issues

  • if it is not possible to ping your linux client, check if iputils-ping is correctly installed on a client.

Changelog

1.6.2 (2023-07-19)

  • (McM1957) Handling of state updates causing crashes with js-controller 5 has been corrected. (Issue #106)
  • (McM1957) Trailing spaces are now removed from ip address and name. Trailing spaces blocked correct operation. (Issue #98)
  • (bluefox) Added json config
  • (bluefox) Added different intervals for online and offline devices
  • (bluefox) implemented export/import of devices

1.5.3 (2022-02-24)

  • (Apollon77) Fix the ping retry logic

1.5.2 (2022-01-20)

  • (basti4557) Number of retries can be defined if a ping request failed. This should minimize wrong offline detection.

1.5.0 (2021-07-14)

  • js-controller 2.0 required at least
  • (Apollon77) optimize for js-controller 3.3

1.4.12 (2020-09-18)

  • (Apollon77) Prevent a crash case when no devices are defined (Sentry IOBROKER-PING-R)

1.4.11 (2020-08-26)

  • (Apollon77) update js-controller dependency to correct version (1.5.8)

1.4.8 (2020-06-29)

  • (Apollon77) Prevent adapter crashes with invalid state/channel names, see error log! (Sentry IOBROKER-PING-H, IOBROKER-PING-P, IOBROKER-PING-B)

1.4.7 (2020-05-02)

  • (Apollon77) finally try to catch spawn errors (Sentry IOBROKER-PING-2)

1.4.6 (2020-04-29)

  • (Apollon77) Make sure adapter does not crash if ping command can not be executed (Sentry)
  • (Apollon77) Catch error when ping.probe could not be started (Sentry IOBROKER-PING-2)

1.4.5 (2020-04-23)

  • (Apollon77) Fixed potential crash case (Sentry)

1.4.4 (2020-04-17)

  • (bluefox) Added support for Admin3

1.4.3 (2020-04-17)

  • (Apollon77) Add Sentry for js-controller 3.0
  • (Apollon77) update dependencies

1.4.2 (2020-01-23)

  • (JayVee2) Sort the IP addresses

1.4.1 (2019-01-08)

  • (simatec) support compact mode

1.4.0 (2018-01-25)

  • (vdemidov) refactored, added ping time and roundtrips per second for every host

1.3.2 (2017-09-20)

  • (ldittmar) object values are converted to the valid type

1.3.0 (2017-02-21)

  • (bluefox) allow to remove host name from state's name

1.2.0 (2016-12-09)

  • (bluefox) change configuration dialog

1.1.3 (2016-11-16)

  • (bluefox) catch error if no IP defined

1.1.1 (2016-04-10)

  • (bluefox) remove ms

1.1.0 (2016-04-10)

  • (bluefox) rewrite ping for windows

1.0.0 (2016-04-03)

  • (bluefox) support for freebsd and all windows languages
  • (bluefox) add tests

0.1.3 (2015-01-26)

  • (bluefox) Fixed the error if configuration changed

0.1.2 (2015-01-14)

  • (bluefox) Fixed the configuration page

0.1.1 (2015-01-03)

  • (bluefox) Enabled npm install

0.1.0 (2014-11-26)

  • (bluefox) Used ping npm module instead of static one

0.0.5 (2014-11-21)

  • (bluefox) Made possible to have shorter ping intervals (down to 5 seconds)

0.0.4 (2014-11-07)

  • (bluefox) fix ping node

0.0.3 (2014-11-03)

  • (bluefox) fix ping node (do not forget to remove package from git when the npm gets the update)

0.0.1 (2014-11-02)

  • (bluefox) support of server (actually no authentication)

License

The MIT License (MIT)

Copyright (c) 2014-2023, bluefox [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

iobroker.ping's People

Contributors

alcalzone avatar apollon77 avatar arteck avatar basti4557 avatar dependabot[bot] avatar germanbluefox avatar hurdurderp avatar jayvee2 avatar johnnybyzhang avatar justr1 avatar ldittmar81 avatar lgtm-migrator avatar maag-da avatar mcm1957 avatar misterx avatar paul53 avatar scrounger avatar simatec avatar sneak-l8 avatar unclesamswiss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iobroker.ping's Issues

STDERR: /bin/ping: socket: Operation not permitted

Hello, I got this error (debug). The ping doesn't work. I had installed "iputils-ping"

ping.1 | 2022-06-16 16:54:42.938 | debug | STDERR: /bin/ping: socket: Operation not permitted
ping.1 | 2022-06-16 16:54:42.931 | debug | System command: /bin/ping -n -w 2 -c 1 192.168.178.146
ping.1 | 2022-06-16 16:54:42.930 | debug | Pinging 192.168.178.146

saving with active filter

when saving with an active filter for a room results in lost of all entered devices of other rooms. I didn't test the other filters - but I guess it results in the same problem.

Anpassen des Ping Intervalls

Mir würde es helfen, wenn man das Ping Intervall über Blockly einstellen kann. Aktuell finde ich nur die Möglichkeit das Intervall manuell in den Einstellungen zu verändern. Ich würde dies gerne je nach Trigger verändern können

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/ioBroker/ioBroker.ping

  • [E150] No common.connectionType found in io-package.json
  • [E152] No common.dataSource found in io-package.json
  • [E502] "admin/img/info-big.png" not found, but selectID.js used in index_m.html

Thanks,
your automatic adapter checker.

State value to set for "x" has to be type "number" but recevied type "string"

Describe the bug
image

image

To Reproduce
Steps to reproduce the behavior:

  1. Add a device which is not reachable
  2. Turn on extended information

Expected behavior
Do not set value '-' when device is not reachable.

Versions:

  • Adapter version: 1.4.12
  • JS-Controller version: 3.3.8
  • Node version: 12.20.1
  • Operating system: Linux

Please fix errors reported by adapter checker

❗ [E510] "/admin/i18n/uk/translations.json" or "admin/i18n/uk.json" not found, but admin support is declared
👀 [W171] "common.title" is deprecated in io-package.json
👀 [W105] "common.titleLang" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
👀 [W109] "common.desc" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)

Please check ioBroker.ping with js-controller 2.0

Hi,

the new js-controller 2.0 will come into latest repository in the next days and we want to make sure that all adapters are working well. We already did a 2 weeks Beta test and so some adapter were aleady checked and some needed slight adjustments.

You can find more information in ioBroker/ioBroker.js-controller#482 and in the ioBroker Forum. If you have more technical questions please write in the referenced issue or in the Developer thread please. General questions are best in the genral thread.

Please update your systems to js-controller 2.0 and check your adapter.

Please close this issue once you have checked your adapter or received successfull reports from users.

Thank you very much for your support. Please contact us in the other Threads or Forum on any question.

Ping Adapter Status-Aktualisierung

Hallo,
blockly reagiert nicht auf die Status-Aktualisierung. Weiß nicht ob das eher am Blockly oder am Objekt liegt.
Node.js: v8.12.0
NPM: 4.6.1

Incorrect state of the added hosts

State of hosts is false.

Log in debug mode:
2018-09-26 18:21:34.357  - info: host.tpp instance system.adapter.ping.0 started with pid 5610
2018-09-26 18:21:39.184  - debug: ping.0 objectDB connected
2018-09-26 18:21:39.535  - debug: ping.0 statesDB connected
2018-09-26 18:21:39.785  - info: ping.0 starting. Version 1.3.2 in /mnt/mmc0p1/iobroker/node_modules/iobroker.ping, node: v6.11.2
2018-09-26 18:21:39.808  - debug: ping.0 Host=tpp
2018-09-26 18:21:40.016  - debug: ping.0 Pinging 192.168.75.50
2018-09-26 18:21:40.025  - debug: ping.0 System command: /bin/ping -n -w 2 -c 1 192.168.75.50
2018-09-26 18:21:40.086  - debug: ping.0 Ping result for 192.168.75.50: false in -ms
2018-09-26 18:21:40.104  - debug: ping.0 Pinging 192.168.75.59
2018-09-26 18:21:40.106  - debug: ping.0 System command: /bin/ping -n -w 2 -c 1 192.168.75.59
2018-09-26 18:21:40.153  - debug: ping.0 Ping result for 192.168.75.59: false in -ms
2018-09-26 18:21:45.182  - debug: ping.0 Pinging 192.168.75.50
2018-09-26 18:21:45.188  - debug: ping.0 System command: /bin/ping -n -w 2 -c 1 192.168.75.50
2018-09-26 18:21:45.236  - debug: ping.0 Ping result for 192.168.75.50: false in -ms
2018-09-26 18:21:45.252  - debug: ping.0 Pinging 192.168.75.59

But the ping command is successful:

root@tpp:/mnt/mmc0p1/iobroker# /bin/ping -n -w 2 -c 1 192.168.75.50
PING 192.168.75.50 (192.168.75.50): 56 data bytes
64 bytes from 192.168.75.50: seq=0 ttl=64 time=0.901 ms

--- 192.168.75.50 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 0.901/0.901/0.901 ms

And just ping:

root@tpp:/mnt/mmc0p1/iobroker# ping 192.168.75.50
PING 192.168.75.50 (192.168.75.50): 56 data bytes
64 bytes from 192.168.75.50: seq=0 ttl=64 time=0.771 ms
64 bytes from 192.168.75.50: seq=1 ttl=64 time=0.901 ms
64 bytes from 192.168.75.50: seq=2 ttl=64 time=0.786 ms
64 bytes from 192.168.75.50: seq=3 ttl=64 time=0.928 ms
^C
--- 192.168.75.50 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.771/0.846/0.928 ms

Update from 1.5.0 to 1.5.1 / how ?

Describe the bug
Runing Ping version 1.5.0 on iobroker.

Interesting in feature added to 1.5.1

No knob to update to 1.5.1 provided.

Noticed here on gitpage: Marked as : Test and release failing.

Expected behavior
Update possablity on iobroker UI to 1.5.1

How can it be solved ? Manual Installation ? If yes, how ?

Import / Export of Device List

Is your feature request related to a problem? Please describe.
I have a large list of devices which I would like to maintain in Excel or a Texteditor

Describe the solution you'd like
Import / Export (csv) of the device list

Describe alternatives you've considered
None

Additional context
None

Compatibility check and testing for Node.js 14 and 16

Dear Adapter develop,

Node.js 14 is now available for a year and Node.js 16 was release just some days ago and will become LTS by October 2021. We plan to update the ioBroker Node.js recommendation (currently 12.x) to 14.x later this year.

Please check your adapter with Node.js 14 especially, and ideally also directly with Node.js 16

Please add both versions to the adapter testing which is executed on commits.

If your adapter requires a certain minimum version of Node.js please set the 'engine' setting in package.json accordingly! Please also do this if the adapter is not able to work in certain Node.js versions, so that ioBroker can prevent users from installing te adapter if not compatible!

On questions please talk to us at ioBroker/ioBroker.js-controller#1138

Please close the issue after you checked it.

Thank you very much for your support!

Missing rooms from CCU in selection list

The rooms selection list doesn't list all rooms defined in CCU. Especially changes seem not to be updated.
CCU3 and iobroker already rebooted. Adapter restarted.
Any idea?
-jayvee

missing values for time and rps

Reading pull requests #9 & #10 I expected to get datap for:

time -- number, value.interval -- time of ping in seconds
rps -- number, value -- number of round trips to host per second

However none of them exits, am I wrong or is this a bug ?
grafik
grafik
Thanks

Seit dem Update Error Meldungen vom Adapter: Error: ping.probe: there was an error while executing the ping program. check the path or permissions...: Error: spawn /bin/ping ENOENT

Mein aktuelles System :

Plattform: linux
Betriebssystem: linux
Architektur: x64
CPUs: 2
Geschwindigkeit: 2001 MHz
Modell: Intel(R) Celeron(R) CPU J3355 @ 2.00GHz
RAM: 9.5 GB
System-Betriebszeit: 13 T. 09:04:09
Node.js: v12.22.6
Datenträgergröße: 3572.6 GB
Festplatte frei: 1978.1 GB
Adapter-Anzahl: 360
NPM: v6.14.15
Betriebszeit: 02:02:23
Aktive Instanzen: 29
Pfad: /opt/iobroker/

Seit dem Update vom iobroker Image im Docker habe ich folgende Fehlermeldung:

Error: ping.probe: there was an error while executing the ping program. check the path or permissions...: Error: spawn /bin/ping ENOENT

Ping Intervall pro Gerät im Adapter festlegen

Ich würde gerne den Ping Intervall pro Gerät festlegen.

Derzeit habe ich zwei Instanzen installiert mit unterschiedlichen Zeiten.

In der ersten Instanz checke eich zwei Geräte mit einen Intervall von 1 Minute
In der zweiten ein Gerät mit 10 Minuten.

Ich hätte jetzt Bedarf ein Gerät alle 30 Sekunden zu prüfen. Hieße wieder eine Instanz.

Klar jetzt könnte man einfach alle Gerät 30 Sekunden prüfen lassen aber ich prüfe nur wenn notwendig. Somit ist die Last im Netzwerk geringer und auch ioBroker hat weniger zu tun.

Ping Timeout

Hallo,

kann man irgendwo das Ping Timeout definieren? Hintergrund ist der das ich einige per LTE/VPN aufgeschaltete Stationen überwache und der erste Ping meist länger als eine Sekunde unterwegs ist.

Verify Compact mode for your adapter

We have detected that your adapter supports the compact mode. Please use the latest js-controller 2.0 and verify that everything works.

Some more information what is important to check can be found at ioBroker/ioBroker.js-controller#512

On questions please answer to the linked issue. Please close this issue after your test and add the version number that you have tested please as a comment.

Thank you for your support.

ping per Javascript ausführen

Ich fände es schön wenn es möglich wäre bestimmte IP,´s aus einen Javascript direkt anzupingen. Ich überwäche mit dem Adapter ein paar IP´s. I. d. R. laufen die immer alle. Um nicht unnötig oft zu pingen habe ich einen relativ langen Intervall von 10 Minuten eingestellt.

Jetzt habe ich aber den Anwendungsfall, dass wenn ein Datenpunkt von einen anderen Adapter auf false geht würde ich gerne direkt zwei Datenpunke aus dem Ping Adapter aktualisieren ohne erst den nächsten Intervall abzuwarten.

Ping Adapter Fehler bei nicht Erreichbarkeit

Ping Adapter Version 1.5.2

Wenn die Anzahl der eingestellten Ping Versuche größer als 1 bricht der Adapter das pingen bei dem Gerät was er nicht erreichen kann ab, die folgenden Geräte werden nicht mehr versucht zu pingen.
Beispiel es sind 10 Geräte in der Liste und das dritte Gerät ist nicht erreichbar dann wird nicht versucht Gerät 4 bis 10 an zu pingen.
Wenn die Anzahl der Versuche auf 1 gestellt wird, funktioniert es einwandfrei.
Es scheint sich also noch ein Fehler in einer Schleife der Programmierung eingeschlichen zu haben.

other subnet mask is invisble

my ioBroker has IP 192.168.0.41 and can´t find my devices which are in area 192.168.31.xxx

Other devices like sonoff via MQTT can communicate between these subnets.
My mask at the primary network is set to 255.255.0.0 which causes the IP for the ioBroker.
In line behind this router, the secound router is with the standard 255.255.255.0 mask because I can´t change it at this device.

I´m using this adapter for my presence control and before my old network was overloaded because of Iot AND normal usage, it worked great. Now I have an IoT Network and a standard.
So our Smartphones are in the standard network 192.168.31.xxx and the ioBroker need to see these devices.

Any idea or workarounds?

Thanks a lot.

Verschieben Pingintervall je nach Erreichbarkeit

Hallo,

ich fände es ziemlich praktisch, wenn man ja nach Erreichbarkeit eines Gerätes einen anderen Intervall zum pingen einstellen könnte.

Zb wenn das Gerät nicht erreichbar ist alle 3sek.
Wenn man zuletzt einen erfolgreichen ping hatte nur jede Minute.
Oder wie man es sich eben wünscht.

Eventuell sogar pro Gerät einstellbar.

Mein Gedanke ist, dass man wenn man zu Hause ist ja nicht das Netz und Handy andauernd belasten muss.
Wenn man das Haus verlässt und wieder nach Hause kommt wird aber schnell das Handy wieder gefunden da es öfters angepingt wird.

Permission error

Hello,

since today im getting this Error:

`

Error: ping.probe: there was an error while executing the ping program. check the path or permissions...: Error: spawn /bin/ping ENOENT

`

im using iobroker in docker on my NAS. Ping version is 1.5.0

I didnt change anything in the last days but im getting now since some hours a massive amount of this errors

Monitoring eines bestimmen Ports

Hallo,

ich bin neu bei IoB und bin dabei auf den Adapter gestoßen.
Ein paar Dinge kann ich damit erreichen.
In meinem alten System war es auch möglich einen bestimmten Port einer Adresse auf Erreichbarkeit zu prüfen.
Kann ich das hiermit auch hinbekommen.
Wenn ich aktuell einfach den Port anhänge bleibt die Ausgabe immer bei "false" obwohl ich weiß, dass der Port aktuell erreichbar ist.

keine Erkennung

Bei allen Echo (Amazon) - Geräte und Sky-Boxen erfolgt keine Erkennung. Der Status ist immer false.

Trailing spaces at ip address block pinging

Describe the bug
If you add a traing space to an ip address (i.e. "8.8.8.8 ") the ping always fails.

To Reproduce
Simply add a space after the ip address of an working device entry

Expected behavior
The ip address string shuld be trimmed or an clear exception should be output.

Trailing spaces can likely occure when using cut & paste to copy addresses.

Versions:

  • Adapter version: 1.5.3

Note:
Leading spaces could be a issue too - but this has not been tested

Release script: Action required

Hi, it looks like you are using @alcalzone/release-script to manage your releases.
When updating to the latest version, you need to remove the following line from your .github/workflows/test-and-release.yml if you want the releases to keep working:

  deploy:
    # Trigger this step only when a commit on master is tagged with a version number
    if: |
      contains(github.event.head_commit.message, '[skip ci]') == false &&
      github.event_name == 'push' &&
-     github.event.base_ref == 'refs/heads/master' &&
      startsWith(github.ref, 'refs/tags/v')

It may also look like this one:

  deploy:
    # Trigger this step only when a commit on master is tagged with a version number
    if: |
      contains(github.event.head_commit.message, '[skip ci]') == false &&
      github.event_name == 'push' &&
-     github.event.base_ref == 'refs/heads/main' &&
      startsWith(github.ref, 'refs/tags/v')

[Feature request] Please allow the use of a hostname instead of an IP address

Is your feature request related to a problem? Please describe.
I have a bunch of hosts in different rooms/buildings, that sometimes get unplugged. Since those hosts get their IP from a DHCP Server that I don't control, their IPs may change without me noticing. The config page of this plugin does not accept a hostname (FQDN) instead of an IP. Therefore I cannot use this plugin to check if the hosts are still online.

Describe the solution you'd like
I would like to use hostnames of the hosts instead of their IPs.

Describe alternatives you've considered
I have considered running a script every few hours to check the DNS entries of the hosts and update the configuration of this plugin if needed. But since I have not found a way to update the configuration from a script, this doesn't seem possible. Even if it is possible, it is ugly.

"hping3" feature (because Ping does not work with iphones and deepsleep modes)

Is your feature request related to a problem? Please describe.
Until today there is no adapter available who can reliable detect the presence of an iphone.

I tried these Adapters over the last month:
life360, radar2, TR064, geofency, ping, net tools, unifi....

Describe the solution you'd like
I read that "hping3" is the solution here. Then even iphones will wake up on this ping request and the presence detection will work reliable.

PING läuft nicht unter Proxmox und LXC Container

Describe the bug
PING Adapter ist auf "grün" aber alle Geräte werden mit "false" in den DP angezeigt.
Wenn ich auf den LXC Container des iobroker per Konsole gehe kann ich alles pingen.
Leider erscheint auch kein Fehler im iobroker log und somit benötige ich bite deine Hilfe.

grafik

grafik

grafik

Versions:

  • Adapter version: 1.5.0
  • JS-Controller version: 3.3.22
  • Node version: V14.19.0
  • Operating system: ubuntu 21-10 LXC Container

Compatibility check to js-controller 4.0

Dear Adapter developer,

with js-controller 4.0 object definitions are now also checked that min/max in only provided for number/mixed objects and that the type of the default value matches to the object type.

If something is not correct this is logged as 'warning' or 'info' log.

Please also make sure to update to the lastest @iobroker/testing dependency 2.5.4 or to accept the PR from Apollon77 for legacy testing!

Please spent some time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn or info log there from these checks please adjust the adapter and fix the relevant cases.

For questions please refer to ioBroker/ioBroker.js-controller#1749

Please close the issue after you checked it.

Thank you very much for your support to get the best experience for the growing numbers of ioBroker users!

ping result ist always true

ping results seem to be always true. Wenn I switch off WLAN of my mobilephone, ping to this local mobilephone address will stay true. When I tested it via ping from commandline the phone does not answers.
Axel

Alle Ziele immer 'false'

Seit ich unter Proxmox von einer VM auf einen Container (Debian Buster) umgestellt habe, bekomme ich den Ping-Adapter nicht zum Laufen. Also laufen tut er schon, doch meldet er bei jeder Adresse, dass sie nicht erreichbar ist.

Siehe auch: https://forum.iobroker.net/topic/24957/ping-adapter-meldet-immer-false

Since I switched from a VM to a container (Debian Buster) under Proxmox, I can't get the ping adapter to work. So it is already running, but it reports that every address is unreachable.

See also: https://forum.iobroker.net/topic/24957/ping-adapter-meldet-immer-false


System data:

Model: Intel(R) Celeron(R) CPU J3455 @ 1.50GHz
RAM: 7.67 GB
Node.js: v10.16.3
NPM: 6.9.0
Platform: linux
Distribution: Debian GNU/Linux
Architecture: x64
JS-Controller (1): 1.5.14
Admin: 3.6.4
PING Adapter: 1.3.2

created by ioBroker.info

Timestamp of alive/reachable change

Hi!

As far as I see the PING adapter always updates the alive/reachable state even if the value has not changed. That means the last changed timestamp will always have the timestamp of the last check. Makes sense, so you know when the last check took place.

In my scenario I would like to know when the state really changed, i.e. when the device became online/offline.
Example: My phone connected to the network 5 hours ago and the ping adapter checks every minute, I would still want to see a timestamp of 5 hours ago.

Could you add that timestamp to the Extened Info or make an option available where we can choose if the "simple" alive timestamp only gets updated if the value really changed?

Thanks a lot and best regards,
Felix

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.