Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check Liebert NXR-UPS (30kVA)
1.0
2014-06-08
- Nagios 3.x
- Nagios 4.x
- Nagios XI
GPL
27096
File | Description |
---|---|
Liebert_NXR_UPS.py | Liebert_NXR_UPS.py |
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!
I only active alert and perf data on UPS Battery temperature, Output load, System status. If anyone need more alert and more perf data, feel free to edit the script and adjust features, have guide inside.
-------------------------------------------------
Options:
-h, --help show this help message and exit
-H HOST, --host=HOST hostname or IP address
-c COMMUNITY SNMP community
-t TYPE, --type=TYPE BATTERY VOLTAGE, BATTERY CURRENT, BATTERY STATUS,
SYSTEM STATUS, INPUT, OUTPUT
-m MODULE, --module=MODULE
module to check
-a RANGE, --range=RANGE
normal range, when something out of scope alert will
be raised. Ex: -a 0,80
I saw many ask about what is the module?
- On LiebertUPS module mean the UPS electronic part installed on it. So by default this UPS included with 1 module then use this command:
./Liebert_NXR_UPS.py -H xxx -c zzz -t yyy -m 1
-------------------------------------------------
Options:
-h, --help show this help message and exit
-H HOST, --host=HOST hostname or IP address
-c COMMUNITY SNMP community
-t TYPE, --type=TYPE BATTERY VOLTAGE, BATTERY CURRENT, BATTERY STATUS,
SYSTEM STATUS, INPUT, OUTPUT
-m MODULE, --module=MODULE
module to check
-a RANGE, --range=RANGE
normal range, when something out of scope alert will
be raised. Ex: -a 0,80
I saw many ask about what is the module?
- On LiebertUPS module mean the UPS electronic part installed on it. So by default this UPS included with 1 module then use this command:
./Liebert_NXR_UPS.py -H xxx -c zzz -t yyy -m 1
Reviews (2)
byKeska, September 5, 2019
Hi,
I have Liebert NXC 20KVA and I want monitor this UPS by nagios.
I tried this command:
./Liebert_NXR_UPS.py -H 192.168.11.109 -c v1 -m 1 -t 'BATTERY CURRENT'
and i have answer:
ERROR - Timeout: No Response from 192.168.11.109.
I enabled SNMP v1 on UPS
can you tell me what I doing wrong?
I have Liebert NXC 20KVA and I want monitor this UPS by nagios.
I tried this command:
./Liebert_NXR_UPS.py -H 192.168.11.109 -c v1 -m 1 -t 'BATTERY CURRENT'
and i have answer:
ERROR - Timeout: No Response from 192.168.11.109.
I enabled SNMP v1 on UPS
can you tell me what I doing wrong?
bymark8adams, November 22, 2016
0 of 1 people found this review helpful
I don't have enough information to know whether this works or not. I only get a couple of error messages when I run the plugin:
You must specify module number
or
Not supported check TYPE
or
Traceback (most recent call last):
File "./check_Liebert_NXR_UPS.py", line 200, in
PARSER(opts.host, opts.community, opts.module, opts.type, opts.range).main()
File "./check_Liebert_NXR_UPS.py", line 170, in main
base_oid = self.count_enemy()
File "./check_Liebert_NXR_UPS.py", line 121, in count_enemy
blood, tmp = self.first_blood(oid)
File "./check_Liebert_NXR_UPS.py", line 76, in first_blood
raw_data.append(float(tmp[i])) # Save raw data
ValueError: invalid literal for float(): No Such Object available on this agent at this O.ID
...
It seems the plugin is looking in the wrong place for data,
self.module_base_oid = '.1.3.6.1.4.1.13400.2.19.2.
versus
.1.3.6.1.4.1.476.1.42.2.
Can you point me in the right direction?
Thanks,
Mark
You must specify module number
or
Not supported check TYPE
or
Traceback (most recent call last):
File "./check_Liebert_NXR_UPS.py", line 200, in
PARSER(opts.host, opts.community, opts.module, opts.type, opts.range).main()
File "./check_Liebert_NXR_UPS.py", line 170, in main
base_oid = self.count_enemy()
File "./check_Liebert_NXR_UPS.py", line 121, in count_enemy
blood, tmp = self.first_blood(oid)
File "./check_Liebert_NXR_UPS.py", line 76, in first_blood
raw_data.append(float(tmp[i])) # Save raw data
ValueError: invalid literal for float(): No Such Object available on this agent at this O.ID
...
It seems the plugin is looking in the wrong place for data,
self.module_base_oid = '.1.3.6.1.4.1.13400.2.19.2.
versus
.1.3.6.1.4.1.476.1.42.2.
Can you point me in the right direction?
Thanks,
Mark
Owner's reply
Hi, the module is mean for a battery installed on your UPS. This model has many module slots so you must specify the module slot for it to check in example module "1".
And beware this script is written only for this model only. You can not use it with other model of Liebert UPS they have very different SNMP structure