Menu

MRTG log data - B instead of KB

Help
2015-08-07
2015-08-12
  • Kazimierz Uromski

    I'm using check_local_mrtgtraf to keep all server info in nagios. Nagios is displaying values properly - mostly KB. Unfortunately nagiosgraph is showing same values, but without any unit - so it's treated as bytes.
    How can I fix this? Nagios 3.5.8 + nagiosgraph 1.4.4 on Centos 6.6.

     
  • Kazimierz Uromski

    Well, now I know I should use map for multiplication. I'm not very familiar with regexp and/or nagiosgraph map.
    check_mrtgtraf output is
    Traffic CRITICAL - Avg. In = 167.2 KB/s, Avg. Out = 62.1 KB/s|in=167.205078KB/s;;50000000000.000000;0.000000 out=62.129883KB/s;;;0.000000
    How to multiply in and out by 1024?

     

    Last edit: Kazimierz Uromski 2015-08-12

Log in to post a comment.