Hi there,
I need some help monitoring a web page using a HTTP monitor. I simply want to know when the HTTP server is no longer accessible.
My current flow is attached below (too big to paste).
Thanks
[
{
"id": "82df664307dddebe",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": "",
"env": []
},
{
"id": "782629be73fc1d1a",
"type": "switch",
"z": "82df664307dddebe",
"name": "Check if found",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gt",
"v": "0",
"vt": "num"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 560,
"y": 160,
"wires": [
[
"f2c7f815bd6d6233"
],
[
"72b9d81abf404f96"
]
]
},
{
"id": "f2c7f815bd6d6233",
"type": "change",
"z": "82df664307dddebe",
"name": "Kermit Up",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 760,
"y": 120,
"wires": [
[
"8baace6765923d9d"
]
]
},
{
"id": "72b9d81abf404f96",
"type": "change",
"z": "82df664307dddebe",
"name": "Kermit Down",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 770,
"y": 200,
"wires": [
[
"8baace6765923d9d"
]
]
},
{
"id": "8baace6765923d9d",
"type": "rbe",
"z": "82df664307dddebe",
"name": "Filter status changes only",
"func": "rbe",
"gap": "",
"start": "",
"inout": "out",
"septopics": true,
"property": "payload",
"topi": "topic",
"x": 1030,
"y": 160,
"wires": [
[]
]
},
{
"id": "a1568a1929df557c",
"type": "ping",
"z": "82df664307dddebe",
"protocol": "Automatic",
"mode": "timed",
"name": "server1",
"host": "192.168.1.1",
"timer": "5",
"inputs": 0,
"x": 290,
"y": 160,
"wires": [
[
"782629be73fc1d1a"
]
]
}
]