[mrtg] Re: CPU utilization

John W. Bankson jbankson at pswlaw.com
Wed Dec 6 16:57:27 MET 2000


	Since multiple people have asked for the config files and OIDs that
I use, I am enclosing an example cfg file to the list so everyone who wants
it can have access to it.  

	I monitor over 30 Compaq servers with my cfg file and it works
great!  I had to use RRDTool in order to get it to work because the memory
utilization calculation results in a non-integer which rateup can't handle,
I use 14All as a front-end for it.  This setup works great, and now I can
just look at one web page to see what the trends for my servers have been.
I monitor four things on my servers with this config file:

	- NIC Utilization
	- CPU Utilization (%)
	- Disk Utilization (%)
	- Memory Utilization (%)

	This has helped me find problems and predict when I need to upgrade
my hardware on my servers (Thanks for a great program Tobi!)

	The OIDs in the cfg file will only work on Compaq servers that have
Insight Manager server management agents installed.  It is also important to
note that different Compaq servers use different NIC cards, so I ran
cfgmaker on each server to obtain the correct NIC cfg for MRTG.  If you want
to know more about the Compaq MIBs there is a MIB directory on the
SmartStart Management CD that has lots of great information.

	The config example is pasted in below and is clean for security
reasons (i.e. I replaced my SNMP community names, my IP addresses, and my
server names).  Hope this helps.

John Bankson

------------------------Begin Cfg file------------------------------

WorkDir: e:\inetpub\monitor\mrtg\plaza_servers


Options[_]: growright, bits
LogFormat: rrdtool

PathAdd: E:\mrtg-2.9.2\bin
PathAdd: E:\rrdtool-1.0.24.x86distr\perl-shared\t
LibAdd: E:\mrtg-2.9.2\bin

######################################################################
# This MRTG Script obtains SNMP data on the NIC, CPU, DIsk Space, 
# Physical Memory, and Total Memory.
#
######################################################################



######################################################################
# System: SERVER1
# Description: Hardware: x86 Family 6 Model 8 Stepping 3 AT/AT COMPATIBLE -
Software: Windows 2000 Version 5.0 (Build 2195 Uniprocessor Free)
# Contact: John W. Bankson
# Location: 
######################################################################


#---------------------------------------------------------------

# Interface 16777219 >> Descr: 'Compaq Ethernet/FastEthernet NIC'
# Ip: 'ipaddress' 
# Eth: '00-02-a5-07-c8-f1' 

Target[SERVER1_NIC]: 16777219:public at ipaddress
MaxBytes[SERVER1_NIC]: 10000000
Options[SERVER1_NIC]: growright, bits
Title[SERVER1_NIC]: SERVER1 - Network Traffic
PageTop[SERVER1_NIC]: <H1>SERVER1 - Network Traffic</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>SERVER1</TD></TR>
   <TR><TD>Maintainer:</TD> <TD><A HREF="mailto:jbankson at pswlaw.com">John W.
Bankson</TD></TR>
   <TR><TD>Description:</TD><TD>Compaq Ethernet/FastEthernet NIC</TD></TR>
   <TR><TD>ifType:</TD>     <TD>Ethernet CSMA/CD</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>100 Mbps</TD></TR>
   <TR><TD>Ip:</TD>         <TD>ipaddress (SERVER1.pswlaw.com)</TD></TR>
 </TABLE>


#---------------------------------------------------------------

#---------------------------------------------------------------

#
# NT Processor Utilization
#


Target[SERVER1_CPU]:
1.3.6.1.4.1.232.11.2.3.1.1.3.0&1.3.6.1.4.1.232.11.2.3.1.1.3.1:public at ipaddre
ss
MaxBytes[SERVER1_CPU]: 100
Title[SERVER1_CPU]: SERVER1 - % CPU Utilization
ShortLegend[SERVER1_CPU]: %
YLegend[SERVER1_CPU]: % Utilization
Unscaled[SERVER1_CPU]: ymwd
WithPeak[SERVER1_CPU]: ymwd
XSize[SERVER1_CPU]: 380
YSize[SERVER1_CPU]: 100
Options[SERVER1_CPU]: growright, gauge
Legend1[SERVER1_CPU]: CPU 1 Utilization in %
Legend2[SERVER1_CPU]: CPU 2 Utilization in %
Legend3[SERVER1_CPU]: 
Legend4[SERVER1_CPU]: 
LegendI[SERVER1_CPU]: &nbsp;Usage:
LegendO[SERVER1_CPU]: &nbsp;Usage:
PageTop[SERVER1_CPU]: <H1>SERVER1 - % CPU Utilization</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>SERVER1</TD></TR>
   <TR><TD>Maintainer:</TD> <TD><A HREF="mailto:jbankson at pswlaw.com">John W.
Bankson</TD></TR>
   <TR><TD>Description:</TD><TD>SERVER1 CPU Ultization</TD></TR>
 </TABLE>

#---------------------------------------------------------------

#
# SERVER1_Disk Utilization
#


Target[SERVER1_Disk]:
1.3.6.1.4.1.232.11.2.4.1.1.5.0&1.3.6.1.4.1.232.11.2.4.1.1.5.1:public at ipaddre
ss
MaxBytes[SERVER1_Disk]: 100
Title[SERVER1_Disk]: SERVER1 - % Disk Space Used
ShortLegend[SERVER1_Disk]: %
YLegend[SERVER1_Disk]: % Disk Space Used
Unscaled[SERVER1_Disk]: ymwd
WithPeak[SERVER1_Disk]: ymwd
XSize[SERVER1_Disk]: 380
YSize[SERVER1_Disk]: 100
Options[SERVER1_Disk]: growright, gauge
Legend1[SERVER1_Disk]: C:
Legend2[SERVER1_Disk]: E:
Legend3[SERVER1_Disk]: 
Legend4[SERVER1_Disk]: 
LegendI[SERVER1_Disk]: &nbsp;C:
LegendO[SERVER1_Disk]: &nbsp;E:
PageTop[SERVER1_Disk]: <H1>SERVER1 Disk Utilization</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>SERVER1</TD></TR>
   <TR><TD>Maintainer:</TD> <TD><A HREF="mailto:jbankson at pswlaw.com">John W.
Bankson</TD></TR>
   <TR><TD>Description:</TD><TD>% SERVER1 Disk Space Used</TD></TR>
 </TABLE>

#---------------------------------------------------------------
#
# Total % Memory Utilization 
#


Target[SERVER1_Total_Mem]: 100 -
1.3.6.1.4.1.232.11.2.13.4.0&1.3.6.1.4.1.232.11.2.13.4.0:public at ipaddress /
1.3.6.1.4.1.232.11.2.13.3.0&1.3.6.1.4.1.232.11.2.13.3.0:public at ipaddress *
100
MaxBytes[SERVER1_Total_Mem]: 100
Title[SERVER1_Total_Mem]: SERVER1 - Total % Memory Utilization
ShortLegend[SERVER1_Total_Mem]: %
YLegend[SERVER1_Total_Mem]: Memory Utilization
Unscaled[SERVER1_Total_Mem]: ymwd
WithPeak[SERVER1_Total_Mem]: ymwd
XSize[SERVER1_Total_Mem]: 380
YSize[SERVER1_Total_Mem]: 100
Options[SERVER1_Total_Mem]: growright, gauge
Legend1[SERVER1_Total_Mem]: % Total Memory Used
Legend2[SERVER1_Total_Mem]: 
Legend3[SERVER1_Total_Mem]: 
Legend4[SERVER1_Total_Mem]: 
LegendI[SERVER1_Total_Mem]:
LegendO[SERVER1_Total_Mem]: &nbsp;Usage:
PageTop[SERVER1_Total_Mem]: <H1>SERVER1 Total Memory Utilization</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>SERVER1</TD></TR>
   <TR><TD>Maintainer:</TD> <TD><A HREF="mailto:jbankson at pswlaw.com">John W.
