#!/bin/bash

echo $(uptime) $(hostname) | awk '{printf("BOUNDARY_CPU_LOAD_1_MINUTE %s %s\nBOUNDARY_CPU_LOAD_5_MINUTE %s %s\nBOUNDARY_CPU_LOAD_15_MINUTE %s %s\n",$8,$11,$9,$11,$10,$11)}'

#!/bin/bash

echo "$(uptime):$(hostname)" | cut -f 4,5 -d ':' | tr ':' ' ' | awk '{printf("BOUNDARY_CPU_LOAD_1_MINUTE %s %s\nBOUNDARY_CPU_LOAD_5_MINUTE %s %s\nBOUNDARY_CPU_LOAD_15_MINUTE %s %s\n",$1,$4,$2,$4,$3,$4)}'

Modify to work on Mac OS X and Centos/RedHat
Modify to work on Mac OS X and Centos/RedHat
