Subversion Repositories ALCASAR

Rev

Rev 2976 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2976 Rev 3037
Line 31... Line 31...
31
        case 'command':
31
        case 'command':
32
            CommonFunctions::executeProgram('ipmi-sensors', '--output-sensor-thresholds', $lines);
32
            CommonFunctions::executeProgram('ipmi-sensors', '--output-sensor-thresholds', $lines);
33
            $this->_lines = preg_split("/\r?\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
33
            $this->_lines = preg_split("/\r?\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
34
            break;
34
            break;
35
        case 'data':
35
        case 'data':
36
            if (CommonFunctions::rfts(PSI_APP_ROOT.'/data/freeipmi.txt', $lines)) {
36
            if (CommonFunctions::rftsdata('freeipmi.tmp', $lines)) {
37
                $this->_lines = preg_split("/\r?\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
37
                $this->_lines = preg_split("/\r?\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
38
            }
38
            }
39
            break;
39
            break;
40
        default:
40
        default:
41
            $this->error->addConfigError('__construct()', '[sensor_freeipmi] ACCESS');
41
            $this->error->addConfigError('__construct()', '[sensor_freeipmi] ACCESS');
42
            break;
-
 
43
        }
42
        }
44
    }
43
    }
45
 
44
 
46
    /**
45
    /**
47
     * get temperature information
46
     * get temperature information
Line 171... Line 170...
171
    /**
170
    /**
172
     * get the information
171
     * get the information
173
     *
172
     *
174
     * @see PSI_Interface_Sensor::build()
173
     * @see PSI_Interface_Sensor::build()
175
     *
174
     *
176
     * @return Void
175
     * @return void
177
     */
176
     */
178
    public function build()
177
    public function build()
179
    {
178
    {
180
        $this->_temperature();
179
        $this->_temperature();
181
        $this->_voltage();
180
        $this->_voltage();