Ask Your Question
0

How to get hardware info using ceilometer?

asked 2014-12-15 00:53:59 -0500

yamamodo gravatar image

hi~

I'm trying to get hardware info like "hardware.memory.total" using ceilometer The environment of my sys is : Ubuntu14.04 Icehouse all_in_one scenario Run in vmware player!

After I goole some info about that,I do the following steps:

1.install snmpd-->apt-get install snmpd

2.add:

view systemonly included .1 && agentAddress udp:161,udp6:[::1]:161 in "/etc/snmp/snmpd.conf

3.add:

sources: ...................

  - name: hardware_source
  interval: 600
  meters:
      - "hardware.*" 
  resources:
      - snmp://192.168.52.148
  sinks:
      - meter_sink

IN /etc/ceilometer/pipeline.yaml

4.restart ceilometer services

(ceilometer-agent-central,ceilometer-agent-compute,ceilometer-agent-notification,ceilometer-api,ceilometer-collector)

And I type: ceilometer meter-list

http://i.imgur.com/mwDMAJL.png

I still can't see any hardware info

can anyone tell me how to get the hardware info?

thanks!

edit retag flag offensive close merge delete

Comments

Hi yamamodo, if you got hardware.* or snmp meters working, can you please share your

  • /etc/snmp/snmpd.conf
  • /etc/ceilometer/pipeline.yaml

configuration files ?

Rakesh Patnaik gravatar imageRakesh Patnaik ( 2015-03-23 11:13:42 -0500 )edit

I'm having the same problem here. I have the pipeline.yaml file configured exactly how it's shown below (with the exception of it being juno and there are some syntax differences). SNMP works fine. I can run snmpwalk with no issues. Everything appears to be fine, but nothing in database. Help

jsd79 gravatar imagejsd79 ( 2015-10-25 19:24:00 -0500 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2014-12-19 21:41:19 -0500

9lives gravatar image

First, you need to make sure the snmp work by using snmpwalk utility

  snmpwalk –v 2c -c public  snmp_server_ip

Second, make sure the hardware related stevdore plugins are registered in setup.cfg or entry_point.txt in your ceilometer package.

[ceilometer.poll.central]
energy = ceilometer.energy.kwapi:EnergyPollster
hardware.cpu.load.15min = ceilometer.hardware.pollsters.cpu:CPULoad15MinPollster
hardware.cpu.load.1min = ceilometer.hardware.pollsters.cpu:CPULoad1MinPollster
hardware.cpu.load.5min = ceilometer.hardware.pollsters.cpu:CPULoad5MinPollster
hardware.disk.size.total = ceilometer.hardware.pollsters.disk:DiskTotalPollster
hardware.disk.size.used = ceilometer.hardware.pollsters.disk:DiskUsedPollster
hardware.memory.swap.avail = ceilometer.hardware.pollsters.memory:MemorySwapAvailPollster
hardware.memory.swap.total = ceilometer.hardware.pollsters.memory:MemorySwapTotalPollster

[ceilometer.hardware.inspectors]
snmp = ceilometer.hardware.inspector.snmp:SNMPInspector

Thirdly, check if any error in the ceilometer related logs , normally it might be the keystone authentication issue, if that is the case, check the configuration in ceilometer.conf for [keystone_authtoken].

Finally, make sure your meter_sink does not filter out the hardware meterics, you can use "*" for all metrics like this

...
 - name: meter_sink
          meter: "*"
          transformers:
          publishers:
              - notifier://?per_meter_topic=1
...

Note that: there is a major change in the juno release in code structure, the above solution is based on icehouse version. Hope that helps!

Vic

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-12-15 00:53:59 -0500

Seen: 2,417 times

Last updated: Dec 19 '14