how can solve problem due running emc unity check plugin

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
baber
Posts: 308
Joined: Wed Oct 21, 2015 4:39 am

how can solve problem due running emc unity check plugin

Post by baber »

Dear all
Hi

I am using this plugin
https://exchange.nagios.org/directory/P ... ty/details

for check on my EMC Unity but while run show follow error

Code: Select all

[root@nagios libexec]# ./check_unity.py
Traceback (most recent call last):
  File "./check_unity.py", line 18, in <module>
    import json, requests
ImportError: No module named requests

also my python version is :
python-2.6.6-68.el6_10.x86_64

how can solve this issue ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: how can solve problem due running emc unity check plugin

Post by scottwilkerson »

It appears you are missing the python package requests

If this is a CentOS/RHEL system you can likely run the following as root

Code: Select all

yum install python-requests -y
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
baber
Posts: 308
Joined: Wed Oct 21, 2015 4:39 am

Re: how can solve problem due running emc unity check plugin

Post by baber »

scottwilkerson wrote:It appears you are missing the python package requests

If this is a CentOS/RHEL system you can likely run the following as root

Code: Select all

yum install python-requests -y

Thanks
previous issue solved this is my output

Code: Select all

[root@nagios libexec]# ./check_unity.py
usage: check_unity.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_unity.py: error: argument -H/--hostaddress is required

but while run with ip,user,pass show follow output what is the problem ?

Code: Select all

[root@nagios libexec]# ./check_unity.py -H https://172.10.10.10 -u admin -p password -m system
-bash: !@#: event not found

scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: how can solve problem due running emc unity check plugin

Post by scottwilkerson »

I'm not familiar with this plugin but from the page here it looks like you are passing the host wrong (remove https://)
https://github.com/rverchere/nagios/tre ... ty_storage

try

Code: Select all

./check_unity.py -H 172.10.10.10 -u admin -p password -m system
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
baber
Posts: 308
Joined: Wed Oct 21, 2015 4:39 am

Re: how can solve problem due running emc unity check plugin

Post by baber »

scottwilkerson wrote:I'm not familiar with this plugin but from the page here it looks like you are passing the host wrong (remove https://)
https://github.com/rverchere/nagios/tre ... ty_storage

try

Code: Select all

./check_unity.py -H 172.10.10.10 -u admin -p password -m system
So thanks As I understand that plugin has bugs and not work correctly thus i am using other one but due to installation this is my output

https://github.com/thecodeteam/nagios-unity

Code: Select all

[root@nagios tmp]# nagios-unity --help
Traceback (most recent call last):
  File "/usr/bin/nagios-unity", line 5, in <module>
    from pkg_resources import load_entry_point
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2880, in <module>

  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 434, in _build_master
    dist = self.by_key.get(req.key)
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 447, in _build_from_requirements
    for dist in self:
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 632, in resolve
    return distributions, error_info
pkg_resources.VersionConflict: requests 2.6.0 is installed but requests>=2.8.1,!=2.9.0,!=2.20.0 is required by ['storops']



how can solve this issue ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: how can solve problem due running emc unity check plugin

Post by scottwilkerson »

It looks like this new plugin you have found requires a very specific version of the perl module requests of 2.6.0

I would reach out to the plugin develops, this is beyond the scope of Nagios support as we are not the creators of these plugins.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked