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'
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
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?
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.
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.
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?
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.
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.
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