|
|
| Author |
Message |
artoo
Joined: 22 Jun 2004 Posts: 3
|
Posted: Sat Oct 08, 2005 10:47 pm Post subject: Network UPS Tools (NUT) |
|
|
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)
| Description: |
Cacti Nut
(big gap due to me screwing up poller for a while) |
|
| Filesize: |
81.53 KB |
| Viewed: |
26386 Time(s) |

|
|
|
| Back to top |
|
 |
superdave913
Joined: 14 Jan 2005 Posts: 28
|
Posted: Fri Nov 11, 2005 1:20 pm Post subject: Only got Battery Charge |
|
|
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
|
Posted: Fri Nov 11, 2005 1:51 pm Post subject: Updated Template |
|
|
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.
| Description: |
|
 Download |
| Filename: |
cacti_nut_0.1.b.tar.gz |
| Filesize: |
3.92 KB |
| Downloaded: |
1448 Time(s) |
|
|
| Back to top |
|
 |
remy74
Joined: 09 Nov 2005 Posts: 6
|
Posted: Thu Nov 24, 2005 4:42 am Post subject: |
|
|
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
|
Posted: Thu Nov 24, 2005 6:55 am Post subject: |
|
|
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
|
Posted: Fri Dec 02, 2005 7:17 am Post subject: |
|
|
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
|
Posted: Thu Sep 28, 2006 1:41 pm Post subject: |
|
|
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
|
Posted: Wed Nov 29, 2006 3:37 pm Post subject: |
|
|
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
|
Posted: Tue Jun 19, 2007 3:45 pm Post subject: |
|
|
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
|
Posted: Tue Jul 24, 2007 6:06 pm Post subject: Multiple UPSs - How to Identify on Graph |
|
|
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: 9
|
Posted: Tue Sep 04, 2007 7:55 am Post subject: Can't download. |
|
|
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: 9
|
Posted: Tue Dec 18, 2007 10:01 pm Post subject: poll interval |
|
|
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 |
|
 |
|