osm_mem_status 434 B

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