centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

Citrix psu.pm - wrong psu status mapping

Open joschi99 opened this issue 2 years ago • 7 comments

https://docs.vistanet.jp/about/supported-resources/templates-in-detail/citrix-netscaler-appliance-status-and-performance-g2/

Wrong status mapping for PSU

According the MIB from Citrix the status mapping is not correct.

joschi99 avatar Nov 01 '23 05:11 joschi99

are there any news? psu mapping is still wrong

joschi99 avatar Jan 04 '24 16:01 joschi99

Hi @joschi99, Sorry for the long delay!

Thanks for your contribution :100:

Your contribution will be discussed during the next weekly sessions of refinement with the team.

Thanks :+1:

Regards,

omercier avatar Jan 25 '24 09:01 omercier

Hi @omercier, some news in this? Did you need any information?

joschi99 avatar Feb 20 '24 06:02 joschi99

Hi @joschi99, Not yet, but it should be taken before mid-march. Thanks for your patience!

omercier avatar Feb 20 '24 22:02 omercier

Hello @joschi99, thanks for the contribution. This code was modified from https://github.com/centreon/centreon-plugins/pull/4597 for the same thing. I've asked internally if we have the exact version of citrix on which the tests were made, can you give us your citrix exact version too? I found this link which show a completly different usage for this oid : https://developer-docs.netscaler.com/en-us/adc-snmp-oid-reference/current-release

could you also give us a senmpwalk of all oid used by the plugin ? normally the --debug flag in the plugin print all info needed. This will allow us to make automated tests on this functionality.

Evan-Adam avatar Mar 11 '24 15:03 Evan-Adam

Hello @joschi99 We changed the mapping following user feedback. The snmpwalk returned differents values and this official Citrix article too. Here is the values description image What is your citrix version?

s-duret avatar Mar 11 '24 16:03 s-duret

We have different Netscaler under monitoring and on every device using since your psu mapping change we got a PSU error. This here is a debug output from a NS version 13.1, as you can see all psu status values are 0 (normal) and the device did not have any problem on psu:

