Why Is This So Hard?How do I Monitor a UPS? (check_apcupsd)
Why Is This So Hard?How do I Monitor a UPS? (check_apcupsd)
Hello,
Can someone tell me if I am on the right track here. I just need to monitor an APC UPS. I am running a trial of Nagios XI 5.2.3.
I am starting from scratch. Here is what I did:
-Added the host to CCM. For the check_command so I am using "check-host-alive". Is there a better option?
-Now I need to attach a service to it. I would like to use check_apcupsd. Tried to configure the service and associate it to the host that I added above. Kinda lost on what to use for arguments. I am assuming each physical status that I want to monitor (i.e. temperature, voltage, battery load, etc.) will need to be defined as a separate service associated with the host. How do I define these services? What do I use for arguments?
Any help will be greatly appreciated. If my approach to this is flawed, please let me know.
Thanks,
Can someone tell me if I am on the right track here. I just need to monitor an APC UPS. I am running a trial of Nagios XI 5.2.3.
I am starting from scratch. Here is what I did:
-Added the host to CCM. For the check_command so I am using "check-host-alive". Is there a better option?
-Now I need to attach a service to it. I would like to use check_apcupsd. Tried to configure the service and associate it to the host that I added above. Kinda lost on what to use for arguments. I am assuming each physical status that I want to monitor (i.e. temperature, voltage, battery load, etc.) will need to be defined as a separate service associated with the host. How do I define these services? What do I use for arguments?
Any help will be greatly appreciated. If my approach to this is flawed, please let me know.
Thanks,
You do not have the required permissions to view the files attached to this post.
Re: Why Is This So Hard?How do I Monitor a UPS? (check_apcup
I believe you will need to use one more argument in your command in order to pass "bcharge", "itemp", "loadpct" or "timeleft". See the plugin's usage below:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Make sure your check works from the command line first. Next, modify your command, your service, and test your check from the Nagios XI web UI. Let us know if you get stuck on something.
I would recommend following the steps, outlined in the document below:[root@localhost libexec]# ./check_apcupsd.sh
usage: check_apcupsd [-c critical_value] [-h hostname] [-p port]
[-w warning_value] <bcharge|itemp|loadpct|timeleft>
hostname and port defaults to localhost and 3551, respectively.
checks:
bcharge = battery charge, measured in percent.
itemp = internal temperature, measured in degree Celcius.
loadpct = load percent, measured in percent (do'h!).
timeleft = time left with current battery charge and load,
measured in minutes.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Make sure your check works from the command line first. Next, modify your command, your service, and test your check from the Nagios XI web UI. Let us know if you get stuck on something.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Why Is This So Hard?How do I Monitor a UPS? (check_apcup
Thank you very much for the link and the answer. That helps.
Now when I try from the command line, I get the following error message:
"Error: /sbin/apcaccess must exist and be executable!"
Indeed, apcaccess is not in the /sbin/ directory. Now I am scouring the internet trying to find instructions on how to install apcaccess. Any ideas?
Now when I try from the command line, I get the following error message:
"Error: /sbin/apcaccess must exist and be executable!"
Indeed, apcaccess is not in the /sbin/ directory. Now I am scouring the internet trying to find instructions on how to install apcaccess. Any ideas?
Re: Why Is This So Hard?How do I Monitor a UPS? (check_apcup
Try running -
Code: Select all
yum install apcupsd -y
Former Nagios Employee
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Why Is This So Hard?How do I Monitor a UPS? (check_apcup
Is this a UPS connected to your XI server, or a remote one on the network?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Why Is This So Hard?How do I Monitor a UPS? (check_apcup
I will try that here in a bitrkennedy wrote:Try running -
[ccode]
yum install apcupsd -y
[/code]
Re: Why Is This So Hard?How do I Monitor a UPS? (check_apcup
On the network. Nagios XI can see it and ping it and it is currently a monitored host in XI.Box293 wrote:Is this a UPS connected to your XI server, or a remote one on the network?
Re: Why Is This So Hard?How do I Monitor a UPS? (check_apcup
Thanks for that info, let us know the outcome of running 'yum install apcupsd -y' whenever you have a chance.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Re: Why Is This So Hard?How do I Monitor a UPS? (check_apcup
First you will need to make sure this works from the command line. Have you tried something like this?
I am not sure what port needs to be used, but you can run nmap against the device to see which ports are open.
Run the following command and show the output:
Code: Select all
/usr/local/nagios/libexec/check_apcupsd.sh -h <device IP address> -w <warning threshold> -c <critical threshold> -p <port number> bchargeCode: Select all
nmap <device IP address>Code: Select all
ll -d /usr/sbin/apcaccessBe sure to check out our Knowledgebase for helpful articles and solutions!
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Why Is This So Hard?How do I Monitor a UPS? (check_apcup
I'm pretty sure the plugin you're trying is for locally connected UPS that is running an APC agent, this is not the most common method.Moneer81 wrote:On the network. Nagios XI can see it and ping it and it is currently a monitored host in XI.Box293 wrote:Is this a UPS connected to your XI server, or a remote one on the network?
Have a look at this plugin instead:
https://exchange.nagios.org/directory/P ... ps/details
It connects to the UPS via SNMP, so you'll need to configure SNMP on the UPS management interface.
And even more basic is this list of SNMP checks:
https://exchange.nagios.org/directory/P ... ad/details
(ignore the command[xxxx]= bits at the start)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.