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.
Nagios UPS management project
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios UPS management project
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
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
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.
Re: Nagios UPS management project
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
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.
"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.
Re: Nagios UPS management project
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
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.
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.
"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.
Re: Nagios UPS management project
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 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.
Re: Nagios UPS management project
Lets try it old school.
EDIT: if dhclient doesn't work, but the interface comes up, you may be using dhcpcd:
Code: Select all
ifconfig eth0 up
dhclient eth0Code: Select all
dhcpcd eth0Former 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.
"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.