custom pythond plugin charts do not show in netdata

Following the python.d tutorial I wrote a plugin that queries power and temperature data of an HP machine using the redfish api. I installed the redfish library globally so netdata should have access. I can run the plugin in debug mode and see that data is being retrieved and published to netdata. The issue is that the plugin defined charts do not appear http://localhost:19999/api/v1/charts. I can see the base plugin:

"netdata.runtime_hp_ilo_cmdhistory6": 		{
		"id": "netdata.runtime_hp_ilo_cmdhistory6",
		"name": "netdata.runtime_hp_ilo_cmdhistory6",
		"type": "netdata",
		"family": "python.d",
		"context": "netdata.pythond_runtime",
		"title": "Execution time for hp_ilo_cmdhistory6 (netdata.runtime_hp_ilo_cmdhistory6)",
		"priority": 145000,
		"plugin": "python.d.plugin",
		"module": "",
		"enabled": true,
		"units": "ms",
		"data_url": "/api/v1/data?chart=netdata.runtime_hp_ilo_cmdhistory6",
		"chart_type": "line",
		"duration": 30,
		"first_entry": 0,
		"last_entry": 0,
		"update_every": 30,
		"dimensions": {
			"run_time": { "name": "run time" }
		},
		"chart_variables": {
		},
		"green": null,
		"red": null,
		"alarms": {

		},
		"chart_labels": {

		}

	},

but the data is empty, from what I can tell no data is being retrieved. There is nothing in the logs that indicates failure, and I have looked every where for a clue. Here is the output of a debug run:

BEGIN hp_ilo_cmdhistory6.power_usage 0
SET ‘minimum’ = 207
SET ‘maximum’ = 243
SET ‘average’ = 208
END

CHART hp_ilo_cmdhistory6.temps ‘’ ‘Chassis Temperature’ ‘Percent’ ‘hp_ilo’ ‘temp’ line 60001 30 ‘’ ‘python.d.plugin’ ‘hp_ilo’
DIMENSION ‘test’ ‘test’ absolute 1 1 ’ ’
DIMENSION ‘01-Inlet Ambient’ ‘01-Inlet Ambient’ absolute 1 1 ’ ’
DIMENSION ‘02-CPU 1’ ‘02-CPU 1’ absolute 1 1 ’ ’
DIMENSION ‘03-CPU 2’ ‘03-CPU 2’ absolute 1 1 ’ ’
DIMENSION ‘04-P1 DIMM 1-6’ ‘04-P1 DIMM 1-6’ absolute 1 1 ’ ’
DIMENSION ‘05-P1 DIMM 7-12’ ‘05-P1 DIMM 7-12’ absolute 1 1 ’ ’
DIMENSION ‘06-P2 DIMM 1-6’ ‘06-P2 DIMM 1-6’ absolute 1 1 ’ ’
DIMENSION ‘07-P2 DIMM 7-12’ ‘07-P2 DIMM 7-12’ absolute 1 1 ’ ’
DIMENSION ‘08-HD Max’ ‘08-HD Max’ absolute 1 1 ’ ’
DIMENSION ‘09-Exp Bay Drive’ ‘09-Exp Bay Drive’ absolute 1 1 ’ ’
DIMENSION ‘10-Chipset’ ‘10-Chipset’ absolute 1 1 ’ ’
DIMENSION ‘11-PS 1 Inlet’ ‘11-PS 1 Inlet’ absolute 1 1 ’ ’
DIMENSION ‘12-PS 2 Inlet’ ‘12-PS 2 Inlet’ absolute 1 1 ’ ’
DIMENSION ‘13-VR P1’ ‘13-VR P1’ absolute 1 1 ’ ’
DIMENSION ‘14-VR P2’ ‘14-VR P2’ absolute 1 1 ’ ’
DIMENSION ‘15-VR P1 Mem’ ‘15-VR P1 Mem’ absolute 1 1 ’ ’
DIMENSION ‘16-VR P1 Mem’ ‘16-VR P1 Mem’ absolute 1 1 ’ ’
DIMENSION ‘17-VR P2 Mem’ ‘17-VR P2 Mem’ absolute 1 1 ’ ’
DIMENSION ‘18-VR P2 Mem’ ‘18-VR P2 Mem’ absolute 1 1 ’ ’
DIMENSION ‘19-PS 1 Internal’ ‘19-PS 1 Internal’ absolute 1 1 ’ ’
DIMENSION ‘20-PS 2 Internal’ ‘20-PS 2 Internal’ absolute 1 1 ’ ’
DIMENSION ‘21-PCI 1’ ‘21-PCI 1’ absolute 1 1 ’ ’
DIMENSION ‘22-PCI 2’ ‘22-PCI 2’ absolute 1 1 ’ ’
DIMENSION ‘23-PCI 3’ ‘23-PCI 3’ absolute 1 1 ’ ’
DIMENSION ‘24-HD Controller’ ‘24-HD Controller’ absolute 1 1 ’ ’
DIMENSION ‘25-LOM Card’ ‘25-LOM Card’ absolute 1 1 ’ ’
DIMENSION ‘26-LOM’ ‘26-LOM’ absolute 1 1 ’ ’
DIMENSION ‘27-Front Ambient’ ‘27-Front Ambient’ absolute 1 1 ’ ’
DIMENSION ‘28-P/S 2 Zone’ ‘28-P/S 2 Zone’ absolute 1 1 ’ ’
DIMENSION ‘29-Battery Zone’ ‘29-Battery Zone’ absolute 1 1 ’ ’
DIMENSION ‘30-iLO Zone’ ‘30-iLO Zone’ absolute 1 1 ’ ’
DIMENSION ‘31-PCI 1 Zone’ ‘31-PCI 1 Zone’ absolute 1 1 ’ ’
DIMENSION ‘32-PCI 2 Zone’ ‘32-PCI 2 Zone’ absolute 1 1 ’ ’
DIMENSION ‘33-PCI 3 Zone’ ‘33-PCI 3 Zone’ absolute 1 1 ’ ’
DIMENSION ‘34-HD Cntlr Zone’ ‘34-HD Cntlr Zone’ absolute 1 1 ’ ’
DIMENSION ‘35-I/O Zone’ ‘35-I/O Zone’ absolute 1 1 ’ ’
DIMENSION ‘36-Storage Batt’ ‘36-Storage Batt’ absolute 1 1 ’ ’
DIMENSION ‘37-Fuse’ ‘37-Fuse’ absolute 1 1 ’ ’

