#!/usr/local/bin/bash # CPU_LOAD.SH # # This shell takes the avarege 15 minutes CPU usage from # the FreeBSD server. # # ----------------------------------------------------- # Explanation of the below URL address (see the source) # ----------------------------------------------------- # http://data.hovmon.com/ ? cid=2b2db53c198f7c1b57cd6763b9ba4db5f5e0325f & val=$cpu_load # # Syntax: # cid = 40 characters unique counter ID (eg. "2b2db53c198f7c1b57cd6763b9ba4db5f5e0325f") # val = data value (integer or floating point) # cpu_load=`/usr/bin/top -n | /usr/bin/head -n 1 | /usr/bin/awk '{print $8}' | /usr/bin/sed '/,/s///'` /usr/local/bin/curl http://data.hovmon.com/?cid=2b2db53c198f7c1b57cd6763b9ba4db5f5e0325f\&val=$cpu_load