4 231
modifications
(→hptemp) |
|||
(2 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
* https://github.com/mhagander/munin-plugins | [[Category:serveur]] | ||
[[Category:debian]] | |||
[[Category:monitoring]] | |||
* src : https://github.com/mhagander/munin-plugins | |||
=hpacu HP Array Controllers= | =hpacu HP Array Controllers= | ||
Ligne 376 : | Ligne 380 : | ||
> if (/^\s*(\d+)\s*Basic Sensor\s+(CPU \(\d+\)|Processor Zone|I\/O Zone)\s+(\S+)\s+\d+F\/\s*(\d+)C\s+\d+F\/\s*(\d+)C/) { | > if (/^\s*(\d+)\s*Basic Sensor\s+(CPU \(\d+\)|Processor Zone|I\/O Zone)\s+(\S+)\s+\d+F\/\s*(\d+)C\s+\d+F\/\s*(\d+)C/) { | ||
</pre> | </pre> | ||
Cette regexp est susceptible d'évoluer ... en fonction des sensors de HP. | |||
working plugin: | working plugin: | ||
Ligne 445 : | Ligne 451 : | ||
next if /^\s*$/; | next if /^\s*$/; | ||
next if /^ID/; | next if /^ID/; | ||
if (/^\s*(\d+)\s*Basic Sensor\s+(CPU \(\d+\)|Ambient|Processor Zone|Memory Board|System Board|Pwr\. Supply Bay|I\/O Zone|SCSI Backplane)\s+(\S+)\s+\d+F\/\s*(\d+)C\s+\d+F\/\s*(\d+)C/) { | if (/^\s*(\d+)\s*Basic Sensor\s+(CPU \(\d+\)|Ambient|Processor Zone|Memory Board|System Board|Pwr\. Supply Bay|I\/O Zone|SCSI Backplane|Chassis)\s+(\S+)\s+\d+F\/\s*(\d+)C\s+\d+F\/\s*(\d+)C/) { | ||
push @sensors, { | push @sensors, { | ||
'id' => $1, | 'id' => $1, |