[rrd-users] Problem with CPU load
John Oliver
joliver at john-oliver.net
Thu May 18 01:28:32 MEST 2006
I'm using mrtg-2.10.15-1 and rrdtool-1.0.49 (I tried rrdtool-1.2.13 but
it always complained about not being able to find RRDs.pm and all the
answers I found said to use an older version...) I'm using this script:
#!/bin/ash
/usr/bin/uptime | /bin/sed -e "s/.*load.*://g" | /bin/cut -d ',' -f 1,3
| /usr/bin/tr -d '.' | /usr/bin/tr ',' '\n' ; /usr/bin/uptime | /bin/sed
-e "s/, load.*$//g" ; echo "Prelude 1min/15min Load, Users"
I put that in xinetd, and can telnet to a port on various servers and
get uptime info.
But, the rrdtool page (generated by routers2.cgi v2.16) always says 192
for Current, Avg, and Max
Here's my conf file
WorkDir: /var/www/html/
Interval: 1
LogFormat: rrdtool
PathAdd: /usr/local/rrdtool/bin/
LibAdd: /usr/local/src/rrdtool/perl-shared/
Target[obrien-load]: `telnet 192.168.101.11 18888`
MaxBytes[obrien-load]: 32000
AbsMax[obrien-load]: 64000
Options[obrien-load]: growright, gauge, nopercent, integer
# XSize[obrien-load]: 360
# Ysize[obrien-load]: 75
Title[obrien-load]: Load on obrien
PageTop[obrien-load]: <H1>Load on obrien</H1>
YLegend[obrien-load]: Load average
ShortLegend[obrien-load]: load avg.
Colours[obrien-load]: YELLOW#F9C000,RED#F90000,DARK
GREEN#006600,VIOLET#FF00FF
Legend1[obrien-load]: 1 minute load average
Legend2[obrien-load]: 15 minute load average
[root at newhost3 etc]# telnet 192.168.101.11 18888
Trying 192.168.101.11...
Connected to 192.168.101.11 (192.168.101.11).
Escape character is '^]'.
000
000
17:18:44 up 12 days, 17:39, 0 users, load average: 0.00, 0.03, 0.00
Prelude 1min/15min Load, Users
Connection closed by foreign host.
--
***********************************************************************
* John Oliver http://www.john-oliver.net/ *
* *
***********************************************************************
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/rrd-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the rrd-users
mailing list