Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: CPU monitoring + MRTG


  • Subject: Re: lug-bg: CPU monitoring + MRTG
  • From: atl@email.domain.hidden (Anton Tinchev)
  • Date: Thu, 24 Apr 2003 16:24:24 +0200


Tosho Yankov wrote:
<em class="quotelev1">> Zdraveite,
<em class="quotelev1">> znachi ot edna godina izpolzvam slednoto za da sledq (risuvam s MRTG)
<em class="quotelev1">> natovarvaneto na processora si:
<em class="quotelev1">> 
<em class="quotelev1">> #!/bin/bash
<em class="quotelev1">> 
<em class="quotelev1">> alabala=`cat /proc/loadavg|awk 'BEGIN{FS=" "}{print $2}'|cut -d "." -f 2`
<em class="quotelev1">> echo $alabala
<em class="quotelev1">> echo 0
<em class="quotelev1">> 
<em class="quotelev1">> naskoro iskah da obiram ot remote mashina sytoto .. no kolko ozadachen
<em class="quotelev1">> ostanah kato vidah tova :
<em class="quotelev1">> 
<em class="quotelev1">> cat /proc/loadavg
<em class="quotelev1">> 1.47 1.18 1.14 2/60 32171
<em class="quotelev1">> nali nqma kak da e na 118% natovarvane .. i stignah do izvoda che cqla
<em class="quotelev1">> godina (che i poveche vsystnost sym vijdal edno nisto) ..
<em class="quotelev1">> ta misylta mi e kyde da vidq tekustoto natovarvane na processora za da
<em class="quotelev1">> moga da go podavam kym MRTG-to
<em class="quotelev1">> 
<em class="quotelev1">> P.S. Varianti s snmpd ne mi vyrshat rabota.
<em class="quotelev1">> 
<em class="quotelev1">> 
/proc/stat
na nai gornia red imash 4-ri cifri (A B C D). delta e vremeto, prez koeto merish.
delta/A, delta/B, delta/C, delta/D sa ti % na user, nice, system i iddle (ne sam siguren v posledovatelnostta).

<p>============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.