nv-l

Re: [nv-l] MIB expression does not work correctly

2003-01-09 09:37:26
Subject: Re: [nv-l] MIB expression does not work correctly
From: Matt.Brozowski AT tavve DOT com
To: "Mildeberger, Thorsten" <thorsten.mildeberger AT eds DOT com>
Date: Thu, 9 Jan 2003 09:37:26 -0500

Thorsten


It looks like snmpCollect is treating your expression as a counter...  It's
not clear to me a good workaround for this... You might experiment and see
if you can put the expression in the mib.coerce file.  If that doesn't work
than it seems that a PMR is your only resort... There are really two here..

1.  Why can't Thresholds do less than
2.  How do I coerce the type for a mib variable within an expression...

It is important to note here however that problem number 2 results from a
poorly defined mib rather than an actual problem in NetView...  the dhcp
mib should never have made noAddFree a counter.. it should have been a
gauge to begin with...

I'm not sure the best way to create a PMR except to ask for a mechanism for
thresholding when a counter variable goes below a certain value.  (This
seems contradictory however because counters aren't supposed to decrease.)

Please let me know if you make any progress in this area and let me know if
there is anything else I can help with...

                                                                           
 Matt Brozowski                                         Tavve Software Co. 
 Tavve Software Co.                          One Copley Parkway, Suite 480 
 www.tavve.com                                      Morrisville, NC  27560 
 Matt.Brozowski AT tavve DOT com                                  +1 
919-654-1224 
                                                       fax +1 919-380-7147 
                                                                           





                                                                                
                                
                      "Mildeberger,                                             
                                
                      Thorsten"                  To:       "'Matt.Brozowski AT 
tavve DOT com'"                         
                      <thorsten.mildeberg         <Matt.Brozowski AT tavve DOT 
com>                                    
                      er AT eds DOT com>                cc:                     
                                       
                                                 Subject:  [nv-l] MIB 
expression does not work correctly        
                      01/08/2003 11:43 AM                                       
                                
                                                                                
                                
                                                                                
                                



Hi Matt,
first I would like to thank you for your efforts, that you take to help me.


Unfortunately I it is still not working.

I added the following statement to mib.coerce,

# noAddFree
.1.3.6.1.4.1.311.1.3.2.1.1.3 GAUGE

restarted the snmpCollect daemon and started a new collection for

DhcpNewTest \
" Testing the noAddfree" \
        .1.3.6.1.4.1.311.1.3.2.1.1.3.

but still got no correct values back for some reason. It is still showing
me
that "0.00" value.

output:
Wed Jan 08 15:23:15 2003 : SNMPget(deruesf0019.eur.corp.gm.com
DhcpNewTest.139.96.239.0): 0
Wed Jan 08 15:23:15 2003 : SNMPget(deruesf0019.eur.corp.gm.com
DhcpNewTest.134.46.106.128): 0
Wed Jan 08 15:23:15 2003 : Counter calculation delayed one sample for
expression DhcpNewTest.134.46.107.0 on node deruesf0019.eur.corp.gm.com to
calculate rate of change
Wed Jan 08 15:23:15 2003 : SNMPget(deruesf0019.eur.corp.gm.com
DhcpNewTest.134.46.107.0): counter init/wrap

I´m wondering how the tracefile is covering "counter statements", although
I
changed the MIB variables (noAddFree) data type to GAUGE (in the dhcp.mib
and mib.coerce).

I also tested the following expression...for sure without any success.

DhcpNewTest \
" Testing the noAddfree" \
        .1.3.6.1.4.1.311.1.3.2.1.1.3. \
        100000 *

When doing a collection via the MIB object directly and not using a self
made MIB expression, for sure it is working.

output:
Wed Jan 08 15:00:05 2003 : SNMPget(deruesf0019.eur.corp.gm.com
noAddFree.134.46.205.128): 55
Wed Jan 08 15:00:05 2003 : MIB noAddFree.134.46.206.0 on
deruesf0019.eur.corp.gm.com gave type COUNTER, expect GAUGE (due to
mib.coerce file?)

To be honest I did not really understand your last feedback by saying the
following:

The "." at the end indicates that the expression should be used for each
instance of the mib with that variable...

So DhcpTest.1 uses 1.3.6.1.4.1.311.1.3.2.1.1.3.1
       DhcpTest.2 uses 1.3.6.1.4.1.311.1.3.2.1.1.3.2

As MIB variable 1.3.6.1.4.1.311.1.3.2.1.1.3 is already a leaf in the MIB
tree, does it mean, that the MIB varibale used here does not exist in
reality. I´m confused.

I´m using my MIB expression for ALL instances, i.e. for all the subnets,
that are managed by this DHCP server (deruesf0019).

In my opinion it should work, but it is not. Do you think it is worth to
open a PMR? Many thanks.

best regards,
> Thorsten Mildeberger
>
> EMS Solutions - SMC Tools & Automation
> GOSD - Central Region
> EDS Deutschland GmbH
> Eisenstr. 43
> 65428 Rüsselsheim
> Tel.: +49 (0) 6142 80-3706
> Fax.: +49 (0) 6142 80-3030
> mailto:thorsten.mildeberger AT eds DOT com


-----Ursprüngliche Nachricht-----
Von: Matt.Brozowski AT tavve DOT com [mailto:Matt.Brozowski AT tavve DOT com]
Gesendet: Dienstag, 7. Januar 2003 17:19
An: Mildeberger, Thorsten
Betreff: Re: AW: [nv-l] MIB expression does not work correctly



Thorsten,

      You have the correct idea of changing the mib to be a gauge rather
than a counter... Counters are collected and stored as units/sec rather
than as the actual value... I don't think that changing it in the mib is
the correct way to set it however... Try setting it to a gauge in the
mib.coerce file instead...

I would also try collecting on the noAddFree variable directly in addition
to your expression to see if it is snmpCollect is using the values you
expect as well...

Let me know how it goes...


 Matt Brozowski                                         Tavve Software Co.
 Tavve Software Co.                          One Copley Parkway, Suite 480
 www.tavve.com                                      Morrisville, NC  27560
 Matt.Brozowski AT tavve DOT com                                  +1 
919-654-1224
                                                       fax +1 919-380-7147








                      "Mildeberger,

                      Thorsten"                  To:
nv-l AT lists.tivoli DOT com
                      <thorsten.mildeberg        cc:

                      er AT eds DOT com>                Subject:  AW: [nv-l] MIB
expression does not work correctly


                      01/07/2003 03:35 AM









Hi Matt,

in my opinion this is really a good idea!

I added the mib expression, that in theory should make the trick, but for
some reason I always get back value "100".

This is the expression, that I added:

DhcpTest \
"100 - noAddfree" \
        100 .1.3.6.1.4.1.311.1.3.2.1.1.3. -

The snmpCol.trace file doesn´t show any errors or problems. MIB browser
shows correct values for MIB variable "noAddfree".

As a last test I changed the data type of the mib variable (noAddfree) to
"Integer", "gauge", reloaded the dhcp.mib, restarted the snmpCol daemon,
but
this again had not been of help. I´m using Netview 7.1.2 on Solaris.

Any ideas are pretty welcome. Many thanks.

best regards,
> Thorsten Mildeberger
>
> EMS Solutions - SMC Tools & Automation
> GOSD - Central Region
> EDS Deutschland GmbH
> Eisenstr. 43
> 65428 Rüsselsheim
> Tel.: +49 (0) 6142 80-3706
> Fax.: +49 (0) 6142 80-3030
> mailto:thorsten.mildeberger AT eds DOT com


-----Ursprüngliche Nachricht-----
Von: Matt.Brozowski AT tavve DOT com [mailto:Matt.Brozowski AT tavve DOT com]
Gesendet: Montag, 6. Januar 2003 16:36
An: Mildeberger, Thorsten
Betreff: Re: [nv-l] MIB expression does not work correctly



Thorsten,
      I don't know if this would be simpler but why not try something like
100 - noAddFree and check for Threshold > 98 (this would imply noAddFree <
2) or something equivalent.


 Matt Brozowski                                         Tavve Software Co.
 Tavve Software Co.                          One Copley Parkway, Suite 480
 www.tavve.com                                      Morrisville, NC  27560
 Matt.Brozowski AT tavve DOT com                                  +1 
919-654-1224
                                                       fax +1 919-380-7147








                      "Mildeberger,

                      Thorsten"                  To:
nv-l AT lists.tivoli DOT com
                      <thorsten.mildeberg        cc:

                      er AT eds DOT com>                Subject:  [nv-l] MIB
expression does not work correctly


                      01/03/2003 11:24 AM









Hi all,
sorry for stressing you all up again, but these are really my first
attempts
in the "snmpCollect / mibExpr.conf" area.

I´m working on DHCP monitoring. Therefore I loaded the DHCP.mib and looked
for a way to monitor the amount of "free DHCP addresses". The MIB variable,
that has to be used here best, is named "noAddFree" (number of free
addresses).

problem 1:
is there really no way to use a "less than" operator for specifying
thresholds? I´m lost. All I can see in Netview is this hardcoded "greater
than" symbol. It would be quite easy to compare MIB variable "noAddFree"
against a threshold using a "less than" operator.

problem 2:
I made some testing with a self-made MIB expression. In theory it returns
the amount of DHCP addresses, that are still free. To be able to use the
hardcoded "greater than" operator, the value of this expression is always
negative.

That is the expression:

DhcpStillFree \
"noAddinUse - (noAddFree + noAddinUse)" \
        .1.3.6.1.4.1.311.1.3.2.1.1.2. \
        .1.3.6.1.4.1.311.1.3.2.1.1.3. \
        .1.3.6.1.4.1.311.1.3.2.1.1.2. + -

snmpCollect is gathering data, but for some reason the values shown are
always equal to "0". On the other hand the MIB browser is showing the
correct values for MIB variables "noAddinUse" and "noAddFree", so I´m
wondering a little. Is it also not allowed to use and display negative
thresholds? Hopefully not!

Who can shine some light on me please. Thanks a lot for all your great help
and support!!! I won´t forget it :o)

We are going with Netview 7.1.2.

best regards,
> Thorsten Mildeberger
>
> EMS Solutions - SMC Tools & Automation
> GOSD - Central Region
> EDS Deutschland GmbH
> Eisenstr. 43
> 65428 Rüsselsheim
> Tel.: +49 (0) 6142 80-3706
> Fax.: +49 (0) 6142 80-3030
> mailto:thorsten.mildeberger AT eds DOT com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe AT lists.tivoli DOT com
For additional commands, e-mail: nv-l-help AT lists.tivoli DOT com

*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)





---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe AT lists.tivoli DOT com
For additional commands, e-mail: nv-l-help AT lists.tivoli DOT com

*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)