Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


UPS Smart APC templates

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
timi
Cacti User


Joined: 09 Nov 2005
Posts: 124
Location: Timisoara, Romania

PostPosted: Wed Sep 06, 2006 9:20 am    Post subject: UPS Smart APC templates Reply with quote

here the graphs for APC Smart ups...


volt.PNG
 Description:
 Filesize:  13.66 KB
 Viewed:  19351 Time(s)

volt.PNG



load.PNG
 Description:
 Filesize:  12.47 KB
 Viewed:  19351 Time(s)

load.PNG



freq.PNG
 Description:
 Filesize:  14.5 KB
 Viewed:  19351 Time(s)

freq.PNG



batttemp.PNG
 Description:
 Filesize:  11.81 KB
 Viewed:  19351 Time(s)

batttemp.PNG



ampers.PNG
 Description:
 Filesize:  12.38 KB
 Viewed:  19351 Time(s)

ampers.PNG




Last edited by timi on Wed Sep 06, 2006 10:12 am; edited 1 time in total
Back to top
timi
Cacti User


Joined: 09 Nov 2005
Posts: 124
Location: Timisoara, Romania

PostPosted: Wed Sep 06, 2006 9:20 am    Post subject: Reply with quote

the templates...


UPS APC.rar
 Description:

Download
 Filename:  UPS APC.rar
 Filesize:  23.68 KB
 Downloaded:  3626 Time(s)

Back to top
VMartins



Joined: 10 Nov 2006
Posts: 3

PostPosted: Fri Nov 10, 2006 9:33 am    Post subject: Reply with quote

What I have to do before install this template?

A have a APC Smart. Do I need to install the APC UPSD in my Linux? How I have to setup my apcupsd conf?

Thanks,

Vinicius
Back to top
hommer



Joined: 10 Nov 2006
Posts: 1

PostPosted: Fri Nov 10, 2006 10:05 am    Post subject: Reply with quote

I made my own version of voltage monitoring using the APC ups. We're experiencing quite low voltages during the day as you can see....


graph_image.png
 Description:
The white spaces were me messing around with the script.
 Filesize:  51.91 KB
 Viewed:  18285 Time(s)

graph_image.png



cacti_ups_voltage_monitor.zip
 Description:
The php goes in the scripts/ dir, the xml can be imported

Download
 Filename:  cacti_ups_voltage_monitor.zip
 Filesize:  4.82 KB
 Downloaded:  1940 Time(s)

Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 634
Location: Psychic Amish Network Administrator

PostPosted: Fri Nov 10, 2006 11:04 am    Post subject: Reply with quote

I've also done some APC Stuff.

http://forums.cacti.net/viewtopic.php?t=16194&highlight=
Back to top
VMartins



Joined: 10 Nov 2006
Posts: 3

PostPosted: Fri Nov 10, 2006 11:27 am    Post subject: Reply with quote

streaker69 wrote:
I've also done some APC Stuff.

http://forums.cacti.net/viewtopic.php?t=16194&highlight=


streaker69,

This is for Windows. I used apcupsd for Linux, but what I have to do to monitor my APC with Cacti...

Thanks,

Vinicius
Back to top
quick_dead



Joined: 08 May 2007
Posts: 6

PostPosted: Thu May 17, 2007 2:06 am    Post subject: Reply with quote

Sorry but can you explain step by step what i have to do to get such great stuff...
I did in apcupsd.conf
DEVICE myhost:161:APC:private
the restart - OK
in .bash_profile
MIBS=+PowerNet-MIB
export MIBS
then relogin and restart snmpd

so when i type
snmptranslate -On PowerNet-MIB::ups
i see
.1.3.6.1.4.1.318.1.1.1
so it seems normal, but when i try to do next:
snmpget -v2c -c private localhost .1.3.6.1.4.1.318.1.1.1
I got such message
PowerNet-MIB::ups = No Such Object available on this agent at this OID

what's wrong???

PS: and believe i digged inet all across...
Back to top
tierpel



Joined: 19 Feb 2006
Posts: 7
Location: FR -- Sophia-antipolis - Valence

PostPosted: Tue Sep 25, 2007 8:19 am    Post subject: Reply with quote

