Page 1 of 1
Nagios UPS management project
Posted: Wed Jul 31, 2013 9:44 am
by ermerzws
Hi, I am currently an intern at a college and have been tasked with a UPS monitoring project.
What I need to do; monitor a handful of UPS's remotely via a web interface that will display information like battery life, status, temp etc. Nagios seems like a perfect candidate to do this, and the apcupsd plug-in seems perfect. My problem is how do I bring the two together? I have very limited experience with Linux distros in general. To my understanding you need to edit the Nagios config file, but I'm not sure what to do with it. Any help would be greatly appreciated, thank you.
Re: Nagios UPS management project
Posted: Wed Jul 31, 2013 10:04 am
by scottwilkerson
Easiest thing would be to install one of our Nagios XI VM's
http://www.nagios.com/downloadxi/
Then follow this guide to add the plugin
http://library.nagios.com/library/produ ... -nagios-xi
Re: Nagios UPS management project
Posted: Wed Jul 31, 2013 10:48 am
by ermerzws
What OS would work best for that? I am currently using Ubuntu on a physical server in our test environment.
Re: Nagios UPS management project
Posted: Wed Jul 31, 2013 11:03 am
by abrist
Our VM appliances only run CentOS, though you can run the vm on any machine/OS that runs VMWare player or Virtualbox. If you wish to continue to configure Nagios core, you will have some reading ahead of you:
http://nagios.sourceforge.net/docs/nagi ... n/toc.html
Re: Nagios UPS management project
Posted: Wed Jul 31, 2013 12:25 pm
by ermerzws
abrist wrote:Our VM appliances only run CentOS, though you can run the vm on any machine/OS that runs VMWare player or Virtualbox. If you wish to continue to configure Nagios core, you will have some reading ahead of you:
http://nagios.sourceforge.net/docs/nagi ... n/toc.html
I got Vmware Player up and running and it's giving me "guest operating system 'centos' is not supported." I'm using Windows 7 32-bit Enterprise.
Re: Nagios UPS management project
Posted: Wed Jul 31, 2013 12:44 pm
by abrist
Can you set it as redhat or fedora? (centos, fedora and redhat are all really close)
Make sure you downloaded the 32bit version of the vm.
Re: Nagios UPS management project
Posted: Wed Jul 31, 2013 1:23 pm
by ermerzws
abrist wrote:Can you set it as redhat or fedora? (centos, fedora and redhat are all really close)
Make sure you downloaded the 32bit version of the vm.
I downloaded a different version of VMplayer and got it working. Next question, in order to access the web interface nagiosxi needs an IP address, but DHCP is not giving it one. I tried giving it a static IP, following the video tutorials, but nothing seems to be working. I go into the system-config-network-tui, set eth0 to dhcp, save and exit then run the ifdown eth0 command, followed by the ifup eth0 command. It sits on ifup eth0 command for a minute then it says it failed. Any thoughts on this?
Re: Nagios UPS management project
Posted: Wed Jul 31, 2013 4:25 pm
by abrist
Lets try it old school.
EDIT: if dhclient doesn't work, but the interface comes up, you may be using dhcpcd: