SUMMARY: CPU monitoring script with MRTG
From: sridhara pk (sridharapk_at_rediffmail.com)
Date: 12/15/03
- Previous message: David Stapleton: "sudo version 1.6.7p5 : using -H -u options on Solaris 8"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 15 Dec 2003 16:08:30 -0000 To: sunmanagers@sunmanagers.org
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
- Previous message: David Stapleton: "sudo version 1.6.7p5 : using -H -u options on Solaris 8"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|