Start a Conversation

Unsolved

This post is more than 5 years old

R

10793

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?

18 Posts

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

74 Posts

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

 

 

 

18 Posts

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

 

74 Posts

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.

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.

5 Posts

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.

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.

5 Posts

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.

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.

5 Posts

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!

September 6th, 2018 05:00

Hi,

Please find Dell EMC Chassis component name which we use as command line argument

=======

System
Subsystem
PowerSupply
Fan
IOModule
KVM
Enclosure
Controller
PhysicalDisk
VirtualDisk
PCIDevice
ComputeModule
StorageModule

=======

Please do let us know in case you face any further issue.

 

 

5 Posts

September 6th, 2018 07:00

Hi Ankit,

Can you please provide the component name for warranty on chassis.

 

Thanks a lot for your prompt help.

September 6th, 2018 21:00

Hello,

Warranty service have same component name across all the devices which is - 'warranty'.

Please do let us know in case you still face any issue which using Dell EMC Nagios Core/XI plugin.

Regards,

Ankit Bansal

 

 

September 7th, 2018 23:00

Hi,

Find below component name for all devices.

Server:

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

 

Chassis:

Service name componentname
Dell EMC Chassis Overall Health Status Subsystem
Dell EMC Chassis Information System
Dell EMC Chassis Warranty Information warranty
Dell EMC Chassis I/O Module Status IOModule
Dell EMC Chassis Server Slot Information ComputeModule
Dell EMC Chassis KVM Status KVM
Dell EMC Chassis Power Supply Status PowerSupply
Dell EMC Chassis Storage Slot Information StorageModule
Dell EMC Chassis Fan Status Fan
Dell EMC Chassis PCIe Devices Status PCIDevice
Dell EMC Chassis Physical Disk Status PhysicalDisk
Dell EMC Chassis Virtual Disk Status VirtualDisk
Dell EMC Chassis Controller Status Controller
Dell EMC Chassis Enclosure Status Enclosure

 

MD Storage:

Service name componentname
Dell EMC Storage MD-Series Overall Health Status System
Dell EMC Storage MD-Series Information System
Dell EMC Storage MD-Series Warranty Information warranty

 

EqualLogic Storage:

Service name componentname
Dell EMC Storage PS-Series Group Information System
Dell EMC Storage PS-Series Group Volume Status Volume
Dell EMC Storage PS-Series Group Storage Pool Information  StoragePool
Dell EMC Storage PS-Series Member Overall Health Status Member
Dell EMC Storage PS-Series Member Information Member
Dell EMC Storage PS-Series Member Warranty Information warranty
Dell EMC Storage PS-Series Member Physical Disk Status PhysicalDisk

 

Compellent Storage:

Service name componentname
Dell EMC Storage SC-Series Overall Health Status System
Dell EMC Storage SC-Series Information System
Dell EMC Storage SC-Series Volume Status Volume
Dell EMC Storage SC-Series Physical Disk Status Disk
Dell EMC Storage SC-Series Controller Information Controller
Dell EMC Storage SC-Series Controller Overall Health Status Controller
Dell EMC Storage SC-Series Controller Warranty Information warranty

 

Switches:

Service name componentname
Dell EMC Network Switch Information System
Dell EMC Network Switch Overall Health Status System
Dell EMC Network Switch Warranty Information warranty
Dell EMC Network Switch vFlash Status Flash
Dell EMC Network Switch PowerSupply Status PowerSupply
Dell EMC Network Switch Physical Port Status Port
Dell EMC Network Switch Fan Status Fan
Dell EMC Network Switch PowerSupplyTray Status PowerSupplyTray
Dell EMC Network Switch FanTray Status FanTray
Dell EMC Network Switch Processor Status Processor

 

Thanks & Regards,

Rajshekar P

5 Posts

November 11th, 2022 07:00

Any one can help to determine why 4 services have status UNKNOWN?

donvito7_0-1668181496730.png

 

No Events found!

Top