check_esxi_hardware.py just doesn't want to work

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

check_esxi_hardware.py just doesn't want to work

Postby majed » Tue Dec 05, 2017 6:00 am

Peace, unlike the command line, what i define in nagios produces:

(
Code: Select all
No output on stdout) stderr: Traceback (most recent call last):

here is the command definition:
Code: Select all
define command {
      command_name check_esxi
      command_line /usr/bin/python2.7 $USER1$/check_esxi_hardware.py -H $HOSTADDRESS$ -U $ARG1$ -P $ARG2$ -V $ARG3$
    }

service definition:
Code: Select all
define service {
            use                             generic-service
            hostgroup_name                    esxi-servers
            service_description             Esxi Hardware
            check_command                    check_esxi!/home/nagios/.esxipass!/home/nagios/.esxipass!ibm
    }

/home/nagios/.esxipass contains the following:
Code: Select all
user my7nj6&#

i had also to change the script header to
Code: Select all
#!/usr/bin/python2.7

so it to work on the command line.
what am I missing?
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
majed
 
Posts: 98
Joined: Mon Mar 17, 2014 5:29 am

Re: check_esxi_hardware.py just doesn't want to work

Postby cdienger » Tue Dec 05, 2017 4:02 pm

Try changing the check command to:

Code: Select all
check_command check_esxi!file:/home/nagios/.esxipass!file:/home/nagios/.esxipass!ibm


and the command line to:

Code: Select all
command_line $USER1$/check_esxi_hardware.py -H $HOSTADDRESS$ -U $ARG1$ -P $ARG2$ -V $ARG3$


Please run the command as such and provide the output if that doesn't work:

Code: Select all
./check_esxi_hardware.py -H host_ip_address -U user -P my7nj6&# -V ibm -v


(change host_ip_address to the correct esxi ip address)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
 
Posts: 1771
Joined: Tue Feb 07, 2017 11:26 am

Re: check_esxi_hardware.py just doesn't want to work

Postby majed » Wed Dec 06, 2017 1:16 am