OK: All 4 components are ok [4/4 psus]. | 'count_psu'=4;;;;
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.9.68.105.115.107.48.83.105.122.101 = Disk0Size
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.9.68.105.115.107.48.85.115.101.100 = Disk0Used
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.9.68.105.115.107.49.83.105.122.101 = Disk1Size
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.9.68.105.115.107.49.85.115.101.100 = Disk1Used
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.10.68.105.115.107.48.65.118.97.105.108 = Disk0Avail
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.10.68.105.115.107.49.65.118.97.105.108 = Disk1Avail
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.11.68.105.115.107.48.69.114.114.111.114.115 = Disk0Errors
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.11.68.105.115.107.48.80.117.115.97.103.101 = Disk0Pusage
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.11.68.105.115.107.49.69.114.114.111.114.115 = Disk1Errors
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.11.68.105.115.107.49.80.117.115.97.103.101 = Disk1Pusage
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.12.67.80.85.70.97.110.48.83.112.101.101.100 = CPUFan0Speed
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.12.67.80.85.70.97.110.49.83.112.101.101.100 = CPUFan1Speed
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.13.65.117.120.105.108.105.97.114.121.70.97.110.48 = AuxiliaryFan0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.13.65.117.120.105.108.105.97.114.121.70.97.110.49 = AuxiliaryFan1
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.13.65.117.120.105.108.105.97.114.121.70.97.110.50 = AuxiliaryFan2
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.13.65.117.120.105.108.105.97.114.121.70.97.110.51 = AuxiliaryFan3
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.14.65.117.120.105.108.105.97.114.121.77.105.115.99.48 = AuxiliaryMisc0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.14.65.117.120.105.108.105.97.114.121.77.105.115.99.49 = AuxiliaryMisc1
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.14.66.97.116.116.101.114.121.86.111.108.116.97.103.101 = BatteryVoltage
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.14.83.121.115.116.101.109.70.97.110.83.112.101.101.100 = SystemFanSpeed
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.14.86.111.108.116.97.103.101.83.101.110.115.111.114.50 = VoltageSensor2
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.15.67.80.85.48.67.111.114.101.86.111.108.116.97.103.101 = CPU0CoreVoltage
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.15.67.80.85.48.84.101.109.112.101.114.97.116.117.114.101 = CPU0Temperature
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.15.67.80.85.49.67.111.114.101.86.111.108.116.97.103.101 = CPU1CoreVoltage
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.15.67.80.85.49.84.101.109.112.101.114.97.116.117.114.101 = CPU1Temperature
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.15.83.121.115.116.101.109.70.97.110.49.83.112.101.101.100 = SystemFan1Speed
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.15.83.121.115.116.101.109.70.97.110.50.83.112.101.101.100 = SystemFan2Speed
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.16.73.110.116.101.108.67.80.85.86.116.116.80.111.119.101.114 = IntelCPUVttPower
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.17.65.117.120.105.108.105.97.114.121.86.111.108.116.97.103.101.48 = AuxiliaryVoltage0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.17.65.117.120.105.108.105.97.114.121.86.111.108.116.97.103.101.49 = AuxiliaryVoltage1
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.17.65.117.120.105.108.105.97.114.121.86.111.108.116.97.103.101.50 = AuxiliaryVoltage2
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.17.65.117.120.105.108.105.97.114.121.86.111.108.116.97.103.101.51 = AuxiliaryVoltage3
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.17.65.117.120.105.108.105.97.114.121.86.111.108.116.97.103.101.52 = AuxiliaryVoltage4
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.17.65.117.120.105.108.105.97.114.121.86.111.108.116.97.103.101.53 = AuxiliaryVoltage5
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.17.65.117.120.105.108.105.97.114.121.86.111.108.116.97.103.101.54 = AuxiliaryVoltage6
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.17.65.117.120.105.108.105.97.114.121.86.111.108.116.97.103.101.55 = AuxiliaryVoltage7
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.18.43.53.46.48.86.83.117.112.112.108.121.86.111.108.116.97.103.101 = +5.0VSupplyVoltage
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.18.45.53.46.48.86.83.117.112.112.108.121.86.111.108.116.97.103.101 = -5.0VSupplyVoltage
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.18.80.111.119.101.114.83.117.112.112.108.121.49.83.116.97.116.117.115 = PowerSupply1Status
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.18.80.111.119.101.114.83.117.112.112.108.121.50.83.116.97.116.117.115 = PowerSupply2Status
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.18.80.111.119.101.114.83.117.112.112.108.121.51.83.116.97.116.117.115 = PowerSupply3Status
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.18.80.111.119.101.114.83.117.112.112.108.121.52.83.116.97.116.117.115 = PowerSupply4Status
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.19.43.49.50.46.48.86.83.117.112.112.108.121.86.111.108.116.97.103.101 = +12.0VSupplyVoltage
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.19.45.49.50.46.48.86.83.117.112.112.108.121.86.111.108.116.97.103.101 = -12.0VSupplyVoltage
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.19.73.110.116.101.114.110.97.108.84.101.109.112.101.114.97.116.117.114.101 = InternalTemperature
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.21.65.117.120.105.108.105.97.114.121.84.101.109.112.101.114.97.116.117.114.101.48 = AuxiliaryTemperature0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.21.65.117.120.105.108.105.97.114.121.84.101.109.112.101.114.97.116.117.114.101.49 = AuxiliaryTemperature1
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.21.65.117.120.105.108.105.97.114.121.84.101.109.112.101.114.97.116.117.114.101.50 = AuxiliaryTemperature2
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.21.65.117.120.105.108.105.97.114.121.84.101.109.112.101.114.97.116.117.114.101.51 = AuxiliaryTemperature3
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.21.77.97.105.110.51.46.51.86.83.117.112.112.108.121.86.111.108.116.97.103.101 = Main3.3VSupplyVoltage
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.24.83.116.97.110.100.98.121.51.46.51.86.83.117.112.112.108.121.86.111.108.116.97.103.101 = Standby3.3VSupplyVoltage
.1.3.6.1.4.1.5951.4.1.1.41.7.1.1.27.80.111.119.101.114.83.117.112.112.108.121.53.118.83.116.97.110.100.98.121.86.111.108.116.97.103.101 = PowerSupply5vStandbyVoltage
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.9.68.105.115.107.48.83.105.122.101 = 1585
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.9.68.105.115.107.48.85.115.101.100 = 697
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.9.68.105.115.107.49.83.105.122.101 = 14179
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.9.68.105.115.107.49.85.115.101.100 = 6658
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.10.68.105.115.107.48.65.118.97.105.108 = 761
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.10.68.105.115.107.49.65.118.97.105.108 = 6386
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.11.68.105.115.107.48.69.114.114.111.114.115 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.11.68.105.115.107.48.80.117.115.97.103.101 = 47
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.11.68.105.115.107.49.69.114.114.111.114.115 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.11.68.105.115.107.49.80.117.115.97.103.101 = 51
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.12.67.80.85.70.97.110.48.83.112.101.101.100 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.12.67.80.85.70.97.110.49.83.112.101.101.100 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.13.65.117.120.105.108.105.97.114.121.70.97.110.48 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.13.65.117.120.105.108.105.97.114.121.70.97.110.49 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.13.65.117.120.105.108.105.97.114.121.70.97.110.50 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.13.65.117.120.105.108.105.97.114.121.70.97.110.51 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.14.65.117.120.105.108.105.97.114.121.77.105.115.99.48 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.14.65.117.120.105.108.105.97.114.121.77.105.115.99.49 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.14.66.97.116.116.101.114.121.86.111.108.116.97.103.101 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.14.83.121.115.116.101.109.70.97.110.83.112.101.101.100 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.14.86.111.108.116.97.103.101.83.101.110.115.111.114.50 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.15.67.80.85.48.67.111.114.101.86.111.108.116.97.103.101 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.15.67.80.85.48.84.101.109.112.101.114.97.116.117.114.101 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.15.67.80.85.49.67.111.114.101.86.111.108.116.97.103.101 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.15.67.80.85.49.84.101.109.112.101.114.97.116.117.114.101 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.15.83.121.115.116.101.109.70.97.110.49.83.112.101.101.100 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.15.83.121.115.116.101.109.70.97.110.50.83.112.101.101.100 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.16.73.110.116.101.108.67.80.85.86.116.116.80.111.119.101.114 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.17.65.117.120.105.108.105.97.114.121.86.111.108.116.97.103.101.48 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.17.65.117.120.105.108.105.97.114.121.86.111.108.116.97.103.101.49 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.17.65.117.120.105.108.105.97.114.121.86.111.108.116.97.103.101.50 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.17.65.117.120.105.108.105.97.114.121.86.111.108.116.97.103.101.51 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.17.65.117.120.105.108.105.97.114.121.86.111.108.116.97.103.101.52 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.17.65.117.120.105.108.105.97.114.121.86.111.108.116.97.103.101.53 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.17.65.117.120.105.108.105.97.114.121.86.111.108.116.97.103.101.54 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.17.65.117.120.105.108.105.97.114.121.86.111.108.116.97.103.101.55 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.18.43.53.46.48.86.83.117.112.112.108.121.86.111.108.116.97.103.101 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.18.45.53.46.48.86.83.117.112.112.108.121.86.111.108.116.97.103.101 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.18.80.111.119.101.114.83.117.112.112.108.121.49.83.116.97.116.117.115 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.18.80.111.119.101.114.83.117.112.112.108.121.50.83.116.97.116.117.115 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.18.80.111.119.101.114.83.117.112.112.108.121.51.83.116.97.116.117.115 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.18.80.111.119.101.114.83.117.112.112.108.121.52.83.116.97.116.117.115 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.19.43.49.50.46.48.86.83.117.112.112.108.121.86.111.108.116.97.103.101 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.19.45.49.50.46.48.86.83.117.112.112.108.121.86.111.108.116.97.103.101 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.19.73.110.116.101.114.110.97.108.84.101.109.112.101.114.97.116.117.114.101 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.21.65.117.120.105.108.105.97.114.121.84.101.109.112.101.114.97.116.117.114.101.48 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.21.65.117.120.105.108.105.97.114.121.84.101.109.112.101.114.97.116.117.114.101.49 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.21.65.117.120.105.108.105.97.114.121.84.101.109.112.101.114.97.116.117.114.101.50 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.21.65.117.120.105.108.105.97.114.121.84.101.109.112.101.114.97.116.117.114.101.51 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.21.77.97.105.110.51.46.51.86.83.117.112.112.108.121.86.111.108.116.97.103.101 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.24.83.116.97.110.100.98.121.51.46.51.86.83.117.112.112.108.121.86.111.108.116.97.103.101 = 0
.1.3.6.1.4.1.5951.4.1.1.41.7.1.2.27.80.111.119.101.114.83.117.112.112.108.121.53.118.83.116.97.110.100.98.121.86.111.108.116.97.103.101 = 0
Checking power supplies
power supply '1' status is 'normal' [instance = 1]
power supply '2' status is 'normal' [instance = 2]
power supply '3' status is 'normal' [instance = 3]
power supply '4' status is 'normal' [instance = 4]
Checking fans
skipping fan 'CPUFan0Speed' (counter is 0)
skipping fan 'CPUFan1Speed' (counter is 0)
skipping fan 'AuxiliaryFan0' (counter is 0)
skipping fan 'AuxiliaryFan1' (counter is 0)
skipping fan 'AuxiliaryFan2' (counter is 0)
skipping fan 'AuxiliaryFan3' (counter is 0)
skipping fan 'SystemFanSpeed' (counter is 0)
skipping fan 'SystemFan1Speed' (counter is 0)
skipping fan 'SystemFan2Speed' (counter is 0)
Checking temperatures
skipping temperature 'CPU0Temperature' (counter is 0)
skipping temperature 'CPU1Temperature' (counter is 0)
skipping temperature 'InternalTemperature' (counter is 0)
skipping temperature 'AuxiliaryTemperature0' (counter is 0)
skipping temperature 'AuxiliaryTemperature1' (counter is 0)
skipping temperature 'AuxiliaryTemperature2' (counter is 0)
skipping temperature 'AuxiliaryTemperature3' (counter is 0)
Checking voltages
skipping voltage 'BatteryVoltage' (counter is 0)
skipping voltage 'VoltageSensor2' (counter is 0)
skipping voltage 'CPU0CoreVoltage' (counter is 0)
skipping voltage 'CPU1CoreVoltage' (counter is 0)
skipping voltage 'IntelCPUVttPower' (counter is 0)
skipping voltage 'AuxiliaryVoltage0' (counter is 0)
skipping voltage 'AuxiliaryVoltage1' (counter is 0)
skipping voltage 'AuxiliaryVoltage2' (counter is 0)
skipping voltage 'AuxiliaryVoltage3' (counter is 0)
skipping voltage 'AuxiliaryVoltage4' (counter is 0)
skipping voltage 'AuxiliaryVoltage5' (counter is 0)
skipping voltage 'AuxiliaryVoltage6' (counter is 0)
skipping voltage 'AuxiliaryVoltage7' (counter is 0)
skipping voltage '+5.0VSupplyVoltage' (counter is 0)
skipping voltage '-5.0VSupplyVoltage' (counter is 0)
skipping voltage '+12.0VSupplyVoltage' (counter is 0)
skipping voltage '-12.0VSupplyVoltage' (counter is 0)
skipping voltage 'Main3.3VSupplyVoltage' (counter is 0)
skipping voltage 'Standby3.3VSupplyVoltage' (counter is 0)
skipping voltage 'PowerSupply5vStandbyVoltage' (counter is 0)

joschi99 avatar Mar 12 '24 05:03 joschi99

Hi @joschi99, Thanks again for your contribution. A new version of the plugin should be released before the end of this day. The corresponding PR is #5022. To toggle between the old and the new status mapping, use --alternative-status-mapping=0 or --alternative-status-mapping=1. Thanks again!

omercier avatar May 16 '24 13:05 omercier