works fine with
Smart-UPS 2200 and Network management Card

and Battery runtime
http://forums.cacti.net/viewtopic.php?p=61000&highlight=#61000

thx a lot !
Back to top
Ixne



Joined: 24 Oct 2007
Posts: 12

PostPosted: Fri Nov 16, 2007 9:20 am    Post subject: Reply with quote

hommer wrote:
I made my own version of voltage monitoring using the APC ups. We're experiencing quite low voltages during the day as you can see....


I've imported the templates and .php per your instructions, but the graph remains blank with "nan" information.

Debugging the graph returns this:

RRDTool Command:
c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="AH2 UPS1 MDF - Line voltages" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=200 \
--vertical-label="Vac" \
--slope-mode \
DEF:a="C\:/Inetpub/wwwroot/cacti/rra/ah2_ups1_mdf_max_voltage_1295.rrd":outp_voltage:AVERAGE \
DEF:b="C\:/Inetpub/wwwroot/cacti/rra/ah2_ups1_mdf_max_voltage_1295.rrd":line_voltage:AVERAGE \
DEF:c="C\:/Inetpub/wwwroot/cacti/rra/ah2_ups1_mdf_max_voltage_1295.rrd":max_voltage:AVERAGE \
DEF:d="C\:/Inetpub/wwwroot/cacti/rra/ah2_ups1_mdf_max_voltage_1295.rrd":min_voltage:AVERAGE \
AREA:a#00FF00:"Output voltage" \
GPRINT:a:LAST:" Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#35962B:"Line voltage" \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:c#6DC8FE:"Maximum voltage" \
GPRINT:c:LAST:"Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:d#FFF200:"Minimum voltage" \
GPRINT:d:LAST:"Current\:%8.2lf %s" \
GPRINT:d:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:d:MIN:"Minimum\:%8.2lf %s\n" \
HRULE:204#FFC73B:"Low transfer voltage" \
HRULE:252#FFC73B:"High transfer voltage"
RRDTool Says:
OK

Debug of Data Source:

Data Source Debug
c:/rrdtool/rrdtool.exe create \
C:/Inetpub/wwwroot/cacti/rra/ah2_ups1_mdf_max_voltage_1295.rrd \
--step 300 \
DS:line_voltage:GAUGE:600:0:260 \
DS:min_voltage:GAUGE:600:0:260 \
DS:outp_voltage:GAUGE:600:0:260 \
DS:max_voltage:GAUGE:600:0:260 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \


What am I doing wrong? Thanks...
Back to top
Ixne



Joined: 24 Oct 2007
Posts: 12

PostPosted: Fri Nov 16, 2007 2:47 pm    Post subject: Reply with quote

UPDATE:

OK, I built my own from scratch using the HowTo tutorials. I created an Aggregate 4 of Input Voltage, Output Load %, Temperature and Battery Remaining. The only weirdness I'm getting now is that the Temperature is being reported as 288k (!) which of course is causing that to be at the top and everything else hugging the X-axis.

I'm using OID .1.3.6.1.4.1.318.1.1.1.2.2.2.0. When I do an SNMPWALK of that OID, I get this:

c:\>snmpwalk -c community -v 1 10.1.1.2 .1.3.6.1.4.1.318.1.1.1.2.2.2.0
SNMPv2-SMI::enterprises.318.1.1.1.2.2.2.0 = Gauge32: 28

... so it looks like perhaps it's getting inflated by 10^3? I've gone over and over the Data Template, but I can't see where this is happening... arg!
Back to top
General_Dark



Joined: 25 Jul 2008
Posts: 6

PostPosted: Fri Jul 25, 2008 1:28 am    Post subject: Reply with quote

Hello.
First of all I want to thank everyone that contributed to cacti, it's an awesome program.

I'm quite new to cacti so I'm sorry if I'm asking noobish questions.
I downloaded the templates, however I couldnt find any quide on how to install them and get them working, did I download the wrong file?
I imported the templates into Cacti, but what do I do after that?
I've tried making a hosttemplate that uses the graph- and datatemplate but without luck so far.
Where can I find instructions on how to install the tempaltes to get them working?

I'm runnning the latest (0.4) of CactiEZ.

Thanks in advance,
General_Dark
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group