Hello everyone !!
I hope you can help me, I am taking my first steps in the world of noder-red and I am looking forward to making a dashboard for monitoring the IP devices that I have in the offices of my work.
Basically I have these 4 offices, with their respective devices:
Office 1:
- printer: 192.168.1.11
- pc 1: 192.168.1.12
- pc 2: 192.168.1.13
- pc 3: 192.168.1.14
Office 2:
- printer: 192.168.2.11
- pc 1: 192.168.2.12
- pc 2: 192.168.2.13
- pc 3: 192.168.2.14
Office 3:
- printer: 192.168.3.11
- pc 1: 192.168.3.12
- pc 2: 192.168.3.13
- pc 3: 192.168.3.14
Office 4:
- printer: 192.168.4.11
- pc 1: 192.168.4.12
- pc 2: 192.168.4.13
- pc 3: 192.168.4.14
I started creating the tables with ui_tables and a function to be able to test and inject simulated data, in this way I could see that everything is going well in the status monitor.
Here is what I did so far.
[{"id":"8eb12775.483628","type":"inject","z":"f16e1fbf.b19a8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[{\"ID\":\"01\",\"Oficina\":\"01\",\"Latencia Print\":\"103\",\"Impresora\":\"ok\",\"PC 1\":\"ok\",\"PC 2\":\"ok\",\"PC 3\":\"ok\"}, {\"ID\":\"02\",\"Oficina\":\"01\",\"Latencia Print\":\"103\",\"Impresora\":\"ok\",\"PC 2\":\"ok\",\"PC 2\":\"ok\",\"PC 3\":\"ok\"}, {\"ID\":\"03\",\"Oficina\":\"01\",\"Latencia Print\":\"103\",\"Impresora\":\"ok\",\"PC 3\":\"ok\",\"PC 2\":\"ok\",\"PC 3\":\"ok\"}, {\"ID\":\"04\",\"Oficina\":\"01\",\"Latencia Print\":\"103\",\"Impresora\":\"ok\",\"PC 4\":\"ok\",\"PC 2\":\"ok\",\"PC 3\":\"ok\"}, {\"ID\":\"05\",\"Oficina\":\"02\",\"Latencia Print\":\"103\",\"Impresora\":\"ok\",\"PC 1\":\"ok\",\"PC 2\":\"ok\",\"PC 3\":\"ok\"}, {\"ID\":\"06\",\"Oficina\":\"02\",\"Latencia Print\":\"103\",\"Impresora\":\"ok\",\"PC 2\":\"ok\",\"PC 2\":\"ok\",\"PC 3\":\"ok\"}, {\"ID\":\"07\",\"Oficina\":\"02\",\"Latencia Print\":\"103\",\"Impresora\":\"ok\",\"PC 3\":\"ok\",\"PC 2\":\"ok\",\"PC 3\":\"ok\"}, {\"ID\":\"08\",\"Oficina\":\"02\",\"Latencia Print\":\"103\",\"Impresora\":\"ok\",\"PC 4\":\"ok\",\"PC 2\":\"ok\",\"PC 3\":\"ok\"}, {\"ID\":\"09\",\"Oficina\":\"03\",\"Latencia Print\":\"103\",\"Impresora\":\"ok\",\"PC 1\":\"ok\",\"PC 2\":\"ok\",\"PC 3\":\"ok\"}, {\"ID\":\"10\",\"Oficina\":\"03\",\"Latencia Print\":\"103\",\"Impresora\":\"ok\",\"PC 2\":\"ok\",\"PC 2\":\"ok\",\"PC 3\":\"ok\"}, {\"ID\":\"11\",\"Oficina\":\"03\",\"Latencia Print\":\"103\",\"Impresora\":\"ok\",\"PC 3\":\"ok\",\"PC 2\":\"ok\",\"PC 3\":\"ok\"}, {\"ID\":\"12\",\"Oficina\":\"03\",\"Latencia Print\":\"103\",\"Impresora\":\"ok\",\"PC 4\":\"ok\",\"PC 2\":\"ok\",\"PC 3\":\"ok\"} ]","payloadType":"json","x":270,"y":160,"wires":[["5592d69.1974928"]]},{"id":"5592d69.1974928","type":"ui_table","z":"f16e1fbf.b19a8","group":"8b1db693.daf448","name":"","order":4,"width":0,"height":0,"columns":[],"outputs":0,"cts":false,"x":510,"y":160,"wires":[]},{"id":"8b1db693.daf448","type":"ui_group","z":"","name":"Ofiicinas","tab":"ef7098ce.c64e78","order":1,"disp":true,"width":"25","collapse":false},{"id":"ef7098ce.c64e78","type":"ui_tab","z":"","name":"Federico","icon":"track_changes","order":1,"disabled":false,"hidden":false}]
The question is that what I would like is to find a way that every 10 seconds a ping is made to each of the hosts and, depending on the answer, to complete the fields in the table.
I don't know if I can make myself understood. Could you give me some help in this regard or at least tell me what path should I take? I searched the internet but I did not find anything similar, I found something at Monitoring IoT by Ping but it does not work for me.
Thanks everyone for your help!
Sorry for my English, it is not very good.