that didn't resolve the problem as expected.
Code: Select all
./check_esxi_hardware.py -H 10.1.3.3 -U file:/home/nagios/.esxipass -P file:/home/nagios/.esxipass -V ibm -v
20171206 09:10:47 Connection to https://10.1.3.3
20171206 09:10:47 Found pywbem version 0.11.0
20171206 09:10:47 Check classe OMC_SMASHFirmwareIdentity
20171206 09:10:47   Element Name = System BIOS
20171206 09:10:47     VersionString = -[MLE175BUS-1.75]-
20171206 09:10:47 Check classe CIM_Chassis
20171206 09:10:48   Element Name = Chassis
20171206 09:10:48     Manufacturer = IBM
20171206 09:10:48     SerialNumber = 07B1814
20171206 09:10:48     Model = -[7147A2G]-
20171206 09:10:48     Element Op Status = 0
20171206 09:10:48 Check classe CIM_Card
20171206 09:10:48   Element Name = Processor/Memory Module
20171206 09:10:48     Element Op Status = 0
20171206 09:10:48   Element Name = I/O Module
20171206 09:10:48     Element Op Status = 0
20171206 09:10:48   Element Name = I/O Module
20171206 09:10:48     Element Op Status = 0
20171206 09:10:48   Element Name = Memory Module
20171206 09:10:48     Element Op Status = 0
20171206 09:10:48 Check classe CIM_ComputerSystem
20171206 09:10:48   Element Name = System Board 7:1
20171206 09:10:48     Element Op Status = 0
20171206 09:10:48   Element Name = Add-in Card 11:1
20171206 09:10:48     Element Op Status = 0
20171206 09:10:48   Element Name = Add-in Card 11:2
20171206 09:10:48     Element Op Status = 0
20171206 09:10:48   Element Name = Processor/IO Module 45:1
20171206 09:10:48     Element Op Status = 0
20171206 09:10:48   Element Name = esxi3.rup
20171206 09:10:48   Element Name = Hardware Management Controller (Node 0)
20171206 09:10:48     Element Op Status = 0
20171206 09:10:48   Element Name = Controller 500605B0044C9DF0 (ServeRAID M1015 SAS/SATA Controller)
20171206 09:10:48     Element Op Status = 2
20171206 09:10:48 Check classe CIM_NumericSensor
20171206 09:10:49   Element Name = Power Distribution 2 FG 2PS
20171206 09:10:49     sensorType = 4 - Current
20171206 09:10:49     BaseUnits = 65
20171206 09:10:49     Scaled by = 0.010000
20171206 09:10:49     Current Reading = 23.000000
20171206 09:10:49     Upper Threshold Non Critical = 50.000000
20171206 09:10:49     Upper Threshold Critical = 95.000000
20171206 09:10:49     Element Op Status = 2
20171206 09:10:49   Element Name = Power Distribution 0 Avg Power
20171206 09:10:49     sensorType = 4 - Current
20171206 09:10:49     BaseUnits = 7
20171206 09:10:49     Scaled by = 0.010000
20171206 09:10:49     Current Reading = 320.000000
20171206 09:10:49     Element Op Status = 2
20171206 09:10:49   Element Name = Front Panel Board 1 Altitude
20171206 09:10:49     sensorType = 1 - Other
20171206 09:10:49     BaseUnits = 28
20171206 09:10:49     Scaled by = 0.010000
20171206 09:10:49     Current Reading = 960.000000
20171206 09:10:49     Element Op Status = 2
20171206 09:10:49   Element Name = Front Panel Board 1 Ambient Temp
20171206 09:10:49     sensorType = 2 - Temperature
20171206 09:10:49     BaseUnits = 2
20171206 09:10:49     Scaled by = 0.010000
20171206 09:10:49     Current Reading = 19.000000
20171206 09:10:49     Upper Threshold Non Critical = 38.000000
20171206 09:10:49     Upper Threshold Critical = 41.000000
20171206 09:10:49     Element Op Status = 2
20171206 09:10:49   Element Name = Fan Device 5 Fan 5 Tach
20171206 09:10:49     sensorType = 5 - Tachometer
20171206 09:10:49     BaseUnits = 19
20171206 09:10:49     Scaled by = 0.010000
20171206 09:10:49     Current Reading = 5300.000000
20171206 09:10:49     Lower Threshold Critical = 500.000000
20171206 09:10:49     Element Op Status = 2
20171206 09:10:49   Element Name = Fan Device 4 Fan 4 Tach
20171206 09:10:49     sensorType = 5 - Tachometer
20171206 09:10:49     BaseUnits = 19
20171206 09:10:49     Scaled by = 0.010000
20171206 09:10:49     Current Reading = 5300.000000
20171206 09:10:49     Lower Threshold Critical = 500.000000
20171206 09:10:49     Element Op Status = 2
20171206 09:10:49   Element Name = Fan Device 3 Fan 3 Tach
20171206 09:10:49     sensorType = 5 - Tachometer
20171206 09:10:49     BaseUnits = 19
20171206 09:10:49     Scaled by = 0.010000
20171206 09:10:49     Current Reading = 5300.000000
20171206 09:10:49     Lower Threshold Critical = 500.000000
20171206 09:10:49     Element Op Status = 2
20171206 09:10:49   Element Name = Fan Device 2 Fan 2 Tach
20171206 09:10:49     sensorType = 5 - Tachometer
20171206 09:10:49     BaseUnits = 19
20171206 09:10:49     Scaled by = 0.010000
20171206 09:10:49     Current Reading = 6000.000000
20171206 09:10:49     Lower Threshold Critical = 500.000000
20171206 09:10:49     Element Op Status = 2
20171206 09:10:49   Element Name = Fan Device 1 Fan 1 Tach
20171206 09:10:49     sensorType = 5 - Tachometer
20171206 09:10:49     BaseUnits = 19
20171206 09:10:49     Scaled by = 0.010000
20171206 09:10:49     Current Reading = 6050.000000
20171206 09:10:49     Lower Threshold Critical = 500.000000
20171206 09:10:49     Element Op Status = 2
20171206 09:10:49   Element Name = Battery 1 CMOS VBAT
20171206 09:10:49     sensorType = 3 - Voltage
20171206 09:10:49     BaseUnits = 5
20171206 09:10:49     Scaled by = 0.010000
20171206 09:10:49     Current Reading = 3.070000
20171206 09:10:49     Lower Threshold Non Critical = 2.240000
20171206 09:10:49     Lower Threshold Critical = 2.090000
20171206 09:10:49     Element Op Status = 2
20171206 09:10:49   Element Name = System Board 1 Planar 12V
20171206 09:10:49     sensorType = 3 - Voltage
20171206 09:10:49     BaseUnits = 5
20171206 09:10:49     Scaled by = 0.010000
20171206 09:10:49     Current Reading = 11.880000
20171206 09:10:49     Lower Threshold Critical = 10.690000
20171206 09:10:49     Upper Threshold Critical = 13.440000
20171206 09:10:49     Element Op Status = 2
20171206 09:10:49   Element Name = System Board 1 Planar 5V
20171206 09:10:49     sensorType = 3 - Voltage
20171206 09:10:49     BaseUnits = 5
20171206 09:10:49     Scaled by = 0.010000
20171206 09:10:49     Current Reading = 4.900000
20171206 09:10:49     Lower Threshold Critical = 4.470000
20171206 09:10:49     Upper Threshold Critical = 5.580000
20171206 09:10:49     Element Op Status = 2
20171206 09:10:49   Element Name = System Board 1 Planar 3.3V
20171206 09:10:49     sensorType = 3 - Voltage
20171206 09:10:49     BaseUnits = 5
20171206 09:10:49     Scaled by = 0.010000
20171206 09:10:49     Current Reading = 3.220000
20171206 09:10:49     Lower Threshold Critical = 3.030000
20171206 09:10:49     Upper Threshold Critical = 3.560000
20171206 09:10:49     Element Op Status = 2
20171206 09:10:49 Check classe CIM_Memory
20171206 09:10:49   Element Name = Node 1 Socket 1 Level-1 Cache
20171206 09:10:49     Element Op Status = 0
20171206 09:10:49   Element Name = Node 1 Socket 1 Level-2 Cache
20171206 09:10:49     Element Op Status = 0
20171206 09:10:49   Element Name = Node 1 Socket 1 Level-3 Cache
20171206 09:10:49     Element Op Status = 0
20171206 09:10:49   Element Name = Node 1 Socket 2 Level-1 Cache
20171206 09:10:49     Element Op Status = 0
20171206 09:10:49   Element Name = Node 1 Socket 2 Level-2 Cache
20171206 09:10:49     Element Op Status = 0
20171206 09:10:49   Element Name = Node 1 Socket 2 Level-3 Cache
20171206 09:10:49     Element Op Status = 0
20171206 09:10:49   Element Name = Memory
20171206 09:10:49     Element Op Status = 2
20171206 09:10:49 Check classe CIM_Processor
20171206 09:10:50   Element Name = Node 1 Socket 1
20171206 09:10:50     Family = 181
20171206 09:10:50     CurrentClockSpeed = 2000MHz
20171206 09:10:50     Element Op Status = 2
20171206 09:10:50   Element Name = Node 1 Socket 2
20171206 09:10:50     Family = 181
20171206 09:10:50     CurrentClockSpeed = 2000MHz
20171206 09:10:50     Element Op Status = 2
20171206 09:10:50 Check classe CIM_RecordLog
20171206 09:10:50   Element Name = IPMI SEL
20171206 09:10:50     Element Op Status = 2
20171206 09:10:50 Check classe OMC_DiscreteSensor
20171206 09:10:52   Element Name = System Management Software 1 IMM FW Failover: Invalid or unsupported firmware or software version
20171206 09:10:52   Element Name = Processor 2 Int QPI Link 2
20171206 09:10:52   Element Name = Processor 1 Int QPI Link 1
20171206 09:10:52   Element Name = Group 4 Mem Board & CPU2 0: Configuration Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Cable/Interconnect 2 Ext QPI Link 2
20171206 09:10:52   Element Name = Cable/Interconnect 1 Ext QPI Link 1
20171206 09:10:52   Element Name = Power System Board 1 Pwr Inter Card 0: Present
20171206 09:10:52   Element Name = Power System Board 1 Pwr Inter Card 0: Absent
20171206 09:10:52   Element Name = Group 2 No I/O Resources
20171206 09:10:52   Element Name = BIOS 1 No Op ROM Space: Fault Status
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = BIOS 1 TPM Phys Pres
20171206 09:10:52   Element Name = Sub-Chassis 1 MEU 0: Present
20171206 09:10:52   Element Name = Sub-Chassis 1 MEU 0: Absent
20171206 09:10:52   Element Name = System Board 1 Cover Open Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Board 1 OC Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Module (DC-to-DC) 12 IOH 1.8V VRD
20171206 09:10:52   Element Name = Power Module (DC-to-DC) 11 IOH 1.5V VRD
20171206 09:10:52   Element Name = Power Module (DC-to-DC) 10 IOH 1.1V VRD
20171206 09:10:52   Element Name = System Management Software 1 Scale Config: Hardware change detected
20171206 09:10:52   Element Name = System Management Software 1 Scale Config: Firmware or software change detected
20171206 09:10:52   Element Name = Power Module (DC-to-DC) 7 CPU_1_8V_PG 0
20171206 09:10:52   Element Name = Power Module (DC-to-DC) 6 5V Power Good 0
20171206 09:10:52   Element Name = Power Module (DC-to-DC) 5 VRD 3.3V 0
20171206 09:10:52   Element Name = Power Module (DC-to-DC) 4 SAS VRD 0
20171206 09:10:52   Element Name = Power Module (DC-to-DC) 3 CPU_12_VIO 0
20171206 09:10:52   Element Name = Power Module (DC-to-DC) 2 CPU2 VRD 0
20171206 09:10:52   Element Name = Power Module (DC-to-DC) 1 CPU1 VRD 0
20171206 09:10:52   Element Name = Group 1 Backup Mem
20171206 09:10:52   Element Name = System Bus 1 SMBus Error: Bus Fatal Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Board 1 Memory Resize
20171206 09:10:52   Element Name = Group 1 Lane Failover
20171206 09:10:52   Element Name = Group 1 One of the DIMMs: Uncorrectable ECC
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 1 One of the DIMMs: Memory Scrub Failed
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 1 One of the DIMMs: Memory Device Disabled
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 1 One of the DIMMs: Correctable ECC logging limit reached
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 1 One of the DIMMs: Presence Detected
20171206 09:10:52   Element Name = Group 1 One of the DIMMs: Configuration Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 1 All DIMMs: Uncorrectable ECC
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 1 All DIMMs: Memory Scrub Failed
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 1 All DIMMs: Memory Device Disabled
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 1 All DIMMs: Correctable ECC logging limit reached
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 1 All DIMMs: Presence Detected
20171206 09:10:52   Element Name = Group 1 All DIMMs: Configuration Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 4 2SOnly Mismatch: Configuration Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 4 S4S Mismatch: Configuration Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 4 S2S Mismatch: Configuration Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 4 CPU Mismatch: Configuration Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 4 Missing Boot CPU: Configuration Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Board 1 Planar FPGA Err: Config Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 1 Mem Lane 0
20171206 09:10:52   Element Name = Power Module (DC-to-DC) 9 Board Mem VRD
20171206 09:10:52   Element Name = Power Module (DC-to-DC) 8 Mem Board VRD
20171206 09:10:52   Element Name = Memory Module 1 Mem Board Status
20171206 09:10:52   Element Name = Power Supply 4 PS4 EPOW fault
20171206 09:10:52   Element Name = Power Supply 3 PS3 EPOW fault
20171206 09:10:52   Element Name = Power Supply 2 PS2 EPOW fault
20171206 09:10:52   Element Name = Power Supply 1 PS1 EPOW fault
20171206 09:10:52   Element Name = System Board 1 Planar DIMMs 0: Uncorrectable ECC
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Board 1 Planar DIMMs 0: Memory Scrub Failed
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Board 1 Planar DIMMs 0: Memory Device Disabled
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Board 1 Planar DIMMs 0: Correctable ECC logging limit reached
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Board 1 Planar DIMMs 0: Presence Detected
20171206 09:10:52   Element Name = System Board 1 Planar DIMMs 0: Configuration Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 9 Memboard Bank3/4 0: Configuration Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 9 Memboard Bank3/4 0: Unknown
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 8 Memboard Bank1/2 0: Configuration Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 8 Memboard Bank1/2 0: Unknown
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 7 Mem Bank 3/4 0: Configuration Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 7 Mem Bank 3/4 0: Unknown
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 6 Mem Bank 1/2 0: Configuration Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 6 Mem Bank 1/2 0: Unknown
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Board 1 Sys Board Fault 0
20171206 09:10:52   Element Name = BIOS 1 ABR Status 0: Unspecified
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = BIOS 1 Aux Log 0: Entry added to auxiliary log
20171206 09:10:52   Element Name = BIOS 1 Scaling Failed
20171206 09:10:52   Element Name = BIOS 1 Firmware Error 0: Unspecified
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = BIOS 1 Firmware Error 0: Unspecified
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = BIOS 1 Progress 0: Unspecified
20171206 09:10:52   Element Name = Processor 2 CPU 2 OverTemp 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Processor 1 CPU 1 OverTemp 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 4 CPU Fault Reboot 0: Undetermined system hardware failure
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 4 PECI Bus 0: Sensor access degraded or unavailable
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 4 Critical Int CPU 0: Bus Uncorrectable error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 4 One of the CPUs 0: Disabled
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 4 All CPUs 0: Disabled
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Processor 2 CPU 2 0: IERR
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Processor 2 CPU 2 0: Thermal Trip
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Processor 2 CPU 2 0: FRB1/BIST failure
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Processor 2 CPU 2 0: Configuration Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Processor 2 CPU 2 0: SM BIOS Uncorrectable CPU-complex Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Processor 2 CPU 2 0: Presence detected
20171206 09:10:52   Element Name = Processor 2 CPU 2 0: Disabled
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Processor 2 CPU 2 0: Throttled
20171206 09:10:52   Element Name = Processor 1 CPU 1 0: IERR
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Processor 1 CPU 1 0: Thermal Trip
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Processor 1 CPU 1 0: FRB1/BIST failure
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Processor 1 CPU 1 0: Configuration Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Processor 1 CPU 1 0: SM BIOS Uncorrectable CPU-complex Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Processor 1 CPU 1 0: Presence detected
20171206 09:10:52   Element Name = Processor 1 CPU 1 0: Disabled
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Processor 1 CPU 1 0: Throttled
20171206 09:10:52   Element Name = Processor/IO Module 1 IOH Temp Status 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Cooling Unit 5 Cooling Zone 5 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Cooling Unit 4 Cooling Zone 4 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Cooling Unit 3 Cooling Zone 3 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Cooling Unit 2 Cooling Zone 2 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Cooling Unit 1 Cooling Zone 1 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Fan Device 5 Fan 5 0: Present
20171206 09:10:52   Element Name = Fan Device 5 Fan 5 0: Absent
20171206 09:10:52   Element Name = Fan Device 4 Fan 4 0: Present
20171206 09:10:52   Element Name = Fan Device 4 Fan 4 0: Absent
20171206 09:10:52   Element Name = Fan Device 3 Fan 3 0: Present
20171206 09:10:52   Element Name = Fan Device 3 Fan 3 0: Absent
20171206 09:10:52   Element Name = Fan Device 2 Fan 2 0: Present
20171206 09:10:52   Element Name = Fan Device 2 Fan 2 0: Absent
20171206 09:10:52   Element Name = Fan Device 1 Fan 1 0: Present
20171206 09:10:52   Element Name = Fan Device 1 Fan 1 0: Absent
20171206 09:10:52   Element Name = PCI Express Bus 5 PCI 5 0: Fault Status
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = PCI Express Bus 4 PCI 4 0: Fault Status
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = PCI Express Bus 3 PCI 3 0: Fault Status
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = PCI Express Bus 2 PCI 2 0: Fault Status
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = PCI Express Bus 1 PCI 1 0: Fault Status
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 2 Critical Int PCI 0: Bus Uncorrectable error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 2 All PCI Error 0: Fault Status
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Group 2 One of PCI Error 0: Fault Status
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Add-in Card 1 Riser 1 missing 0: Present
20171206 09:10:52   Element Name = Add-in Card 1 Riser 1 missing 0: Absent
20171206 09:10:52   Element Name = Add-in Card 2 Riser 2 missing 0: Present
20171206 09:10:52   Element Name = Add-in Card 2 Riser 2 missing 0: Absent
20171206 09:10:52   Element Name = Disk or Disk Bay 3 Drive 3 0: Drive Present
20171206 09:10:52   Element Name = Disk or Disk Bay 3 Drive 3 0: Drive Fault
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 3 Drive 3 0: Predictive Failure
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 3 Drive 3 0: In Critical Array
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 3 Drive 3 0: In Failed Array
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 3 Drive 3 0: Rebuild In Progress
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 2 Drive 2 0: Drive Present
20171206 09:10:52   Element Name = Disk or Disk Bay 2 Drive 2 0: Drive Fault
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 2 Drive 2 0: Predictive Failure
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 2 Drive 2 0: In Critical Array
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 2 Drive 2 0: In Failed Array
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 2 Drive 2 0: Rebuild In Progress
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 1 Drive 1 0: Drive Present
20171206 09:10:52   Element Name = Disk or Disk Bay 1 Drive 1 0: Drive Fault
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 1 Drive 1 0: Predictive Failure
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 1 Drive 1 0: In Critical Array
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 1 Drive 1 0: In Failed Array
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 1 Drive 1 0: Rebuild In Progress
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 0 Drive 0 0: Drive Present
20171206 09:10:52   Element Name = Disk or Disk Bay 0 Drive 0 0: Drive Fault
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 0 Drive 0 0: Predictive Failure
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 0 Drive 0 0: In Critical Array
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 0 Drive 0 0: In Failed Array
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Disk or Disk Bay 0 Drive 0 0: Rebuild In Progress
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Drive Backplane 4 DASD Backplane 4 0: Present
20171206 09:10:52   Element Name = Drive Backplane 4 DASD Backplane 4 0: Absent
20171206 09:10:52   Element Name = Drive Backplane 3 DASD Backplane 3 0: Present
20171206 09:10:52   Element Name = Drive Backplane 3 DASD Backplane 3 0: Absent
20171206 09:10:52   Element Name = Drive Backplane 2 DASD Backplane 2 0: Present
20171206 09:10:52   Element Name = Drive Backplane 2 DASD Backplane 2 0: Absent
20171206 09:10:52   Element Name = Drive Backplane 1 DASD Backplane 1 0: Present
20171206 09:10:52   Element Name = Drive Backplane 1 DASD Backplane 1 0: Absent
20171206 09:10:52   Element Name = Power Domain 1 Power Unit 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 4 PS 4 VCO Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 3 PS 3 VCO Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 2 PS 2 VCO Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 1 PS 1 VCO Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 4 PS4 12V OC Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 3 PS3 12V OC Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 2 PS2 12V OC Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 1 PS1 12V OC Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 4 PS4 12V UV Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 3 PS3 12V UV Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 2 PS2 12V UV Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 1 PS1 12V UV Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 4 PS4 12V OV Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 3 PS3 12V OV Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 2 PS2 12V OV Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 1 PS1 12V OV Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 4 PS 4 Therm Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 3 PS 3 Therm Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 2 PS 2 Therm Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 1 PS 1 Therm Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 4 PS 4 Fan Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 3 PS 3 Fan Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 2 PS 2 Fan Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 1 PS 1 Fan Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 4 Power Supply 4 0: Presence detected
20171206 09:10:52   Element Name = Power Supply 4 Power Supply 4 0: Failure status
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 4 Power Supply 4 0: Power Supply AC lost
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 3 Power Supply 3 0: Presence detected
20171206 09:10:52   Element Name = Power Supply 3 Power Supply 3 0: Failure status
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 3 Power Supply 3 0: Power Supply AC lost
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 2 Power Supply 2 0: Presence detected
20171206 09:10:52   Element Name = Power Supply 2 Power Supply 2 0: Failure status
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 2 Power Supply 2 0: Power Supply AC lost
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 1 Power Supply 1 0: Presence detected
20171206 09:10:52   Element Name = Power Supply 1 Power Supply 1 0: Failure status
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Supply 1 Power Supply 1 0: Power Supply AC lost
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Board 1 Aux Rail Fault 0
20171206 09:10:52   Element Name = System Board 1 Pwr 240A_B Fault 0
20171206 09:10:52   Element Name = System Board 1 Pwr 240A_A Fault 0
20171206 09:10:52   Element Name = System Board 1 Misc Rail Fault 0
20171206 09:10:52   Element Name = System Board 1 Mezz Rail Fault 0
20171206 09:10:52   Element Name = System Board 1 Planr Rail Fault 0
20171206 09:10:52   Element Name = System Board 1 CPU Rail Fault 0
20171206 09:10:52   Element Name = System Board 1 VT Fault 0
20171206 09:10:52   Element Name = System Board 1 Planar Fault 0
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Board 1 Video USB 0: Connected
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Board 1 Video USB 0: Config Error
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Front Panel Board 1 Front Panel 0: Present
20171206 09:10:52   Element Name = Front Panel Board 1 Front Panel 0: Absent
20171206 09:10:52   Element Name = System Chassis 1 NMI State 0: NMI/Diag Interrupt
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Chassis 1 NMI State 0: Software NMI
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Management Software 1 Watchdog: Timer expired
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Management Software 1 Watchdog: Hard reset
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Management Software 1 Watchdog: Power down
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Management Software 1 Watchdog: Power cycle
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Management Software 1 Watchdog: Timer interrupt
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Management Software 1 SEL Fullness: Log area reset/cleared
20171206 09:10:52   Element Name = System Management Software 1 SEL Fullness: Log full
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = System Management Software 1 SEL Fullness: Log almost full
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Domain 1 Host Power 0: Power off/down
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Domain 1 Host Power 0: Power cycle
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52   Element Name = Power Domain 1 Host Power 0: AC lost
20171206 09:10:52     Element Op Status = 2
20171206 09:10:52 Check classe OMC_Fan
20171206 09:10:53   Element Name = Fan 5 Tach
20171206 09:10:53     Element Op Status = 2
20171206 09:10:53   Element Name = Fan 4 Tach
20171206 09:10:53     Element Op Status = 2
20171206 09:10:53   Element Name = Fan 3 Tach
20171206 09:10:53     Element Op Status = 2
20171206 09:10:53   Element Name = Fan 2 Tach
20171206 09:10:53     Element Op Status = 2
20171206 09:10:53   Element Name = Fan 1 Tach
20171206 09:10:53     Element Op Status = 2
20171206 09:10:53 Check classe OMC_PowerSupply
20171206 09:10:53   Element Name = Power Supply 1
20171206 09:10:53     Element Op Status = 2
20171206 09:10:53   Element Name = Power Supply 2
20171206 09:10:53     Element Op Status = 2
20171206 09:10:53   Element Name = Power Supply 3
20171206 09:10:53     Element Op Status = 0
20171206 09:10:53   Element Name = Power Supply 4
20171206 09:10:53     Element Op Status = 0
20171206 09:10:53 Check classe VMware_StorageExtent
20171206 09:10:54 Check classe VMware_Controller
20171206 09:10:54   Element Name = Controller 500605B0044C9DF0 (ServeRAID M1015 SAS/SATA Controller)
20171206 09:10:54     Element Op Status = 2
20171206 09:10:54 Check classe VMware_StorageVolume
20171206 09:10:54 Check classe VMware_Battery
20171206 09:10:55 Check classe VMware_SASSATAPort
OK - Server: IBM -[7147A2G]- s/n: 07B1814 System BIOS: -[MLE175BUS-1.75]- 2012-06-06


Anything else ?
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
majed
 
Posts: 98
Joined: Mon Mar 17, 2014 5:29 am

Re: check_esxi_hardware.py just doesn't want to work

Postby majed » Wed Dec 06, 2017 6:19 am

Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
majed
 
Posts: 98
Joined: Mon Mar 17, 2014 5:29 am

Re: check_esxi_hardware.py just doesn't want to work

Postby npolovenko » Wed Dec 06, 2017 12:16 pm

@majed, Great, I will close this thread as resolved.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
npolovenko
Support Tech
 
Posts: 2035
Joined: Mon May 15, 2017 5:00 pm


Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 2 guests