Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ $(fwconsole pm2 --list |grep ucp| awk '{ print $6 }') = 'online' ]; then
- echo "voip,service="ucp",status="online" triger=1i"
- else
- echo "voip,service="ucp",status="offline" triger=0i"
- fi
- [[inputs.exec]]
- # ## Commands array
- commands = [
- "/usr/lib/telegraf/scripts/monitor-voip.sh"
- ]
- timeout = "5s"
- data_format = "influx"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement