Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Fri Apr 18, 2014 8:08 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Network UPS Tools (NUT)
PostPosted: Sat Oct 08, 2005 10:47 pm 
Offline

Joined: Tue Jun 22, 2004 8:53 pm
Posts: 3
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:
File comment: Cacti Nut
(big gap due to me screwing up poller for a while)

cacti_nut.png
cacti_nut.png [ 81.53 KiB | Viewed 35127 times ]
Top
 Profile  
 
 Post subject: Only got Battery Charge
PostPosted: Fri Nov 11, 2005 1:20 pm 
Offline

Joined: Fri Jan 14, 2005 7:10 pm
Posts: 28
I did the import and only got "Battery Charge"....

Can you try exporting again as separate files?

Thanks,
Dave


Top
 Profile  
 
 Post subject: Updated Template
PostPosted: Fri Nov 11, 2005 1:51 pm 
Offline

Joined: Fri Jan 14, 2005 7:10 pm
Posts: 28
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 1958 times
Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 24, 2005 4:42 am 
Offline

Joined: Wed Nov 09, 2005 9:28 am
Posts: 6
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 24, 2005 6:55 am 
Offline

Joined: Wed Nov 09, 2005 9:28 am
Posts: 6
ok I change some things on the script and the new error is :

Error: Connection failure: Connection refused

:-?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 02, 2005 7:17 am 
Offline

Joined: Wed Nov 09, 2005 9:28 am
Posts: 6
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 28, 2006 1:41 pm 
Offline

Joined: Thu Jun 30, 2005 11:19 am
Posts: 4
Location: Russian Federation
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?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 29, 2006 3:37 pm 
Offline

Joined: Thu Jun 30, 2005 11:19 am
Posts: 4
Location: Russian Federation
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... ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 19, 2007 3:45 pm 
Offline

Joined: Tue Jun 19, 2007 3:43 pm
Posts: 2
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.


Top
 Profile  
 
 Post subject: Multiple UPSs - How to Identify on Graph
PostPosted: Tue Jul 24, 2007 6:06 pm 
Offline

Joined: Thu Oct 19, 2006 7:59 pm
Posts: 9
Location: Weed, Siskiyou County, CA, USA
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.


Top
 Profile  
 
 Post subject: Can't download.
PostPosted: Tue Sep 04, 2007 7:55 am 
Offline

Joined: Tue Aug 28, 2007 11:01 am
Posts: 9
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?>


Top
 Profile  
 
 Post subject: poll interval
PostPosted: Tue Dec 18, 2007 10:01 pm 
Offline

Joined: Tue Aug 28, 2007 11:01 am
Posts: 9
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.


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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