| 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 m Z d d l m Z d e f d „ ƒ YZ d d d „ ƒ YZ d d d „ ƒ YZ d
d d „ ƒ YZ
d d d
„ ƒ YZ d e f d e f d e
f d e f g Z d S( iÿÿÿÿN( t PluginConfigError( t
MonitorPlugint
ProcessorInfoc B sq e Z d Z d Z d Z d d d d „ Z d „ Z d „ Z d „ Z e
d „ Z e
d „ Z d
„ Z
d „ Z RS(
s¤ Plugin captures information about the processor(s) in this machine.
This plugin runs once per client session. When processor
information is retrieved it's compared against the last known
processor information, which is saved in persistent storage. A
message is only put on the message queue if the latest processor
information differs from the last known processor information.
The information available from /proc/cpuinfo varies per platform.
For example, an Apple PowerMac Dual G5 doesn't contain a vendor ID
and provides the processor name in the 'cpu' field, as opposed to
the 'model name' field used on x86-based hardware. For reasons
such as this, the schema of the data reported by this plugin is
flexible. Only 'processor-id' and 'model' are guaranteed to be
present.
In order to deal with the vagaries of parsing /proc/cpu
information on the various platforms we support, message
generation is deferred to per-platform message factories.
@param delay: Set the starting delay.
@param machine_name: The machine name to report.
@param source_filename: The filesystem path to read information from.
s processor-infoi s
/proc/cpuinfoc C sJ | | _ | | _ | d k r1 t j ƒ d } n | j | | ƒ | _ d S( Ni ( t _delayt _source_filenamet Nonet ost unamet _create_cpu_info_readert _cpu_info_reader( t selft delayt machine_namet source_filename( ( sC /usr/lib/python2.7/dist-packages/landscape/monitor/processorinfo.pyt __init__' s c C sU x>