Garth K. Williams | 1 May 2005 04:21

Re: Monitoring Win2k from FreeBSD

Laurence.  Go to www.snmp-informant.com, and then select support and
knowledge-base, and then choose the new one I put there last night.  You can
download a ZIP of MRTG config files for Windows 2000 for use with SNMP
Informant.  You'll just have to change the OIDs, since the config files in
the zip are based on the Advanced version and not the Standard version which
is what you are using.

The real issue is that your CPU target[]: line needs 2 OID strings, not one.

Target[XYZ]: OID1&OID2:SNMP_community <at> IP_Address

Make OID1 and OID2 the same, or set one to % Privileged Time and the other
to % User Time.  That's what I do!

Garth

-----Original Message-----
From: mrtg-bounce <at> list.ee.ethz.ch [mailto:mrtg-bounce <at> list.ee.ethz.ch] On
Behalf Of Laurence Sanford
Sent: Saturday, April 30, 2005 3:21 PM
To: mrtg <at> list.ee.ethz.ch
Subject: [mrtg] Monitoring Win2k from FreeBSD

I would like to monitor at least the CPU load on a pair of win2k 
computers I have on my network. I am already monitoring traffic from 
both. I have looked high and low, and tried a multitude of mibs to get 
this information from the win boxes via SNMP, but been unsuccessful so 
far. While I can snmpbulkwalk from FreeBSD with this command and get 
results:

(Continue reading)

