Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Feb 23, 2019 12:05 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: TED5000 kWh & Cost Per Hour
PostPosted: Thu May 23, 2013 10:50 pm 
Offline

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

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

Image
Image

Host Template - http://jacobwall.com/cacti/TED5000/cacti_host_template_ted_5000.xml (Also attached below)
Data Template - http://jacobwall.com/cacti/TED5000/cacti_data_template_ted_5000.xml (Also attached below)
Graph Template (kWh) - http://jacobwall.com/cacti/TED5000/cacti_graph_template_ted_5000_kwh.xml
Graph Template (Cost/hr) - http://jacobwall.com/cacti/TED5000/cacti_graph_template_ted_5000_cost.xml

How To:

1) Add script as shown below, chown and chgrp appropriately.
Code:
#!/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:
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:
File comment: Data Template
cacti_data_template_ted_5000.xml [6.1 KiB]
Downloaded 185 times
File comment: Host Template
cacti_host_template_ted_5000.xml [11.68 KiB]
Downloaded 195 times
Top
 Profile  
 
 Post subject: Re: TED5000 kWh & Cost Per Hour
PostPosted: Sat May 25, 2013 9:42 pm 
Offline
Developer
User avatar

Joined: Thu Feb 20, 2003 10:16 am
Posts: 1630
Location: Canada
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


Top
 Profile  
 
 Post subject: Re: TED5000 kWh & Cost Per Hour
PostPosted: Sun Mar 02, 2014 5:37 pm 
Offline

Joined: Sun Aug 11, 2013 7:28 pm
Posts: 5
When I try to import these templates, I get a hash error. Is this just me?


Top
 Profile  
 
 Post subject: Re: TED5000 kWh & Cost Per Hour
PostPosted: Sun Mar 02, 2014 6:00 pm 
Offline

Joined: Thu May 23, 2013 10:40 pm
Posts: 3
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


Top
 Profile  
 
 Post subject: Re: TED5000 kWh & Cost Per Hour
PostPosted: Sun Mar 02, 2014 8:35 pm 
Offline

Joined: Sun Aug 11, 2013 7:28 pm
Posts: 5
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.


Top
 Profile  
 
 Post subject: Re: TED5000 kWh & Cost Per Hour
PostPosted: Wed Mar 23, 2016 10:23 am 
Offline

Joined: Tue Mar 22, 2016 1:45 pm
Posts: 1
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group