#!/usr/local/bin/bash # CPU_TEMPERATURE.SH # # This shell takes the CPU temperature on the HovKlan server and inserts it into the HovMon database # # ----------------------------------------------------- # Explanation of the below URL address (see the source) # ----------------------------------------------------- # http://data.hovmon.com/ ? cid=3f923d24551942ce973d98d1e36eab7368c68ea8 & val=$cpu_temperature # # Syntax: # cid = 40 characters unique counter ID (eg. "3f923d24551942ce973d98d1e36eab7368c68ea8") # val = data value (integer or floating point) # cpu_temperature=`/usr/local/bin/mbmon -T 2 -c 1` /usr/local/bin/curl http://data.hovmon.com/?cid=3f923d24551942ce973d98d1e36eab7368c68ea8\&val=$cpu_temperature