|
lug-bg: CPU monitoring + MRTG
- Subject: lug-bg: CPU monitoring + MRTG
- From: lug-bg@email.domain.hidden (Tosho Yankov)
- Date: Thu, 24 Apr 2003 16:01:42 +0300
Zdraveite,
znachi ot edna godina izpolzvam slednoto za da sledq (risuvam s MRTG)
natovarvaneto na processora si:
#!/bin/bash
alabala=`cat /proc/loadavg|awk 'BEGIN{FS=" "}{print $2}'|cut -d "." -f 2`
echo $alabala
echo 0
naskoro iskah da obiram ot remote mashina sytoto .. no kolko ozadachen
ostanah kato vidah tova :
cat /proc/loadavg
1.47 1.18 1.14 2/60 32171
nali nqma kak da e na 118% natovarvane .. i stignah do izvoda che cqla
godina (che i poveche vsystnost sym vijdal edno nisto) ..
ta misylta mi e kyde da vidq tekustoto natovarvane na processora za da
moga da go podavam kym MRTG-to
P.S. Varianti s snmpd ne mi vyrshat rabota.
<p>
--
Best regards,
Tosho mailto:lug-bg_at_campus-bg.com
============================================================================
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
============================================================================
|
|
|