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    


Network UPS Tools (NUT)

 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
artoo



Joined: 22 Jun 2004
Posts: 3

PostPosted: Sat Oct 08, 2005 10:47 pm    Post subject: Network UPS Tools (NUT) Reply with quote

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)



cacti_nut.png
 Description:
Cacti Nut
(big gap due to me screwing up poller for a while)
 Filesize:  81.53 KB
 Viewed:  19354 Time(s)

cacti_nut.png


Back to top
superdave913



Joined: 14 Jan 2005
Posts: 28

PostPosted: Fri Nov 11, 2005 1:20 pm    Post subject: Only got Battery Charge Reply with quote

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

Can you try exporting again as separate files?

Thanks,
Dave
Back to top
superdave913



Joined: 14 Jan 2005
Posts: 28

PostPosted: Fri Nov 11, 2005 1:51 pm    Post subject: Updated Template Reply with quote

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.


cacti_nut_0.1.b.tar.gz
 Description:

Download
 Filename:  cacti_nut_0.1.b.tar.gz
 Filesize:  3.92 KB
 Downloaded:  1088 Time(s)

Back to top
remy74



Joined: 09 Nov 2005
Posts: 6

PostPosted: Thu Nov 24, 2005 4:42 am    Post subject: Reply with quote

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.
Back to top
remy74



Joined: 09 Nov 2005
Posts: 6

PostPosted: Thu Nov 24, 2005 6:55 am    Post subject: Reply with quote

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

Error: Connection failure: Connection refused

Back to top
remy74



Joined: 09 Nov 2005
Posts: 6

PostPosted: Fri Dec 02, 2005 7:17 am    Post subject: Reply with quote

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
Back to top
Danil



Joined: 30 Jun 2005
Posts: 4
Location: Russian Federation

PostPosted: Thu Sep 28, 2006 1:41 pm    Post subject: Reply with quote

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?
Back to top
Danil



Joined: 30 Jun 2005
Posts: 4
Location: Russian Federation

PostPosted: Wed Nov 29, 2006 3:37 pm    Post subject: Reply with quote

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...
Back to top
ScooBySnaCk



Joined: 19 Jun 2007
Posts: 2

PostPosted: Tue Jun 19, 2007 3:45 pm    Post subject: Reply with quote

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.
Back to top
justinchudgar



Joined: 19 Oct 2006
Posts: 9
Location: Weed, Siskiyou County, CA, USA

PostPosted: Tue Jul 24, 2007 6:06 pm    Post subject: Multiple UPSs - How to Identify on Graph Reply with quote

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.
Back to top
tropicalview



Joined: 28 Aug 2007
Posts: 8

PostPosted: Tue Sep 04, 2007 7:55 am    Post subject: Can't download. Reply with quote

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?>
Back to top
tropicalview



Joined: 28 Aug 2007
Posts: 8

PostPosted: Tue Dec 18, 2007 10:01 pm    Post subject: poll interval Reply with quote

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?
[img]http://tropicalview.net/30seconds.bmp[/img]


ps. if someone likes to take a look, i can give full access to it without a problem, it's a empty machine.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group