TED5000 kWh & Cost Per Hour

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Post Reply
Author
Message
jacobwall
Posts: 3
Joined: Thu May 23, 2013 10:40 pm

TED5000 kWh & Cost Per Hour

#1 Post by jacobwall » Thu May 23, 2013 10:50 pm

Hello,

Here's my first contribution thanks to the help of Ed Manteuffel.

Image
Image

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"}'
2) Go to Collection Methods -> Data Input Methods -> and match the following, adjusting the path as needed.
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
4) Go to Collection Methods -> Add and match the following:
Image

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
Attachments
cacti_data_template_ted_5000.xml
Data Template
(6.1 KiB) Downloaded 197 times
cacti_host_template_ted_5000.xml
Host Template
(11.68 KiB) Downloaded 206 times

User avatar
Linegod
Developer
Posts: 1630
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: TED5000 kWh & Cost Per Hour

#2 Post by Linegod » Sat May 25, 2013 9:42 pm

Please post these to the Template site: http://docs.cacti.net/templates.guidelines
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca

Juggler
Posts: 5
Joined: Sun Aug 11, 2013 7:28 pm

Re: TED5000 kWh & Cost Per Hour

#3 Post by Juggler » Sun Mar 02, 2014 5:37 pm

When I try to import these templates, I get a hash error. Is this just me?

jacobwall
Posts: 3
Joined: Thu May 23, 2013 10:40 pm

Re: TED5000 kWh & Cost Per Hour

#4 Post by jacobwall » Sun Mar 02, 2014 6:00 pm

Juggler wrote:When I try to import these templates, I get a hash error. Is this just me?
Hello,

What version of Cacti are you running? I built it using version 0.8.8a.

- Jacob

Juggler
Posts: 5
Joined: Sun Aug 11, 2013 7:28 pm

Re: TED5000 kWh & Cost Per Hour

#5 Post by Juggler » Sun Mar 02, 2014 8:35 pm

Ah... I'm running Ubuntu 12.04 and it pulled down Cacti version 0.8.7i. I didn't realize that would make a difference.

I've posted here: http://forums.cacti.net/viewtopic.php?f=21&t=52055

I also followed his instructions, but cannot get it Cacti to work. I've confirmed the script is working. Any chance you have an insights?

many thanks,
J.

Gellar
Posts: 1
Joined: Tue Mar 22, 2016 1:45 pm

Re: TED5000 kWh & Cost Per Hour

#6 Post by Gellar » Wed Mar 23, 2016 10:23 am

jacobwall wrote:
Juggler wrote:When I try to import these templates, I get a hash error. Is this just me?
Hello,

What version of Cacti are you running? I built it using version 0.8.8a.

- Jacob
Nice templates, will these work on the latest 0.8.8g?

Post Reply