SUMMARY: Solaris 8/9 monitoring with MRTG

From: Pete <pete_at_peteland.org>
Date: Wed Mar 26 2003 - 09:14:08 EST
First off, thanks to all that replied, especially Roy Rapoport
who gave me help with scripts.  Several people suggested Big Brother, but
I don't have the budget for that (Rick Waegner, Bertrand).  Others
suggested Cacti (Mika Tuupola)

I got it working with MRTG.  First, you need a file with this command in
it:

uptime | sed 's/,//g' | awk ' { printf "%s\n%s\n%s days, %s
hours\n%s\n",$10*100,$11*100,$3,$5,"dng-yeager"}'

Edit the 'dng-yeager' to reflect your local hostname


Then, for the mrtg config, you need this:

#  to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

WorkDir: /var/www/html/admin/graphs
Title[load]: mapper CPU load
PageTop[load]: <H1>mapper CPU load</H1>
Target[load]: `/export/home/peterf/scripts/load`
Options[load]: gauge,absolute,integer,growright
MaxBytes[load]: 100
YLegend[load]: percent
ShortLegend[load]: %
LegendI[load]: &nbsp;% of processor:


Edit the Target line to point to the command file you created above.  Edit
the Title, workDir, and Pagetop.

Then, run this command a couple time:

/usr/local/mrtg-2/bin/mrtg /usr/local/mrtg-2/lib/mrtg-load.cfg

to created the logs and then add it your crontab like so:

0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/mrtg-2/bin/mrtg
/usr/local/mrtg-2/lib/mrtg-load.cfg


And, that's it.  Works GREAT.

Thanks again to all who replied.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Mar 26 09:18:18 2003

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