Ad Widget

Collapse

Auto-scaling for RPM (fan data)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • djack
    Junior Member
    • Jun 2010
    • 6

    #1

    Auto-scaling for RPM (fan data)

    For collect fan data and display RPM (not KRPM) on zabbix screens, you should change in module func.inc.php function: convert_units(). It was tested in Zabbix 1.8.2 and 1.8.3.
    You should add lines in bold:

    function convert_units($value, $units, $convert=ITEM_CONVERT_WITH_UNITS){
    ............
    ............
    switch($units){
    case 'RPM':
    $step=1;
    $convert = $convert?$convert:ITEM_CONVERT_NO_UNITS;
    break;
    case 'Bps':
    case 'B':
    $step=1024;
    $convert = $convert?$convert:ITEM_CONVERT_NO_UNITS;
    break;
    case 'b':
    case 'bps':
    $convert = $convert?$convert:ITEM_CONVERT_NO_UNITS;
    default:
    $step = 1000;
    }
    ............
    ............
    if ($units=='RPM') $desc='';
    return sprintf($format, $valUnit['value'], $desc, $units);
    }
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    for the record, 1.8.3 blacklists uppercase & lowercase rpm for multiplier prefixes already
    Zabbix 3.0 Network Monitoring book

    Comment

    Working...