Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Perl script to monitor EATON UPS (Ex MGE-OPS) via Network Management Card 66102 or Network Management Proxy. Check temperature and humidity if the Environment Sensor 66846 is connected to NMC 66102.
Current Version
1.3.5
Last Release Date
2013-04-18
Owner
Montanard
License
GPL
Compatible With
Screenshot
./check_snmp_mgeeaton_ups.pl --help for more information
THANKS TO : Mohand, for making the script compatible with versions earlier than perl 5.8.4
Example of commands :
define command { command_name check_mge_ups_information command_line /usr/lib/nagios/plugins/check_snmp_mgeeaton_ups.pl -H '$HOSTADDRESS$' -C public -O information }
define command { command_name check_mge_ups_battery_remaining_time command_line /usr/lib/nagios/plugins/check_snmp_mgeeaton_ups.pl -H '$HOSTADDRESS$' -C public -O battery_remaining_time }
define command { command_name check_mge_ups_battery_level command_line /usr/lib/nagios/plugins/check_snmp_mgeeaton_ups.pl -H '$HOSTADDRESS$' -C public -O battery_level }
define command { command_name check_mge_ups_battery_fault command_line /usr/lib/nagios/plugins/check_snmp_mgeeaton_ups.pl -H '$HOSTADDRESS$' -C public -O battery_fault }
define command { command_name check_mge_ups_battery_replacement command_line /usr/lib/nagios/plugins/check_snmp_mgeeaton_ups.pl -H '$HOSTADDRESS$' -C public -O battery_replacement }
define command { command_name check_mge_ups_battery_voltage command_line /usr/lib/nagios/plugins/check_snmp_mgeeaton_ups.pl -H '$HOSTADDRESS$' -C public -O battery_voltage }
define command { command_name check_mge_ups_battery_low_battery command_line /usr/lib/nagios/plugins/check_snmp_mgeeaton_ups.pl -H '$HOSTADDRESS$' -C public -O battery_low_battery }
define command { command_name check_mge_ups_battery_charger_fault command_line /usr/lib/nagios/plugins/check_snmp_mgeeaton_ups.pl -H '$HOSTADDRESS$' -C public -O battery_charger_fault }
Example of services :
define service{ use generic-service hostgroup_name UPS service_description MGE Information check_command check_mge_ups_information }
define service{ use generic-service hostgroup_name UPS service_description MGE Battery Remaining Time check_command check_mge_ups_battery_remaining_time }
define service{ use generic-service hostgroup_name UPS service_description MGE Battery Level check_command check_mge_ups_battery_level }
define service{ use generic-service hostgroup_name UPS service_description MGE Battery Fault check_command check_mge_ups_battery_fault }
define service{ use generic-service hostgroup_name UPS service_description MGE Battery Replacement check_command check_mge_ups_battery_replacement }
seems working, for convenience I use this instead : define command { command_name check_mge_ups command_line $USER1$/check_snmp_mgeeaton_ups.pl -H $HOSTADDRESS$ -C public -O $ARG1$ } less commands statement, and my hosts looks like define service{ use generic-service host_name xxx service_description battery_remaining_time check_command check_mge_ups!battery_remaining_time }
Excellent work, work with EATON EX3000
Thanks a lot, it works nice with COmet EX 7RT
I use this pluggin witch an Eaton SPX 3000 and an ole MGE Evolution S3000. It work fine with this two models.
perl -c check_snmp_mgeeaton_ups.pl String found where operator expected at check_snmp_mgeeaton_ups.pl line 320, near "case "information"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 321, near "case "va_rating"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 322, near "case "battery_remaining_time"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 323, near "case "battery_level"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 324, near "case "battery_replacement"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 325, near "case "battery_fault"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 326, near "case "battery_voltage"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 327, near "case "battery_low_battery"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 328, near "case "battery_charger_fault"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 329, near "case "battery_low_condition"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 330, near "case "input_voltage"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 331, near "case "input_frequency"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 332, near "case "input_line_fail_cause"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 333, near "case "input_bad_status"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 334, near "case "output_load"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 335, near "case "output_voltage"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 336, near "case "output_frequency"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 337, near "case "output_on_battery"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 338, near "case "output_on_by_pass"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 339, near "case "output_over_load"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 340, near "case "output_over_temp"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 341, near "case "output_utility_off"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 342, near "case "output_inverter_off"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 343, near "case "ambient_temperature"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 344, near "case "ambient_humidity"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 345, near "case "agent_firmware_version"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 346, near "case "agent_mib_version"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 1108, near "case "1"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 1109, near "case "2"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 1110, near "case "3"" (Do you need to predeclare case?) String found where operator expected at check_snmp_mgeeaton_ups.pl line 1111, near "case "4"" (Do you need to predeclare case?) syntax error at check_snmp_mgeeaton_ups.pl line 319, near ") {" syntax error at check_snmp_mgeeaton_ups.pl line 321, near "case "va_rating"" syntax error at check_snmp_mgeeaton_ups.pl line 347, near "; }" syntax error at check_snmp_mgeeaton_ups.pl line 351, near "; }" syntax error at check_snmp_mgeeaton_ups.pl line 379, near "}" syntax error at check_snmp_mgeeaton_ups.pl line 1107, near ") {" syntax error at check_snmp_mgeeaton_ups.pl line 1109, near "case "2"" syntax error at check_snmp_mgeeaton_ups.pl line 1109, near "; }" syntax error at check_snmp_mgeeaton_ups.pl line 1110, near "; }" syntax error at check_snmp_mgeeaton_ups.pl line 1111, near "; }" check_snmp_mgeeaton_ups.pl has too many errors.
You must be logged in to submit a review.
To:
From: