itconsultant8 | 8 May 2009 03:46
Picon

how to monitor threshholds for AND two data sources

all,

if I have two data sources, ds0, ds1, I want only send event or email with this relationship:

(ds0> 20) And (ds1 > 100) 

I did not find a way. All monitor-threshholds are OR relationship.

Please help me,
thanks. 
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
Wu, Kenny | 8 May 2009 04:10
Picon
Favicon

Is Cricket Monitor Threshold workable for "And" condition?

Dear all,

I understand that Cricket can be configured with Monitor Thresholds to
provide extra functionality of alerting. And there is a detailed
description at this UR =>
http://cricket.sourceforge.net/support/doc/monitor-thresholds.html .
However it seems to me each threshold is only for one condition.

I now have a task of sending out an alarm when two conditions are both
met. Is it possible to configure this "And" logic in Cricket Monitor
Thresholds?

Any input is highly appreciated.

Thanks

Kenny Wu  

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
Oliver Landsmann | 8 May 2009 14:33
Picon

Re: Is Cricket Monitor Threshold workable for "And" condition?

Hi,

Just have a look at the Monitor.pm file in the lib directory.  Create a 
new monitor by using the two existing ones as example:

-> monValue -> that will show you how to compare a value
-> monRelation -> that will tell you how to work with more then one ds

name it something like: monDualCondition and register it as a monitor:

  $Common::global::gMonitorTable{'dualcondition'} = \&monDualCondition;

Then you could use something like that in cricket config, assuming that 
you programmed the monitor part accordingly:

   "DS_A : dualcondition : n : 10 : DS_B : n : 12 : SNMP"

It will take some work but it is not impossible.

Br,
  Oliver

Wu, Kenny wrote:
> Dear all,
>
>  
>
> I understand that Cricket can be configured with Monitor Thresholds to
> provide extra functionality of alerting. And there is a detailed
> description at this UR =>
(Continue reading)

Wu, Kenny | 11 May 2009 10:55
Picon
Favicon

Re: Is Cricket Monitor Threshold workable for "And" condition?

Mr Landsmann,

Thank you so much for leading me to the right direction!

It really could be worked out by adding some codes into Monitor.pm as
you explained previously.

Thanks again!

Kenny

-----Original Message-----
From: Oliver Landsmann [mailto:oliver <at> landsmann.priv.at] 
Sent: Friday, May 08, 2009 8:34 PM
To: Wu, Kenny
Cc: cricket-users <at> lists.sourceforge.net
Subject: Re: [cricket-users] Is Cricket Monitor Threshold workable for
"And" condition?

Hi,

Just have a look at the Monitor.pm file in the lib directory.  Create a 
new monitor by using the two existing ones as example:

-> monValue -> that will show you how to compare a value
-> monRelation -> that will tell you how to work with more then one ds

name it something like: monDualCondition and register it as a monitor:

  $Common::global::gMonitorTable{'dualcondition'} = \&monDualCondition;
(Continue reading)

John Hutchinson | 15 May 2009 16:40

negative value for a db

I am trying to monitor a radio that returns a db reading in a negative 
number can someone help me in how to tell cricket collector to multiply 
the number by -1 before  passing it to rrd so that it can be shown on 
the graph?

here is a copy of my default config.

Target  --default--
   inst        =   %suid%
   snmp-community    =   XXXXXX
   snmp-host   =   %ap%
   target-type =   Subscriber-Unit

# OID's we'll be using in this tree
OID     ifInOctets     1.3.6.1.4.1.5454.1.20.3.6.1.22
OID     ifOutOctets    1.3.6.1.4.1.5454.1.20.3.6.1.23
OID     RSSIfrAP        1.3.6.1.4.1.5454.1.20.3.6.1.16

datasource  ifInOctets     ds-source   =   snmp://%snmp%/ifInOctets.%inst%
datasource  ifOutOctets    ds-source   =   snmp://%snmp%/ifOutOctets.%inst%
datasource  RSSIfrAP
       ds-source   =  snmp://%snmp%/RSSIfrAP.%inst%
       rrd-ds-type =   ABSOLUTE
       rrd-min         =   undef
       rrd-max         =   undef

targetType  Subscriber-Unit
   ds  =   "ifInOctets, ifOutOctets, RSSIfrAP"
   view    =   "Octets: ifInOctets ifOutOctets,
                RSSI:  RSSIfrAP"
(Continue reading)

Michael Tiarnaigh | 15 May 2009 18:09
Picon

Re: negative value for a db

Oops! I meant to reply to the entire list on this one in case others
come across the same issue and this may be of help. I replied only to
John originally by mistake. :-) Below is my response.

Hi John.
 I actually ran into a similar issue recently enough when trying to
monitor some of our transmission links across our network. I wanted to
graph RSL-Fade margins values on some of our links whose values were
returned as negative integer values. The solution was simple as it
turned out (After a bit of digging in the RrdTool docs of course). 

All you have to do is set the "rrd-min" value when you first define your
data sources to be a negative value (In my case, I set the rrd-min as
-256, and the rrd-max as 50. You can change this as needed). For
instance, here's how I defined my data source for RSL values:

target  --default--
        snmp-community  =       ######   (Use correct string here of
course)
        snmp-host       =       %auto-target-name%
        target-type     =       ######	(Likewise)

datasource      --default--
        rrd-ds-type     =       GAUGE
        rrd-heartbeat   =       1800
        rrd-poll-interval =     600

datasource rsl
        ds-source       =
exec::"/usr/local/cricket/cricket/util/Transmission/getRsl.sh
(Continue reading)

John Hutchinson | 15 May 2009 18:32

Re: negative value for a db

i put this in my default and now i am getting .74 for a -74

John

Chris Adams wrote:
> Once upon a time, John Hutchinson <john <at> upnorth.net> said:
>   
>> I am trying to monitor a radio that returns a db reading in a negative 
>> number can someone help me in how to tell cricket collector to multiply 
>> the number by -1 before  passing it to rrd so that it can be shown on 
>> the graph?
>>     
>
> You can't really modify the number before it is stored, but you can
> modify it before graphing.  For the datasource, you should have an entry
> in the graph dictionary, and you can specify operations there like:
>
> graph	RSSIfrAP
> 	scale	= -1,*
>
> The "scale" entry is an RPN operation to apply to the data before
> graphing.
>
> If you really want to have a modified value stored, I think the only way
> currently to do that is to store the unmodified value and then make a
> COMPUTE datasource that does the modification (but that's overly
> complicated for what you are doing).
>
>   

(Continue reading)

John Hutchinson | 15 May 2009 19:09

Re: negative value for a db

Nevermind my last post i had the wrong rrd-ds-type
Thanks everyone for the help it looks like it works now
John

John Hutchinson wrote:
> i put this in my default and now i am getting .74 for a -74
>
> John
>
> Chris Adams wrote:
>> Once upon a time, John Hutchinson <john <at> upnorth.net> said:
>>  
>>> I am trying to monitor a radio that returns a db reading in a 
>>> negative number can someone help me in how to tell cricket collector 
>>> to multiply the number by -1 before  passing it to rrd so that it 
>>> can be shown on the graph?
>>>     
>>
>> You can't really modify the number before it is stored, but you can
>> modify it before graphing.  For the datasource, you should have an entry
>> in the graph dictionary, and you can specify operations there like:
>>
>> graph    RSSIfrAP
>>     scale    = -1,*
>>
>> The "scale" entry is an RPN operation to apply to the data before
>> graphing.
>>
>> If you really want to have a modified value stored, I think the only way
>> currently to do that is to store the unmodified value and then make a
(Continue reading)

Sam Hooker | 18 May 2009 17:48

Hi there,

Thanks to the folks that maintain the Cricket documentation: it's quite helpful. I was running through
"Installing Cricket for the Complete Beginner" today, and noted a few grammatical errors, along with a
little formatting inconsistency that might make it tough for someone who's a newbie sysadmin (as opposed
to just a newbie Cricket users) to grok. I've attached a patch with some proposed changes that 1)
straighten up some apparent typos and 2) try to make the "text decoration" style a little more
internally-consistent. (I attempted to follow the standard used by O'Reilly and other publishers of
technical books, to achieve more "newbie-friendliness" through familiarity.)

While I tried to steer clear of "editorializing" about style, tone, and voice (which I found to be generally
good), the patch also includes some small changes in construction, aimed at clarifying a few minor
awkwardnesses and increasing encouragement of The Serious Newb(tm). ;-) My feelings will be unhurt if
these are rejected.

Finally, I disclaim any warranty of perfection, as 1) I'm human, and 2) I did this during a very short break at
work. Thanks to the Cricket team and community for maintaining a great tool!

Cheers,

-sth

sam hooker|sth <at> noiseplant.com|http://www.noiseplant.com

	Are you satisfied? ([y]/n):

------------------------------------------------------------------------------
(Continue reading)

Sam Hooker | 18 May 2009 19:59

Sorry for any confusion caused by my last post, which appears to have arrive w/o its attachment. There
should be two files attached to this one: a text file in "diff -Naur" format, and an HTML file. 

Cheers,

-sth

sam hooker|sth <at> noiseplant.com|http://www.noiseplant.com

	Are you satisfied? ([y]/n):

----- "Timothy Rand" <randt <at> ohsu.edu> wrote:

> Yes, although it would not open by just clicking on it.   I had to
> tell Windows XP to use firefox to view it.    XP is probably confused
> by the name of the attachment "beginner.html.patch"
> 
> 
> -----Original Message-----
> From: Sam Hooker [mailto:sth <at> noiseplant.com] 
> Sent: Monday, May 18, 2009 10:24 AM
> To: Timothy Rand
> Subject: Re: [cricket-users] "Installing Cricket for the Complete
> Beginner" documentation patch :-)
> 
> 
> Hi Tim,
> 
> Thanks for letting me know. I'll try w/o the GPG signature. Can you
(Continue reading)


Gmane