| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/landscape/monitor/ |
Upload File : |
ó
}9Rc @ s¬ d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z d d l m Z d d l
m Z d d l m
Z
d d l m Z d e f d „ ƒ YZ d S( iÿÿÿÿN( t inlineCallbackst returnValue( t Accumulator( t CoverageMonitor( t
spawn_process( t
MonitorPlugint CephUsagec B s e Z d Z d Z d Z e j d d e j ƒZ d d e
j
d „ Z d „ Z d „ Z
e d „ Z e d
„ Z e d „ ƒ Z d „ Z d
„ Z d „ Z d „ Z d „ Z RS( sÒ
Plugin that captures Ceph usage information. This only works if the client
runs on one of the Ceph monitor nodes, and it noops otherwise.
The plugin requires the 'ceph' command to be available, which is run with a
config file in <data_path>/ceph-client/ceph.landscape-client.conf with the
following config:
[global]
auth supported = cephx
keyring = <keyring-file>
mon host = <ip>:6789
The configured keyring can be generated with:
ceph-authtool <keyring-file> --create-keyring
--name=client.landscape-client --add-key=<key>
The landscape-client charm automatically provides the client configuration
and key when deployed as subordinate of a ceph node.
s
ceph-usages9 .*pgmap.*data, (\d+) MB used, (\d+) MB / (\d+) MB avail.*t flagsi i<