Nagios UPS management project

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ermerzws
Posts: 4
Joined: Wed Jul 31, 2013 9:38 am

Nagios UPS management project

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios UPS management project

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ermerzws
Posts: 4
Joined: Wed Jul 31, 2013 9:38 am

Re: Nagios UPS management project

Post by ermerzws »

scottwilkerson wrote: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

What OS would work best for that? I am currently using Ubuntu on a physical server in our test environment.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios UPS management project

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ermerzws
Posts: 4
Joined: Wed Jul 31, 2013 9:38 am

Re: Nagios UPS management project

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios UPS management project

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ermerzws
Posts: 4
Joined: Wed Jul 31, 2013 9:38 am

Re: Nagios UPS management project

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios UPS management project

Post by abrist »

Lets try it old school.

Code: Select all

ifconfig eth0 up
dhclient eth0
EDIT: if dhclient doesn't work, but the interface comes up, you may be using dhcpcd:

Code: Select all

dhcpcd eth0
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked