UNSOLVED

riahc3

updated

4 years ago

R

riahc3

1 Rookie

•

74 Posts

0

10970

July 27th, 2018 06:00

Error when running dellemc_device_check.py

While debugging why checks dont work, Im getting this error message

Traceback (most recent call last):
File "/usr/local/nagios/libexec/dellemc_device_check.py", line 225, in
temp = componentname.split(',')
AttributeError: 'NoneType' object has no attribute 'split'

 

This is on a PowerEdge R730. WSMAN is being used. 

 

The line:

 

[root@myhostname]# python /usr/local/nagios/libexec/dellemc_device_check.py --host=192.168.1.90 --devicetype=iDRAC --logPath=/usr/local/nagiosxi/html/includes/configwizards/Dell_EMC_OM_NagiosXI_monitoring_wizard/log --protocol=2 --http.user=someloginonlyuser --http.password=somepass--http.port=443 --http.timeout=30 --http.retries=1

 

That spits out the error I mentioned.

 

Why?

  • dlangesh

    18 Posts

    9493

    0

    Posted July 30th, 2018 06:00

    Hi Riahc,

    Thanks to reach out to us.

    --componentname is missing in below command, following are the component name supported with serviceName.

    Multiple component name can be provided with ',' separated

    Service name

    componentname

    Dell EMC Server Overall Health Status

    Subsystem

    Dell EMC Server Information

    System,iDRAC

    Dell EMC Server Warranty Information

    warranty

    Dell EMC Server Physical Disk Status

    PhysicalDisk

    Dell EMC Server Voltage Probe Status

    Sensors_Voltage

    Dell EMC Server Intrusion Status

    Sensors_Intrusion

    Dell EMC Server Network Device Status

    NIC

    Dell EMC Server Virtual Disk Status

    VirtualDisk

    Dell EMC Server Power Supply Status

    PowerSupply

    Dell EMC Server Amperage Probe Status

    Sensors_Amperage

    Dell EMC Server Controller Status

    Controller

    Dell EMC Server Fan Status

    Sensors_Fan

    Dell EMC Server Memory Status

    Memory

    Dell EMC Server Battery Status

    Sensors_Battery

    Dell EMC Server CPU Status

    CPU

    Dell EMC Server Temperature Probe Status

    Sensors_Temperature

    Dell EMC Server FC NIC Status

    FC

    Dell EMC Server SD Card Status

    Vflash


    Thanks

    Langesh D

  • riahc3

    1 Rookie

    •

    74 Posts

    9481

    0

    Posted July 30th, 2018 08:00

    Passing Subsystem gives me this:

     


    Traceback (most recent call last):
    File "dellemc_device_check.py", line 256, in
    call()
    File "dellemc_device_check.py", line 241, in call
    primaryStatusOnly,tempDict).visit(componentname).formatter.mystring
    NameError: global name 'tempDict' is not defined

     

     

     

  • dlangesh

    18 Posts

    9443

    0

    Posted August 1st, 2018 06:00

    Riahc,

    We are not able to repo the issue locally.

    Here is the sample command and output:

    python /usr/local/nagios/dell/scripts/dellemc_device_check.py --host=x.x.x.y --componentname=Subsystem --devicetype=iDRAC --logPath=/var/log/ --protocol=2 --http.user=username --http.password=password --http.port=443 --http.timeout=30 --http.retries=1
    Overall System = Critical
    Power Supply = Critical
    Voltage = OK
    Storage = OK
    Amperage = OK
    Fan = OK
    Intrusion = OK
    Memory = OK
    Battery = OK
    CPU = OK
    Temperature = OK

    Like to understand more about your configuration. Please share us following information to debug

    Nagios version

    Python version

    OS details

    Dell OMSDK version ( how to get it? run "pip show omsdk" & "pip show omdriver" )

    Are you seeing the issue specify to componentname 'Subsystem' or any componentname?

    Thanks

    Langesh D

     

  • riahc3

    1 Rookie

    •

    74 Posts

    9407

    0

    Posted August 12th, 2018 23:00

    While you would like more information on my running configuration, I would like more information on the script itself.

     

    usage: dellemc_device_check.py [-h] [--host HOST] [--devicetype DEVICETYPE]
                                   [--protocol PROTOCOL]
                                   [--componentname COMPONENTNAME]
                                   [--monitorfilter MONITORFILTER]
                                   [--primaryStatusOnly {0,1}]
                                   [--setservicestatus {0,1,2,3}]
                                   [--logPath LOGPATH]
                                   [--warranty.criticalDays USERCRITICALDAYS]
                                   [--warranty.warningDays USERWARNINGDAYS]
                                   [--excludeinstance EXCLUDEINSTANCE]
                                   [--readFile PROTOINFO] [--s SERVICENAME]
                                   [--snmp.version SNVERSION]
                                   [--snmp.community COMSTRING]
                                   [--snmp.port SNMPPORT] [--snmp.retries SNMPRET]
                                   [--snmp.timeout SNMPTOUT]
                                   [--http.user HTTPUSER]
                                   [--http.password HTTPPASSWORD]
                                   [--http.timeout HTTPTIMEOUT]
                                   [--http.retries HTTPRET] [--http.port HTTPPORT]
                                   [--nagios.type NAGIOSTYPE]

     

    Explain all these parameters and their possible values and what they do.

  • 9338

    0

    Posted August 22nd, 2018 23:00

    Please refer product User Guide [https://topics-cdn.dell.com/pdf/openmanage-plugin-nagios-core-v30_users-guide_en-us.pdf] section 5. Where its mentioned that for user should use ‘dellemc_nagios_discovery_service_utility.py’ utility for discovery Dell EMC devices. And all the help for command line options are describe there. 

    All other files are internal to the Dell EMC solution, and we don’t expose any of the command line options for those files [e.g. : dellemc_device_check.py].

    Do let us know the use-case you are looking so that we can help you better.

  • Soha_17

    5 Posts

    9285

    0

    Posted August 27th, 2018 11:00

    Hi Dell Team,

    Even i am getting the same error for Dell EMC Chassis.

    File "/usr/local/nagios/libexec/dellemc_device_check.py", line 227, in
    temp = componentname.split(',')
    AttributeError: 'NoneType' object has no attribute 'split'

     

    How can we use the component name for Chassis and Server as well at same time.

    I am checking the service check from nagios gui.

  • 9237

    0

    Posted August 29th, 2018 02:00

    Please provide more detail, are you running ‘dellemc_device_check.py’ separately from command line or this error you got while doing after using Dell Device Discovery using ‘dellemc_nagios_discovery_service_utility.py’ script?

    This will help us analysis the issue properly.

  • Soha_17

    5 Posts

    9132

    0

    Posted September 5th, 2018 13:00

    Even after running it through command line, its throwing the same error.

    Traceback (most recent call last):
    File "/usr/local/nagios/libexec/dellemc_device_check.py", line 227, in
    temp = componentname.split(',')
    AttributeError: 'NoneType' object has no attribute 'split'

    Can I get all the component name for DELL EMC Chassis.

     

    Please advise.

  • 9119

    0

    Posted September 5th, 2018 22:00

    You no need run ‘dellemc_device_check.py’ file manually from command line.

    Please refer product User Guide [https://topics-cdn.dell.com/pdf/openmanage-plugin-nagios-core-v30_users-guide_en-us.pdf] section 5.

    Where its mentioned that user should use ‘dellemc_nagios_discovery_service_utility.py’ utility for discovery Dell EMC devices. And all the help for command line options are describe there.

    All other files/scripts are internal to the Dell EMC solution, and we don’t expose any of the command line options for those files [e.g. : dellemc_device_check.py].

     Please perform above steps and if you face still an issue, please share latest logs available under location [default: NAGIOS_HOME>/var/dell] . We will analyze and get back accordingly.

  • Soha_17

    5 Posts

    3934

    0

    Posted September 6th, 2018 05:00

    Hi Ankit,

    Thanks for your reply.

    Our vrtx server monitoring problem will be resolved if we can get the components names for Chassis.

    We use service and hosts templates for monitoring as a standard.

    Discover works fine. But we have noticed that every time the nagiosxi application server reboots the plugin stops working.

    Will be very much helpful if we can be provided with all the component names for the Chassis.

     

    Thanks!