Run monitoring physical devices on devstack

From “Icehouse” release on Openstack has been added monitoring physical devices. At this moment available only one inspector – SNMP Inspector. IPMI Inspector will be add soon.

1. SNMP data:

The SNMP Inspector monitors devices such as routers, switches etc. The basis for this is the Net-SNMP (snmpd) package. The SNMP Inspector supports such meters as:

  • hardware.cpu – cpu stats, average value for CPU load (1, 5, 15 min)
  • hardware.memory – memory stats, total and used
  • hardware.disk – disk stats, list of all disks with total and used size for each
  • hardware.network – network stats, list of IP’s with bandwidth, incoming, outgoing bytes and outgoing errors

The snmpd (a Linux Daemon) running on resources sends data to the SNMP Inspector directly.

  1.  Install snmpd on your machine:
    sudo apt-get install snmpd
  2. Change /etc/snmp/snmpd.conf to make sure that snmpd daemon will be able  get all necessary data:
    rocommunity public 
    syslocation "ICClab"
    syscontact serh@zhaw.ch
    sysservices 79
    proc
    disk / 15%
    disk /usr/backup 15%
  3. Restart snmpd
  4. Download devstack:
    git clone https://github.com/openstack-dev/devstack.git
  5. Enable ceilometer services in devstack/localrc:
    # Enable the ceilometer metering services
    enable_service ceilometer-acompute 
    ceilometer-acentral ceilometer-anotification 
    ceilometer-collector
    
    # Enable the ceilometer api services
    enable_service ceilometer-api
  6. Run devstack:
    ./devstack/stack.ch
  7. Add meters to /etc/ceilometer/pipeline.yaml:
       ...
        - name: meter_snmp
          interval: 600
          resources:
              - snmp://localhost
          meters:
              - "hardware.cpu*"
              - "hardware.memory*"
              - "hardware.disk*"
              - "hardware.network*"
          sinks:
              - meter_sink
        ...
  8. Rerun Ceilometer central agent
    celometer-agent-central

now you can check meters:Screenshot from 2014-07-01 11:27:05and samples:Screenshot from 2014-07-01 11:30:53 for such meters as hardware.disk and hardware.network in database has been stored additional information. IP, MAC, Name for network stats and device, path for disk.

database

2. IPMI Inspector

The IPMI Inspector monitors resource health data including:

  • current.value – current value of fan speed, voltage, temperature
  • max.value – maximum available value of stats
  • min.value – minimum available value of stats
  • current.status – status fan, voltage, temperature (ok/fail)
  1. Install ipmitool on your machine:
    sudo apt-get  install ipmitool
  2. Enable ironic services in devstack/localrc:
    # Enable Ironic API and Ironic Conductor
    enable_service ir-api
    enable_service ir-cond
  3. Add line to /etc/ironic/ironic.conf:
    send_sensor_data=true
  4. Rerun ironic conductor:
    ironic-conductor
  5. Create node which support ipmi driver:
    ironic node-create -d pxe_ipmitool -i ipmi_address=ip.mi.add.ress
    -i ipmi_password=password -i ipmi_username=username
  6. Add meters to /etc/ceilometer/pipeline.yaml:
       ...
        - name: meter_ipmi
          interval: 600
          resources:
              - ipmi://ip.mi.add.ress
          meters:
              - "hardware.rpm*"
              - "hardware.volt*"
              - "hardware.degree*"
          sinks:
              - meter_sink
        ...
  7. Rerun Ceilometer central agent
    celometer-agent-central
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值