Nagios Plugin for PDU Power Consumption
Nagios Plugin for PDU Power Consumption
All,
Is there a widely accepted or well recommended plugin for Nagios Core to monitor PDU (ping?) and power consumption? Would the brand of the PDU matter? I think we have APC units in these cabinets.
I've searched and found a few, but I was curious if anyone highly recommends a specific one and has seen success with one.
Thank you.
Is there a widely accepted or well recommended plugin for Nagios Core to monitor PDU (ping?) and power consumption? Would the brand of the PDU matter? I think we have APC units in these cabinets.
I've searched and found a few, but I was curious if anyone highly recommends a specific one and has seen success with one.
Thank you.
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios Plugin for PDU Power Consumption
We can see if any other users chime in, though this plugin is quite highly rated:
http://exchange.nagios.org/directory/Pl ... sh/details
Are you looking to monitor a brand other than APC as well?
They will also likely all encompass using SNMP to monitor.
http://exchange.nagios.org/directory/Pl ... sh/details
Are you looking to monitor a brand other than APC as well?
They will also likely all encompass using SNMP to monitor.
Re: Nagios Plugin for PDU Power Consumption
This is great. I will try it as soon as I can. Thank you!
For now, we are only concerned with APC. How would I install this? I see it is just a script. Do I place it in any specific directory and recompile the plugins?
Thanks again!
For now, we are only concerned with APC. How would I install this? I see it is just a script. Do I place it in any specific directory and recompile the plugins?
Thanks again!
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios Plugin for PDU Power Consumption
The plugin would be added to the following directory assuming you are running core on centos/rhel:
No re-compile is needed to add new, already compiled plugins as most are just scripts.
Then, you would need to create a command definition for this plugin, and create a host for the IP address, and a service to use the plugin's command definition. Then of course you will need the SNMP version, community string, and to define the warning and critical thresholds. As far as creating a host/service/command definition this can all be found in the following document:
http://nagios.sourceforge.net/docs/3_0/ ... tions.html
The indexed links at the top should take you to the proper places.
Code: Select all
/usr/local/nagios/libexec/
Then, you would need to create a command definition for this plugin, and create a host for the IP address, and a service to use the plugin's command definition. Then of course you will need the SNMP version, community string, and to define the warning and critical thresholds. As far as creating a host/service/command definition this can all be found in the following document:
http://nagios.sourceforge.net/docs/3_0/ ... tions.html
The indexed links at the top should take you to the proper places.
Re: Nagios Plugin for PDU Power Consumption
Great, thanks! I will give this a try.
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios Plugin for PDU Power Consumption
Great, let us know how it all works out for you!
Re: Nagios Plugin for PDU Power Consumption
Out of curiosity, do you have something similar to this for non-APC PDUs? This thing is awesome but we may need something for non-specific PDUs.
Thanks again for this great script!
Thanks again for this great script!
Re: Nagios Plugin for PDU Power Consumption
I seem to be having an issue when implementing it into my cfg. When manually running it I get the following:
[root@vmnagios libexec]# ./check_apc_pdu_load -H 10.8.8.226 -w 35 -c 80
WARNING: 4.70 Amps of load PDU, please check.
Now on the Nagios GUI:
Current Status: OK (for 0d 0h 16m 40s)
Status Information: check_apc_pdu_load v1.0.0.1 (nagios-plugins 1.4.16)
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
\nNagios Plugin to check PDU APC Load
\nUsage: check_apc_pdu_load [-H hostname] [-c communauty] [-w warning] [-c critical]
-H Hostname
-C Communauty
-w (optional) warning threshold
-c (optional) critical threshold
\n
It seems to not be taking my values. Below is how my config is set up:
define service{
use generic-service
host_name pdu1-ca
service_description PDU LOAD
check_command check_apc_pdu_load!33%!80%!
notification_interval 24x7
contact_groups admins
}
and then in the commands.cfg I have the following defined:
define command{
command_name check_apc_pdu_load
command_line $USER1$/check_apc_pdu_load -H $HOSTADDRESS$ -c $ARG1$ -w $ARG2$
}
I've tried a few things but no luck to get this to report correctly in the GUI.
Thanks again.
[root@vmnagios libexec]# ./check_apc_pdu_load -H 10.8.8.226 -w 35 -c 80
WARNING: 4.70 Amps of load PDU, please check.
Now on the Nagios GUI:
Current Status: OK (for 0d 0h 16m 40s)
Status Information: check_apc_pdu_load v1.0.0.1 (nagios-plugins 1.4.16)
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
\nNagios Plugin to check PDU APC Load
\nUsage: check_apc_pdu_load [-H hostname] [-c communauty] [-w warning] [-c critical]
-H Hostname
-C Communauty
-w (optional) warning threshold
-c (optional) critical threshold
\n
It seems to not be taking my values. Below is how my config is set up:
define service{
use generic-service
host_name pdu1-ca
service_description PDU LOAD
check_command check_apc_pdu_load!33%!80%!
notification_interval 24x7
contact_groups admins
}
and then in the commands.cfg I have the following defined:
define command{
command_name check_apc_pdu_load
command_line $USER1$/check_apc_pdu_load -H $HOSTADDRESS$ -c $ARG1$ -w $ARG2$
}
I've tried a few things but no luck to get this to report correctly in the GUI.
Thanks again.
Re: Nagios Plugin for PDU Power Consumption
try the command without the percentages:
Code: Select all
check_command check_apc_pdu_load!33!80!
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 Plugin for PDU Power Consumption
Awesome, thank you! That worked. The only issue that it seems to be having is the GUI still reports the status as 'OK':
Host Service Status Last Check Duration Attempt Status Information
OK 05-17-2013 15:28:37 0d 0h 1m 43s 1/3 WARNING: 4.70 Amps of load PDU, please check.
As a result it will not send any alerting emails. Did I miss something?
Thank you again.
Host Service Status Last Check Duration Attempt Status Information
OK 05-17-2013 15:28:37 0d 0h 1m 43s 1/3 WARNING: 4.70 Amps of load PDU, please check.
As a result it will not send any alerting emails. Did I miss something?
Thank you again.