Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_ups_snmp 2
1.0
2014-04-09
- Nagios 3.x
- Nagios 4.x
GPL
42185
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
check_ups_snmp is a Nagios plugin to check by snmp a ups status with CS121 and other snmp card adapters.
With performance data
2013, Daniel Dueñas Domingo (mail:dduenasd@gmail.com)
Description:
check_ups_snmp is a Nagios plugin to check by snmp a ups status with CS121 and other snmp card adapters.
With performance data
Instalation:
requirements:
- Net-SNMP
This plugin is a linux script, to install, copy it into the path of nagios plugins
(usually in / usr / local / nagios / libexec ) and define a command in nagios command.cfg file.
Definition example in command.cfg nagios :
define command {
command_name check_ups_snmp
command_line $ USER1 $ / $ HOSTADDRESS check_ups_snmp.sh -H $ ARG1 $ -p -C $ ARG2 $ - w $ ARG3 $ - c $ ARG4 $
register 1
}
Once done , we must define a service for each parameter to be monitored in the service configuration file :
define service {
host_name UPS_1
service_description ups_alarm
use ups_template
check_command check_ups_snmp ! snmp ! ups_alarm 0, 0, ! -d / usr / local / nagios / libexec / mibs
register 1
}
For correct use of ups_alarm option, including mibs in the /mibs directory are needed , they are needed to
correctly interpret of the alarms that can give for snmp ups , in this case , as seen in the example of defining
service , copy mibs files on path '/usr/local/nagios/libexec/mibs' but could be anywhere else .
Pnp4nagios graphics templates are included, for install it, you must copy the file check_ups_snmp.php in '/share/templates'
in pnp4nagios home directory.
Use:
./check_ups_snmp.sh -H -p
Description:
check_ups_snmp is a Nagios plugin to check by snmp a ups status with CS121 and other snmp card adapters.
With performance data
Instalation:
requirements:
- Net-SNMP
This plugin is a linux script, to install, copy it into the path of nagios plugins
(usually in / usr / local / nagios / libexec ) and define a command in nagios command.cfg file.
Definition example in command.cfg nagios :
define command {
command_name check_ups_snmp
command_line $ USER1 $ / $ HOSTADDRESS check_ups_snmp.sh -H $ ARG1 $ -p -C $ ARG2 $ - w $ ARG3 $ - c $ ARG4 $
register 1
}
Once done , we must define a service for each parameter to be monitored in the service configuration file :
define service {
host_name UPS_1
service_description ups_alarm
use ups_template
check_command check_ups_snmp ! snmp ! ups_alarm 0, 0, ! -d / usr / local / nagios / libexec / mibs
register 1
}
For correct use of ups_alarm option, including mibs in the /mibs directory are needed , they are needed to
correctly interpret of the alarms that can give for snmp ups , in this case , as seen in the example of defining
service , copy mibs files on path '/usr/local/nagios/libexec/mibs' but could be anywhere else .
Pnp4nagios graphics templates are included, for install it, you must copy the file check_ups_snmp.php in '/share/templates'
in pnp4nagios home directory.
Use:
./check_ups_snmp.sh -H
Reviews (3)
byOliveira da Silva, March 5, 2018
Work very well!
byask, December 21, 2016
[root@xxxx libexec]# ./check_ups_snmp.sh -H xxxxx -C xxxxxx -p ups_alarm
CRITICAL - Such alarms present |'alarms'=Such
I am getting above error and I checked in ups but no alarms and I removed logs also but no use.
Can any one help me where i did mistake.
Thanks in advance.
CRITICAL - Such alarms present |'alarms'=Such
I am getting above error and I checked in ups but no alarms and I removed logs also but no use.
Can any one help me where i did mistake.
Thanks in advance.
bystephanhughson, February 24, 2015
Hi, This is great, thanks so much.
Works perfectly and gets loads of useful information.
Works perfectly and gets loads of useful information.