MRTG : Remove Spike !!

This item was filled under [ Linux, Networking, Tips ]

Biasanya kek gini kalo lagi kena “SPIKE”, grafik MRTG jadi agak susah di baca (idiot)

mrtg-non-spike

Tapi setelahada modif dikit, akhirnya isa kek di bawah ini.. jadi grafik MRTG normal kembali (banana_rock).

mrtg-after-spike

Caranya cukup simple, buat file spike_mrtg.sh, isinya seperti ini :

#! /bin/sh

LIST=`ls *.log`
mkdir -p old/
cp *.log old/
for i in $LIST
do awk ‘!(NF==5 && ($4+$5) > 1000000)’  old/$i > $i
done
spike_mrtg.sh lines 1-8/8 (END)

Trus taruh di working dir nya mrtg. Kemudian kasih atribut executable.

chmod +x spike_mrtg.sh

Dan jangan lupa taruh di crond. (evil_grin)

Tagged with: [ , , , ]
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 Comments on “MRTG : Remove Spike !!”

  • ovan
    16 July, 2009, 22:03

    begh…. pas buanget mas Bayu iki, aku memang sering kali bermasalah dgn spike di mrtg server.
    suwun infone yo mas (rock)

  • 18 July, 2009, 22:44

    Hi there,
    Not sure that this is true:), but thanks for a post.

  • safa
    19 July, 2009, 23:09

    mbois mas b4y, eh…. nadine kie bule tenan opo bule2an? (rock)

Leave a Comment

CommentLuv badge
:-)) :-) :-D (LOL) :-P (woot) ;-) :-o X-( :-( :-& (angry) (annoyed) (bye) B-) (cozy) (sick) (: (goodluck) (griltongue) (mmm) (hungry) (music) (tears) (tongue) (unsure) (highfive) (dance) (doh) (brokenheart) (drinking) (girlkiss) (rofl) (money) (rock) (nottalking) (party) (sleeping) (thinking) (bringit) (worship) (applause) 8-) (gym) (heart) (devil) (lmao) (banana_cool) (banana_rock) (evil_grin) (headspin) (heart_beat) (ninja) (haha) (evilsmirk) (bigeyes) (funkydance) (idiot) (lonely) (scenic) (hassle) (panic) (okok) (yahoo)