Koelstra, J. (Jan | 2 May 2005 09:52
Picon

Re: Monitoring Win2k from FreeBSD


Hi Laurence,

Two additions:
First:
Your bulkwalk returns ...9600.1.1.5.1.5.1.48
It seems in your config you have lost the .48

Second:
Graphing a percentage requires 'Gauge' at the options line. If not MRTG will compute the rate per second
which will result in only zero's in the graphs.

Hth,

Jan.

-----Original Message-----
From: mrtg-bounce <at> list.ee.ethz.ch [mailto:mrtg-bounce <at> list.ee.ethz.ch] On Behalf Of Garth K. Williams
Sent: Sunday, May 01, 2005 4:22 AM
To: 'Laurence Sanford'; mrtg <at> list.ee.ethz.ch
Subject: [mrtg] Re: Monitoring Win2k from FreeBSD

Laurence.  Go to www.snmp-informant.com, and then select support and knowledge-base, and then choose the
new one I put there last night.  You can download a ZIP of MRTG config files for Windows 2000 for use with SNMP
Informant.  You'll just have to change the OIDs, since the config files in the zip are based on the Advanced
version and not the Standard version which is what you are using.

The real issue is that your CPU target[]: line needs 2 OID strings, not one.

Target[XYZ]: OID1&OID2:SNMP_community <at> IP_Address
(Continue reading)

Eric Brander | 2 May 2005 14:26
Favicon

Re: Monitoring Win2k from FreeBSD

Laurence Sanford wrote:

>
>#Target[192.168.1.3_hrProcessorLoad.1]: 
>1.3.6.1.4.1.9600.1.1.5.1.5:public <at> 192.168.1.3:::::1
>  
>
In addition to the other good responses on this forum, one more very 
important part would be that you MUST have 2 items on the target line 
when polling by OID.  Easiest thing to do would be to poll the same OID 
twice and use the NOO or NOI option. 

Target[xyz]: OID&OID:SNMPComString <at> IPAddress

HTH,

Eric Brander

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

TSimons | 2 May 2005 14:52

Can you Multiply "In" but not "Out" values?

<resending with a different subject>
Sent: Thursday, April 21, 2005 2:03 PM
Subject: [mrtg] Math Functions

Hello All

I'm monitoring Temperature and Humidity from an APC Device with the
following Target:

Target[APCEMU1_Probe1]:
.1.3.6.1.4.1.318.1.1.2.1.1.0&.1.3.6.1.4.1.318.1.1.2.1.2.0:dti <at> 10.192.1.191

.1.3.6.1.4.1.318.1.1.2.1.1.0 is temperature in Celsius
.1.3.6.1.4.1.318.1.1.2.1.2.0 is humidity in %

Is there anyway I can incorporate the function for Celsius to Fahrenheit (*
1.8 + 32) into the temperature and not humidity?

I can convert it if I use Temp for In/Out, but I'd like a combined graph.

Thanks,
~Todd

__________________________________
Todd M. Simons
Senior MIS Engineer
Dell Tier 1 PA Technician 
Delphi Technology, Inc.
New Brunswick, NJ

(Continue reading)

Eric Brander | 2 May 2005 14:59
Favicon

Re: Can you Multiply "In" but not "Out" values?

TSimons <at> Delphi-Tech.com wrote:

>Is there anyway I can incorporate the function for Celsius to Fahrenheit (*
>1.8 + 32) into the temperature and not humidity?
>
>  
>
No -  any math done on the target line will get applied to both values. 
You would have to do it in an external script if you need to have both 
on one graph.

Regards,

Eric Brander

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

Koelstra, J. (Jan | 2 May 2005 15:15
Picon

Re: Can you Multiply "In" but not "Out" values?


Todd,

In theory you can combine both oid's in a mathemetical expression which will give the desired result. To get
this you need to find 4 oid's that give constant values:
oid A, should allways return the value 1.8
oid B, should allways return the value 1
oid C, should allways return the value 32
oid D, should allways return the value 0

With these you can put the following mathemetical expression into your targetline:
"oid for temperature"&"oid for humidity" * "oid A"&"oid B" + "oid C"&"oid D"

If you can't find the 4 oid's with the needed values you have to use an external script.

HTH,

Jan.

-----Original Message-----
From: mrtg-bounce <at> list.ee.ethz.ch [mailto:mrtg-bounce <at> list.ee.ethz.ch] On Behalf Of TSimons <at> Delphi-Tech.com
Sent: Monday, May 02, 2005 2:53 PM
To: mrtg <at> list.ee.ethz.ch
Subject: [mrtg] Can you Multiply "In" but not "Out" values?

<resending with a different subject>
Sent: Thursday, April 21, 2005 2:03 PM
Subject: [mrtg] Math Functions

Hello All
(Continue reading)

Josh | 4 May 2005 14:55
Picon
Favicon

APC Environmental Monitor

Has anyone had any success with graphing the Temp/RH
on the APC Environmental Monitoring Unit (AP9319)? 
Here's a better description of the model:
http://www.apc.com/products/family/index.cfm?id=47

I've done an snmpwalk on the thing and can't find
anything providing the temp or RH.

If anyone has accomplished this on this unit can you
post (or send me) a sample configuration file?  I've
seen a lot of posts on getting this information from
APC UPS's but not specifically this Environmental
Monitoring Unit.

If you need any more details I can provide them. 
Thanks.

-Josh

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

(Continue reading)

Yogi Yeager | 4 May 2005 15:26

Re: APC Environmental Monitor

You will need perl

######################################################################
# System: APC Environmental Monitor
# Description: 
######################################################################
Target[apc.temp]: `perl c:\mrtg\bin\gettemp.pl 100.100.100.100 SNMPCommunity`
#Target[apc.temp]:
1.3.6.1.4.1.318.1.1.2.1.1.0&1.3.6.1.4.1.318.1.1.2.1.2.0:SNMPCommunity <at> 100.100.100.100 
Directory[apc.temp]: APC.Temp
MaxBytes[apc.temp]: 100
unscaled[apc.temp]: dwmy
options[apc.temp]: noinfo, gauge, unknaszero, nobanner, nopercent, printrouter, pngdate
Title[apc.temp]: NOC Temperature & Humidity
PageTop[apc.temp]: NOC Temperature & Humidity</H1>
YLegend[apc.temp]: % Hum / Deg F
ShortLegend[apc.temp]: . 
Legend1[apc.temp]: % Relative Humidity
Legend2[apc.temp]: Temperature in ºF
Legend3[apc.temp]: Maximal 5 Minute Humidity
Legend4[apc.temp]: Maximal 5 Minute Temperature
LegendI[apc.temp]: NOC Humidity %
LegendO[apc.temp]: NOC Temp in ºF 

Here is the gettemp.pl script

use BER;
use SNMP_Session;

$host = $ARGV[0];
(Continue reading)

Josh | 4 May 2005 17:56
Picon
Favicon

Re: APC Environmental Monitor

Thanks Yogi.  This is exactly what I was looking for.

-Josh

--- Yogi Yeager <Yogi <at> BearTech.com> wrote:

> You will need perl
> 
>
######################################################################
> # System: APC Environmental Monitor
> # Description: 
>
######################################################################
> Target[apc.temp]: `perl c:\mrtg\bin\gettemp.pl
> 100.100.100.100 SNMPCommunity`
> #Target[apc.temp]:
>
1.3.6.1.4.1.318.1.1.2.1.1.0&1.3.6.1.4.1.318.1.1.2.1.2.0:SNMPCommunity <at> 100.100.100.100
> 
> Directory[apc.temp]: APC.Temp
> MaxBytes[apc.temp]: 100
> unscaled[apc.temp]: dwmy
> options[apc.temp]: noinfo, gauge, unknaszero,
> nobanner, nopercent, printrouter, pngdate
> Title[apc.temp]: NOC Temperature & Humidity
> PageTop[apc.temp]: NOC Temperature & Humidity</H1>
> YLegend[apc.temp]: % Hum / Deg F
> ShortLegend[apc.temp]: . 
> Legend1[apc.temp]: % Relative Humidity
(Continue reading)

Steve Bonds | 4 May 2005 22:29
Picon
Favicon

cfgmaker and multiple IPs per interface

MRTG Folks:

When running cfgmaker 2.11.1 against some of our UNIX hosts with
virtual IPs (e.g. multiple IPs per physical interface) the IP that is
chosen as the interface IP isn't the non-virtual IP but is chosen at
random from the set of IPs on that interface.  This wouldn't be a
problem except that the VIPs move around from host to host, breaking
the resulting MRTG graphs.

I dug through the code for cfgmaker and the problem is that the IP is
chosen from the %confcache hash, which scrambles the order in which
they were returned by SNMP.  On our hosts the first IP returned for a
given interface instance seems to correspond to the non-virtual IP.

Unfortunately, in order to correct the problem some potentially
invasive changes would need to be made to MRTG_lib.pm.

I suggest adding a key to the %confcache hash which stores the first
IP returned for each interface (e.g.
%confcache{hostinfo}{'FirstIp'}{<interface instance>} = <ip address>) 
The cfgmaker script could then use this as the interface IP instead of
taking the last one returned from the %confcache iteration.

What do you all think?  Is there a better/easier way?

  -- Steve

--
Unsubscribe mailto:mrtg-request <at> list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
(Continue reading)


Gmane