Page 1 of 1

how can solve problem due running emc unity check plugin

Posted: Mon Jan 20, 2020 12:23 am
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 ?

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

Posted: Mon Jan 20, 2020 7:34 am
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

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

Posted: Mon Jan 20, 2020 10:48 am
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


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

Posted: Mon Jan 20, 2020 11:00 am
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

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

Posted: Tue Jan 21, 2020 5:19 am
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 ?

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

Posted: Tue Jan 21, 2020 12:40 pm
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.