Network UPS Tools (NUT)

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
artoo
Posts: 3
Joined: Tue Jun 22, 2004 8:53 pm

Network UPS Tools (NUT)

Post by artoo »

I've written a small script, along with created all the required templates for doing some NUT monitoring. It's completely indifferent to the actual type of UPS you have, and requires having NUT installed to do the heavy lifting of the actual data collection.

The tarball contains an xml file to import and a script to put in your standard cacti script location.

The xml file was made by concatenating 5 seperate exports. I think they caught everything (and infact there's a fair bit of duplication I didn't feel like getting rid of). Hopefully cacti can import it properly and it's all there.

Once it's imported, just add each graph one at a time, and set the UPS location in the standard (NUT) name@host fashion.

If there's any problems with importing or using, be sure to let me know, and I'll look into it.

Tar available at: http://dev.gentoo.org/~r2d2/cacti_nut-0.1.tbz2
(md5: 0bf796be3645185a100ab8f4d3db1cad)
Attachments
Cacti Nut
<br />(big gap due to me screwing up poller for a while)
Cacti Nut
(big gap due to me screwing up poller for a while)
cacti_nut.png (81.53 KiB) Viewed 45601 times
superdave913
Posts: 28
Joined: Fri Jan 14, 2005 7:10 pm
Contact:

Only got Battery Charge

Post by superdave913 »

I did the import and only got "Battery Charge"....

Can you try exporting again as separate files?

Thanks,
Dave
superdave913
Posts: 28
Joined: Fri Jan 14, 2005 7:10 pm
Contact:

Updated Template

Post by superdave913 »

I split up the XML file in the original post... imported them into Cacti... and then exported them out. Please view the attached file... and follow directions in the original post.
Attachments
cacti_nut_0.1.b.tar.gz
(3.92 KiB) Downloaded 2487 times
remy74
Posts: 6
Joined: Wed Nov 09, 2005 9:28 am

Post by remy74 »

Does any body use this with APC ? .. All failed for me.. :-?
When I try to run this on command line :

[: xcharge: unexpected operator
[: xcharge: unexpected operator
[: xcharge: unexpected operator
[: xcharge: unexpected operator
[: xcharge: unexpected operator

so... Any idea ??

Thanks.
remy74
Posts: 6
Joined: Wed Nov 09, 2005 9:28 am

Post by remy74 »

ok I change some things on the script and the new error is :

Error: Connection failure: Connection refused

:-?
remy74
Posts: 6
Joined: Wed Nov 09, 2005 9:28 am

Post by remy74 »

I have found MIB for Apc (and more) on this site http://www.assure24.com/databases/snmp-mib/ but now, I don't what I have to do for retrieve more information about my ups (APC).
Can someone help me ?

Thks
Danil
Posts: 4
Joined: Thu Jun 30, 2005 11:19 am
Location: Russian Federation

Post by Danil »

I got it working in FreeBSD, but there is a problem I cannot solve...
It doesn't show Input Voltage. I've tried everything I could. I compared the Input Voltage xml with some other working (from the same package) - it's alright there: only parameters and hashes change..
But for the voltage I get only nan's.
I checked out that cacti user gets all the data from the script: as for the voltage, it recieves something like 230.4, but it doesn't even insert it to the rrd!

If only I knew the internals of Cacti well enough..
All other graphs work good and do show what they have to show.

Has anybody had such a problem?


Or, another question, what template do people (successfully) use with Nut?
Danil
Posts: 4
Joined: Thu Jun 30, 2005 11:19 am
Location: Russian Federation

Post by Danil »

Well, fortunately, I solved my problem today. I'm extremely happy :-)

The point is that I live in Russian Federation, and I have 220-230V, but the author of the script made the maximum value of 150 in RRD!..
(so I couldn't just figure out why there were NaN's in RRD while the script works quite well..)
I just changed the maximum value in an existing rrd file with the help of `rrdtool tune` (smth like `rrdtool tune <rrdfile> --maximum statistic:U`).

But if you just install it for the very first time, you can just modify the xml file: change <rrd_maximum> to the value you need (or just U).
Also check out <upper_limit> right there - this is the maximum value for the graph itself. It also should be modified.


That is all because I started reading docs about RRD while working on quite different thing. And then I remembered about the voltage... ;-)
ScooBySnaCk
Posts: 2
Joined: Tue Jun 19, 2007 3:43 pm

Post by ScooBySnaCk »

Does not seem to be working for MGE UPS
MGE UPS Systems - EX 11 RT to be exact. I get network traffic but thats about it.
justinchudgar
Posts: 9
Joined: Thu Oct 19, 2006 7:59 pm
Location: Weed, Siskiyou County, CA, USA
Contact:

Multiple UPSs - How to Identify on Graph

Post by justinchudgar »

I've got one server monitoring 4 UPSs with NUT. I want to know how to add the UPS name to the graph template. I do not know how to reference the name that is by the ups.sh script.

Thanks.
tropicalview
Posts: 9
Joined: Tue Aug 28, 2007 11:01 am

Can't download.

Post by tropicalview »

Hi All,

I tried to download this script but it seems it does not exist anymore on the server.


can somebody please upload it again?>
tropicalview
Posts: 9
Joined: Tue Aug 28, 2007 11:01 am

poll interval

Post by tropicalview »

Hi,

I successfully installed this script twise now.
on one installation i changed the poller to every 30 seconds.

But the data for this graph is only collected 1 time in the 5 minutes (don't know about other scripts. this is the only one on this server)


Does anybody know what i have to change to get this a nice 30 seconds interval graph?
Image


ps. if someone likes to take a look, i can give full access to it without a problem, it's a empty machine.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests