osm_timeout_status 452 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. if [[ "$1" = "config" ]]; then
  3. {
  4. echo 'graph_title Dispatcher granted runtime'
  5. echo 'graph_vlabel seconds'
  6. echo "osm_timeout_status.label osm_timeout"
  7. echo "osm_timeout_status.warning 120000"
  8. echo "osm_timeout_status.critical 200000"
  9. exit 0
  10. }; fi
  11. GRANTED=`/opt/osm-3s/v0.7.54/bin/dispatcher --osm-base --status | grep -E "^Average claimed time units:" | awk '{ print $5; }'`
  12. echo "osm_timeout_status.value $GRANTED"