Bankson</TD></TR>
   <TR><TD>Description:</TD><TD>Total Memory Utilization</TD></TR>
 </TABLE>


-------------------------End Cfg file-------------------------------


-----Original Message-----
From: Dave Jones [mailto:DJones at TheFund.com]
Sent: Wednesday, December 06, 2000 9:08 AM
To: 'John W. Bankson'
Subject: RE: [mrtg] Re: CPU utilization


John,

Would you mind sharing any of your mibs, oid's or config files?  My shop
currently has Compaq servers with Insight Manager, however, we're getting
ready to transition to HP servers.  I would like to go ahead and get a feel
for monitoring the servers before they are changed though.  The things I'm
most interested in are the obvious, CPU, memory, disk, etc.  Let me know
what you think.

Thanks,

Dave

-----Original Message-----
From: John W. Bankson [mailto:jbankson at pswlaw.com]
Sent: Tuesday, December 05, 2000 2:50 PM
To: Schilling Sacha; mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: CPU utilization



Sacha,

	There are known problems with using the Perfmon agent of the SNMP4NT
MIBs, like when you are trying to monitor servers with more than one
processor (I know there are some other problems, but this is the most
discussed).  These options are good and can be a viable solution, however,
there are more accurate methods, depending on your hardware.  If you use
servers from vendors like IBM, Dell, HP, or Compaq they generally have
proprietary MIBs that allow you to more accurately monitor server stats
(Especially since these MIBs are tuned specifically for that type of
hardware).  As an example, I have all Compaq servers and the Insight Manager
MIBs allow me to monitor these without loading any additional MIBs or other
software.   If you use Compaq servers, I have already walked the MIBs and
know the most pertinent OIDS and have the cfg files already done.  Hope this
helps.

John Bankson


-----Original Message-----
From: Marc Bilodeau [mailto:marc at somix.com]
Sent: Tuesday, December 05, 2000 9:39 AM
To: Schilling Sacha; mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: CPU utilization



If you go to http://www.somix.com/software/mrtg/ you can download hundreds
of templates for different devices. This include CPU utilization for NT. The
templates on this site require you to load Microsoft SNMP Perfmon agent that
comes with the Resource Kit. Good luck.

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]On
Behalf Of Schilling Sacha
Sent: Tuesday, December 05, 2000 10:30 AM
To: 'mrtg at list.ee.ethz.ch'
Subject: [mrtg] CPU utilization


We are using NT Servers. We would like to monitor the CPU Utilization on the
server. Does anybody know how to do it? If yes, is there a possibility to
get an example?

thanks
ss


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi


    ----------------------------------------------------------------
    This  electronic mail  message contains CONFIDENTIAL information
    which is (a) ATTORNEY - CLIENT  PRIVILEGED  COMMUNICATION,  WORK
    PRODUCT,  PROPRIETARY IN  NATURE, OR  OTHERWISE PROTECTED BY LAW
    FROM  DISCLOSURE,  and  (b) intended  only for  the  use  of the
    Addressee(s)  named  herein. If you are not an Addressee, or the
    person  responsible for delivering this to an Addressee, you are
    hereby  notified  that  reading,  copying,  or distributing this
    message is prohibited. If you have received this electronic mail
    message  in error, please reply to the sender and take the steps
    necessary  to delete  the message  completely from your computer
    system. Thank you.



--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi


    ----------------------------------------------------------------
    This  electronic mail  message contains CONFIDENTIAL information
    which is (a) ATTORNEY - CLIENT  PRIVILEGED  COMMUNICATION,  WORK
    PRODUCT,  PROPRIETARY IN  NATURE, OR  OTHERWISE PROTECTED BY LAW
    FROM  DISCLOSURE,  and  (b) intended  only for  the  use  of the
    Addressee(s)  named  herein. If you are not an Addressee, or the
    person  responsible for delivering this to an Addressee, you are
    hereby  notified  that  reading,  copying,  or distributing this
    message is prohibited. If you have received this electronic mail
    message  in error, please reply to the sender and take the steps
    necessary  to delete  the message  completely from your computer
    system. Thank you.



--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list