[mrtg] How to setup the mrtg for monitoring more things

Edward Leung edwardspl.mo at gmail.com
Mon Aug 18 07:07:28 CEST 2008


Dear Steve,

After installed and setup the mrtg with the Windows Server machine :
Running :  perl cfgmaker public at xxx.xxx.xxx.xxx --global "WorkDir:
c:\inetpub\mrtg" --output mrtg.cfg
Then the mrtg may be know ( Auto detect ) the snmp port of the Network INT (
Surecom-EP320G-TX-Family-Gigabit-Ethernet-NIC ) is 16777219, but what is the
SNMPOID ?

So, if this is the network traffic usage ( B/s ), then how can I create the
following hardware usage config file also ?
1, CPU
2, HD
3, Ram
4, Network INT

"We use the nsclient agent under windows and the mrtg-pnsclient.pl script to
query it instead of using SNMP" ???

Sorry, would you mind give me more help ?
All of the OS is Windows 2000 Server...

Many thanks for your help !

Edward.

2008/8/18, Steve Shipway <s.shipway at auckland.ac.nz>:

>  1. The port number is probably the default.  The OID depends on what you
> want to monitor: if you want network statistics, then MRTG will do this
> automatically.  The community string should be provided to you by whoever
> configured and maintains SNMP on the device you are monitoring.
>
> 2. Depends on the OS you are monitoring
>
> 2.2, 2.3 these OIDs actually change depending on how many storage devices
> are attached
>
> 2.4 With SNMP, these come in the standard location and MRTG can monitor
> them directly
>
>
>
> We use the nsclient agent under windows and the mrtg-pnsclient.pl script to
> query it instead of using SNMP, its easier and possibly more secure.
>
>
>
> I suggest you concentrate first on making it work with just network
> traffic, and probably on network switches and routers, before trying to
> monitor hosts and other host-related metrics.  These require not only more
> complex configuration to obtain the data but also you have to do other
> additional configuration in the labels etc.
>
>
>
> Try to get it working in the simplest case (network traffic) first before
> trying to do server monitoring
>
>
>
> Also read the MRTG configuration reference on www.mrtg.org for more
> understanding of the Target[] definition.
>
>
>
> Steve
>
>
>   ------------------------------
>
> *From:* Edward Leung [mailto:edwardspl.mo at gmail.com]
> *Sent:* Monday, 18 August 2008 15:38
> *To:* mrtg at lists.oetiker.ch
> *Subject:* Re: [mrtg] How to setup the mrtg for monitoring more things
>
>
>
> Dear You,
>
>
>
> I just installed the mrtg and perl with a Windows Server 2000 machine...
>
>
>
> BUT there is my big problem as the following :
>
>
>
> 1, Would you mind to tell me how can we to find out the SNMP port number,
>
> SNMPOID and read-only SNMP community string of the devices / hardwares ?
>
>
>
> 2, How to setup the mrtg for measuring ( monitoring ) the following
> hardware usage percentage ( Windows OS also )?
>
> 2.1 CPU usage persentage.
>
> 2.2 Hard Disk usage persentage [ Total ( Read / Write ), Read, Write].
>
> 2.3 Ram ( Memory ) usage persentage [ Available MB, Page/sec ].
>
> 2.4 Network INT usage persentage [ Total ( Packets/sec ), Packets
> Received/sec, Packets Sent/sec].
>
>
>
> So, is there the sample config ( CPU, HD, Ram and Network INT ) for
> reference ?
>
>
>
> Many thanks for your help !
>
>
>
> Edward.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20080818/fcfa0d32/attachment.html 


More information about the mrtg mailing list