start all monitors api
Posted: Tue Aug 19, 2025 7:47 pm
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"