Network UPS Tools (NUT)
Moderators: Developers, Moderators
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)
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
(big gap due to me screwing up poller for a while) - cacti_nut.png (81.53 KiB) Viewed 45595 times
- Cacti Nut
-
- Posts: 28
- Joined: Fri Jan 14, 2005 7:10 pm
- Contact:
Only got Battery Charge
I did the import and only got "Battery Charge"....
Can you try exporting again as separate files?
Thanks,
Dave
Can you try exporting again as separate files?
Thanks,
Dave
-
- Posts: 28
- Joined: Fri Jan 14, 2005 7:10 pm
- Contact:
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.
- Attachments
-
- cacti_nut_0.1.b.tar.gz
- (3.92 KiB) Downloaded 2486 times
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
Can someone help me ?
Thks
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?
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?
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...
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...
-
- Posts: 2
- Joined: Tue Jun 19, 2007 3:43 pm
-
- Posts: 9
- Joined: Thu Oct 19, 2006 7:59 pm
- Location: Weed, Siskiyou County, CA, USA
- Contact:
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.
Thanks.
-
- Posts: 9
- Joined: Tue Aug 28, 2007 11:01 am
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?>
I tried to download this script but it seems it does not exist anymore on the server.
can somebody please upload it again?>
-
- Posts: 9
- Joined: Tue Aug 28, 2007 11:01 am
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?
ps. if someone likes to take a look, i can give full access to it without a problem, it's a empty machine.
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?
ps. if someone likes to take a look, i can give full access to it without a problem, it's a empty machine.
Who is online
Users browsing this forum: No registered users and 1 guest