SUMMARY: CPU monitoring script with MRTG

From: sridhara pk <sridharapk_at_rediffmail.com>
Date: Mon Dec 15 2003 - 11:15:04 EST
Hello Managers,
Here is the script which I was ultimately was able to find out
from my linux collegue

##########Starting of the script#########
#!/bin/sh
#
first the load 5 and 15 min avg
# multiply * 100 to avoid floats
# it helps if
mrtg "period" is a multiple of 5 mins
uptime | sed -e 's/^.*average.*:
\(.*\)$/\1/' -e 's/ //g' |
awk -F, '{ printf("%.0f\n",$2*100);
printf("%.0f\n",$3*100) }'
# the uptime
uptime | sed 's:^.* up \(.*\),
[0-9][0-9]* users.*$:\1:'
# my name
uname -n
##########End of
Script##################

Regards

Sridhara

On Mon, 15 Dec 2003 sridhara  pk
wrote :
>Hello Managers,
>can somebody send me a script to monitor CPU
utilization usig
>MRTG
>
>Thanks in advance
>Sridhara
>_______________________________________________
>sunmanagers mailing list
>sunmanagers@sunmanagers.org
>http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Dec 15 11:14:58 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:25 EST