I'd really suggest using cfgmaker templates to generate the various Targets.  
This way you will get all-numerical OIDs (so no problems with unrecognised 
short symbolic names) and also the host cfgmaker template in the website probes 
for th existance of the various OIDs before creating the Target definition, so 
you wont get one that doesnt exist.

The cfgmaker documentation tells you the details, but basically you just use
    cfgmaker --host-template=template.htp 
commun...@hostname<mailto:commun...@hostname>
if your monitored host is 'hostname' with snmp community 'community' and the 
host template is called 'template.htp'.  An interface template is similar, 
except that it is run once PER DETECTED INTERFACE rather than just once.

Note that there are some problems with using SNMP -
1. You need to make sure it is enabled
2. You need to make sure the apporpriate sections are enabled - eg with Linux 
you need to have the appropriate lines in the /etc/snmp/snmpd.conf to enable 
disk space checks, load average checks, and so on
3. Different OSs support different parts of the OID tree.  For example, Windows 
and Linux give different places for data, and so do Solaris, Cisco and so on.  
Plus different vendors have vendor-specific extensions which may or may not be 
useful.
4. You need to set up your permissions correctly to allow the monitoring server 
rights to view the OID tree correctly
5. With Windows in particular, the Storage mappings can be re-enumerated on the 
fly if you plug in or remove USB devices.  This can mess up storage graphs done 
via SNMP.  You may be better off with something the like mrtg-storage check 
plugin which uses SNMP but confirms the table has not been re-enumerated.

If you run with the all-hosts host template from 
www.steveshipway.org/cfgmaker<http://www.steveshipway.org/cfgmaker> and it 
doesnt generate any Targets then check your SNMP configuration.

Steve

________________________________
From: [email protected] [[email protected]] On Behalf 
Of Matt Baer [[email protected]]
Sent: Saturday, 26 September 2009 9:58 a.m.
To: mrtg
Subject: [mrtg] CPU and RAM Utiliziation for Windows Machine

I'm having some issues with monitoring the CPU and RAM of a Phenom machine 
running Vista.  I'd like to watch all 4 cores.  I'm sure it's a problem with 
OID.  But don't know what to switch to.  This is what I get in my logs:

SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.4.1.2021.4.6.0)
_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to