Here's my first contribution thanks to the help of Ed Manteuffel.
Host Template - http://jacobwall.com/cacti/TED5000/cact ... d_5000.xml (Also attached below)
Data Template - http://jacobwall.com/cacti/TED5000/cact ... d_5000.xml (Also attached below)
Graph Template (kWh) - http://jacobwall.com/cacti/TED5000/cact ... 00_kwh.xml
Graph Template (Cost/hr) - http://jacobwall.com/cacti/TED5000/cact ... 0_cost.xml
How To:
1) Add script as shown below, chown and chgrp appropriately.
Code: Select all
#!/bin/sh
curl -sm 1 http://$1/history/minutehistory.csv?MTU=$2 | grep -m 1 / | awk -F "," '{print "POWER:"$3" COST:"$4" VOLTAGE:"$5"\r\n"}'
3) Go to Management -> Graph Management -> GPRINT Presets -> and add the following:
Code: Select all
Name: 2 decimals
GPRINT Text: %8.2lf
Name: 3 decimals
GPRINT Text: %8.3lf
If a moderator could attach the two graph templates I would appreciate it. The forum things that it's a possible attack vector so it will not upload.
Hope this helps y'all,
Jacob Wall