Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ $(fwconsole pm2 --list |grep ucp| awk '{ print $6 }') = 'online' ]; then
  4. echo "voip,service="ucp",status="online" triger=1i"
  5. else
  6. echo "voip,service="ucp",status="offline" triger=0i"
  7. fi
  8.  
  9. [[inputs.exec]]
  10. # ## Commands array
  11. commands = [
  12. "/usr/lib/telegraf/scripts/monitor-voip.sh"
  13. ]
  14. timeout = "5s"
  15. data_format = "influx"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement