start all monitors api

Post Reply
zemerdon
Site Admin
Posts: 310
Joined: Mon Jan 23, 2023 8:13 pm

start all monitors api

Post by zemerdon »

Code: Select all

#!/bin/bash
sleep 5
curl -XPOST http://192.168.1.13/zm/api/monitors/2.json -d "Monitor[Function]=Mocord&Monitor[Enabled]=1"
curl -XPOST http://192.168.1.13/zm/api/monitors/3.json -d "Monitor[Function]=Mocord&Monitor[Enabled]=1"
curl -XPOST http://192.168.1.13/zm/api/monitors/5.json -d "Monitor[Function]=Mocord&Monitor[Enabled]=1"
curl -XPOST http://192.168.1.13/zm/api/monitors/6.json -d "Monitor[Function]=Mocord&Monitor[Enabled]=1"
curl -XPOST http://192.168.1.13/zm/api/monitors/7.json -d "Monitor[Function]=Mocord&Monitor[Enabled]=1"
curl -XPOST http://192.168.1.13/zm/api/monitors/8.json -d "Monitor[Function]=Mocord&Monitor[Enabled]=1"
curl -XPOST http://192.168.1.13/zm/api/monitors/9.json -d "Monitor[Function]=Mocord&Monitor[Enabled]=1"
curl -XPOST http://192.168.1.13/zm/api/monitors/10.json -d "Monitor[Function]=Mocord&Monitor[Enabled]=1"
Post Reply