BEGIN hp_ilo_cmdhistory6.temps 0
SET ‘01-Inlet Ambient’ = 14
SET ‘02-CPU 1’ = 57
SET ‘03-CPU 2’ = 58
SET ‘04-P1 DIMM 1-6’ = 30
SET ‘05-P1 DIMM 7-12’ = 34
SET ‘06-P2 DIMM 1-6’ = 30
SET ‘07-P2 DIMM 7-12’ = 33
SET ‘08-HD Max’ = 50
SET ‘09-Exp Bay Drive’ = 0
SET ‘10-Chipset’ = 38
SET ‘11-PS 1 Inlet’ = 21
SET ‘12-PS 2 Inlet’ = 32
SET ‘13-VR P1’ = 38
SET ‘14-VR P2’ = 39
SET ‘15-VR P1 Mem’ = 26
SET ‘16-VR P1 Mem’ = 26
SET ‘17-VR P2 Mem’ = 27
SET ‘18-VR P2 Mem’ = 26
SET ‘19-PS 1 Internal’ = 40
SET ‘20-PS 2 Internal’ = 40
SET ‘21-PCI 1’ = 0
SET ‘22-PCI 2’ = 0
SET ‘23-PCI 3’ = 0
SET ‘24-HD Controller’ = 53
SET ‘25-LOM Card’ = 54
SET ‘26-LOM’ = 0
SET ‘27-Front Ambient’ = 21
SET ‘28-P/S 2 Zone’ = 35
SET ‘29-Battery Zone’ = 30
SET ‘30-iLO Zone’ = 34
SET ‘31-PCI 1 Zone’ = 31
SET ‘32-PCI 2 Zone’ = 29
SET ‘33-PCI 3 Zone’ = 33
SET ‘34-HD Cntlr Zone’ = 29
SET ‘35-I/O Zone’ = 31
SET ‘36-Storage Batt’ = 0
SET ‘37-Fuse’ = 33
END

BEGIN netdata.runtime_hp_ilo_cmdhistory6 0
SET run_time = 3427
END

Any pointers on how to debug this?

@ilyam8 does that output look ok to you?

@jfelten are you able to share the plugin code in here or on github?

That is the correct place to check if you have any problems. Let’s see what is happening:

  • restart netdata service
  • grep hp_ilo error.log