SAN and NAS

EMC Unity

Description:

### check_unity.py ###

This is a Nagios monitoring script for DELL EMC Unity storage box.

[root@]# ./check_unity2.py -H myunitybox.foo.com -u monituser -p monitpass -m
usage: check_unity2.py [-h] -H HOSTADDRESS -u USER -p PASSWORD -m
{battery,dae,disk,dpe,ethernetport,fan,fcport,iomodule,lcc,memorymodule,powersupply,sasport,ssc,ssd,storageprocessor,system,uncommittedport}
check_unity2.py: error: argument -m/–module is required

[root@]# ./check_unity2.py -H myunitybox.foo.com -u monituser -p monitpass -m system
OK: ALRT_SYSTEM_OK,The system is operating normally.,5

########### This is outdated, please check: https://github.com/thecodeteam/nagios-unity

Current Version

0.3

Last Release Date

2018-02-22

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x

Owner


Nagios CSP

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!
Project Notes
Reviews (2) Add a Review
Pefrect plugin for Dell EMC
by avikarry, January 31, 2020
This plugin perfect for Dell EMC storge and working fine with RHEL 6. But I am getting below error for RHEL 7. Please help


# ./check_unity.py
Traceback (most recent call last):
File "./check_unity.py", line 18, in
import json, requests
ImportError: No module named requests
0 of 1 found this review helpful.
Helpful? Yes  No 1
JSON error
by sistem.ekibi, May 31, 2019
Hello,

When we run your script we get an error below:

/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:845: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
Traceback (most recent call last):
File "./check_unity.py", line 569, in
main()
File "./check_unity.py", line 522, in main
value, descid, desc = getBattery(hostaddress, token, cookie)
File "./check_unity.py", line 107, in getBattery
j = json.loads(r.text)
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Could you please help?

Python version:2.7.13-2
Python Requests version:2.12.4-1
Owner's Reply:

Hello,
Its working on python-26, as monitoring system that is integrated with is kind of old...
You should check how to ignore SSL warnings, I currently have no access to a box to test it.

Here there are some refactoring for new python: https://github.com/rverchere/nagios/tree/master/dellemc-unity_storage

Tks


1 of 2 found this review helpful.
Helpful? Yes 1 No 1
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
3.7 (3)
Favorites
1
Views
13,151