Discussion:
[rancid] eliminating noise
Wayne Eisenberg
2014-11-19 23:08:41 UTC
Permalink
Hey all,

Does anyone have any ideas on how we can modify rancid to ignore minor differences in things like fan speed and temperature? See the below:

- ! External Temperature............................. +29 C
+ ! External Temperature............................. +28 C

- ! Fan Status....................................... 3432 rpm
+ ! Fan Status....................................... 3301 rpm

These two items create a lot of noise. The temperature changes by 1 or 2 degrees - very insignificant, but it gets caught by diff. The same with the fan speed. Any character change trips the diff. +/- 10% or greater is a more reasonable change to note. But I don't know how to modify the scripts to do that comparison. Any ideas?

Thanks,
Wayne



________________________________

The information in this Internet e-mail (and any attachments) is confidential, may be legally privileged and is intended solely for the Addressee(s) named above. If you are not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, then any dissemination or copying of this e-mail (and any attachments) is prohibited and may be unlawful. If you received this e-mail in error, please immediately notify us by e-mail or telephone, then delete the message. Thank you.
Frank Bulk
2014-11-19 23:48:10 UTC
Permalink
Just update the relevant script to ignore those lines.



Frank



From: Rancid-discuss [mailto:rancid-discuss-***@shrubbery.net] On Behalf
Of Wayne Eisenberg
Sent: Wednesday, November 19, 2014 5:09 PM
To: 'rancid-***@shrubbery.net'
Subject: [rancid] eliminating noise



Hey all,



Does anyone have any ideas on how we can modify rancid to ignore minor
differences in things like fan speed and temperature? See the below:



- ! External Temperature............................. +29 C

+ ! External Temperature............................. +28 C



- ! Fan Status....................................... 3432 rpm

+ ! Fan Status....................................... 3301 rpm



These two items create a lot of noise. The temperature changes by 1 or 2
degrees - very insignificant, but it gets caught by diff. The same with the
fan speed. Any character change trips the diff. +/- 10% or greater is a more
reasonable change to note. But I don't know how to modify the scripts to do
that comparison. Any ideas?



Thanks,

Wayne







_____


The information in this Internet e-mail (and any attachments) is
confidential, may be legally privileged and is intended solely for the
Addressee(s) named above. If you are not the intended recipient, or the
employee or agent responsible for delivering it to the intended recipient,
then any dissemination or copying of this e-mail (and any attachments) is
prohibited and may be unlawful. If you received this e-mail in error, please
immediately notify us by e-mail or telephone, then delete the message. Thank
you.
Peter Jackson
2014-11-20 04:48:10 UTC
Permalink
Frank,

I believe Wayne would like to keep the command output but only record a
change if the variable differs by a set amount.

So in Wayne's example we want RANCID to record a different temperature only
if it was 10 degrees higher or lower than the last RANCID run.

You wouldn't see this diff:

- ! External Temperature............................. +25 C

+ ! External Temperature............................. +30 C

But you would see this one:

- ! External Temperature............................. +25 C

+ ! External Temperature............................. +35 C

We have removed a lot of command output for just this reason - because it
sends too many diffs to be useful. But having something like what Wayne
suggests would be really nice and we would be able to add those commands
back to RANCID without getting all of the insignificant diffs.

Peter
Post by Frank Bulk
Just update the relevant script to ignore those lines.
Frank
Behalf Of *Wayne Eisenberg
*Sent:* Wednesday, November 19, 2014 5:09 PM
*Subject:* [rancid] eliminating noise
Hey all,
Does anyone have any ideas on how we can modify rancid to ignore minor
- ! External Temperature............................. +29 C
+ ! External Temperature............................. +28 C
- ! Fan Status....................................... 3432 rpm
+ ! Fan Status....................................... 3301 rpm
These two items create a lot of noise. The temperature changes by 1 or 2
degrees – very insignificant, but it gets caught by diff. The same with the
fan speed. Any character change trips the diff. +/- 10% or greater is a
more reasonable change to note. But I don’t know how to modify the scripts
to do that comparison. Any ideas?
Thanks,
Wayne
------------------------------
The information in this Internet e-mail (and any attachments) is
confidential, may be legally privileged and is intended solely for the
Addressee(s) named above. If you are not the intended recipient, or the
employee or agent responsible for delivering it to the intended recipient,
then any dissemination or copying of this e-mail (and any attachments) is
prohibited and may be unlawful. If you received this e-mail in error,
please immediately notify us by e-mail or telephone, then delete the
message. Thank you.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Robert Drake
2014-11-20 06:39:43 UTC
Permalink
What you need is a network monitoring system that supports thresholds.
The problem with doing this with rancid is that you probably don't run
it often enough to see changes when they happen, and you don't know that
when you run it you'll be at an outlying temperature.

Say run #1 happens at 6:00pm and the temperature is 25C, run #2 happens
at 8:00pm and the temperature is 35C. That's perfect, but what happens
if there is an incremental climb through the afternoon and you get 28C,
then 32C, then 35C?
Post by Peter Jackson
Frank,
I believe Wayne would like to keep the command output but only record
a change if the variable differs by a set amount.
So in Wayne's example we want RANCID to record a different temperature
only if it was 10 degrees higher or lower than the last RANCID run.
- ! External Temperature............................. +25 C
+ ! External Temperature............................. +30 C
- ! External Temperature............................. +25 C
+ ! External Temperature............................. +35 C
We have removed a lot of command output for just this reason - because
it sends too many diffs to be useful. But having something like what
Wayne suggests would be really nice and we would be able to add those
commands back to RANCID without getting all of the insignificant diffs.
Peter
Just update the relevant script to ignore those lines.
Frank
*From:* Rancid-discuss
*Wayne Eisenberg
*Sent:* Wednesday, November 19, 2014 5:09 PM
*Subject:* [rancid] eliminating noise
Hey all,
Does anyone have any ideas on how we can modify rancid to ignore
minor differences in things like fan speed and temperature? See
- ! External Temperature............................. +29 C
+ ! External Temperature............................. +28 C
- ! Fan Status....................................... 3432 rpm
+ ! Fan Status....................................... 3301 rpm
These two items create a lot of noise. The temperature changes by
1 or 2 degrees – very insignificant, but it gets caught by diff.
The same with the fan speed. Any character change trips the diff.
+/- 10% or greater is a more reasonable change to note. But I
don’t know how to modify the scripts to do that comparison. Any ideas?
Thanks,
Wayne
------------------------------------------------------------------------
The information in this Internet e-mail (and any attachments) is
confidential, may be legally privileged and is intended solely for
the Addressee(s) named above. If you are not the intended
recipient, or the employee or agent responsible for delivering it
to the intended recipient, then any dissemination or copying of
this e-mail (and any attachments) is prohibited and may be
unlawful. If you received this e-mail in error, please immediately
notify us by e-mail or telephone, then delete the message. Thank you.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Direcpath, LLC
817 West Peachtree St. NW - Suite 750 | Atlanta, GA 30308
2935B Amwiler Rd. | Atlanta,GA 30360
T 866-430-7284 | F 404.961.7060
***@direcpath.com | www.direcpath.com
Alan McKinnon
2014-11-20 07:21:35 UTC
Permalink
Post by Robert Drake
What you need is a network monitoring system that supports thresholds.
The problem with doing this with rancid is that you probably don't run
it often enough to see changes when they happen, and you don't know that
when you run it you'll be at an outlying temperature.
Say run #1 happens at 6:00pm and the temperature is 25C, run #2 happens
at 8:00pm and the temperature is 35C. That's perfect, but what happens
if there is an incremental climb through the afternoon and you get 28C,
then 32C, then 35C?
I fully agree with this statement.

Within the context of rancid, do we really care about things like fan
speed and voltage levels at all? I doubt it very much - rancid is a
state tracker and lets you record changes in configured state over time,
and never forgets it

Fan speed is different, along with many other facts that show up in show
<*>, and just because the OS reports these facts and makes them
available is not a valid reason why rancid should track them.
Post by Robert Drake
Post by Peter Jackson
Frank,
I believe Wayne would like to keep the command output but only record
a change if the variable differs by a set amount.
So in Wayne's example we want RANCID to record a different temperature
only if it was 10 degrees higher or lower than the last RANCID run.
- ! External Temperature............................. +25 C
+ ! External Temperature............................. +30 C
- ! External Temperature............................. +25 C
+ ! External Temperature............................. +35 C
We have removed a lot of command output for just this reason - because
it sends too many diffs to be useful. But having something like what
Wayne suggests would be really nice and we would be able to add those
commands back to RANCID without getting all of the insignificant diffs.
Peter
Just update the relevant script to ignore those lines.
Frank
*From:* Rancid-discuss
*Wayne Eisenberg
*Sent:* Wednesday, November 19, 2014 5:09 PM
*Subject:* [rancid] eliminating noise
Hey all,
Does anyone have any ideas on how we can modify rancid to ignore
minor differences in things like fan speed and temperature? See
- ! External Temperature............................. +29 C
+ ! External Temperature............................. +28 C
- ! Fan Status....................................... 3432 rpm
+ ! Fan Status....................................... 3301 rpm
These two items create a lot of noise. The temperature changes by
1 or 2 degrees – very insignificant, but it gets caught by diff.
The same with the fan speed. Any character change trips the diff.
+/- 10% or greater is a more reasonable change to note. But I
don’t know how to modify the scripts to do that comparison. Any ideas?
Thanks,
Wayne
------------------------------------------------------------------------
The information in this Internet e-mail (and any attachments) is
confidential, may be legally privileged and is intended solely for
the Addressee(s) named above. If you are not the intended
recipient, or the employee or agent responsible for delivering it
to the intended recipient, then any dissemination or copying of
this e-mail (and any attachments) is prohibited and may be
unlawful. If you received this e-mail in error, please immediately
notify us by e-mail or telephone, then delete the message. Thank you.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Direcpath, LLC
817 West Peachtree St. NW - Suite 750 | Atlanta, GA 30308
2935B Amwiler Rd. | Atlanta,GA 30360
T 866-430-7284 | F 404.961.7060
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Alan McKinnon
***@gmail.com
Wayne Eisenberg
2014-11-20 13:59:08 UTC
Permalink
I think if someone needed trending information like what has been brought up, then you get a proper environment monitoring system. However, if you don't have one, a large jump in the value of the fan speed/temp/whatever can be an indirect indicator that something is happening in the environment (or a device hardware failure, like a bad fan if the rpm goes to zero) and deserves a more in-depth observation. Otherwise it's just noise, or you update the script to ignore the line(s) completely. IMHO, that's kind of like taking the battery out of the smoke detector because it chirps too much, rather than changing the battery.

I guess in the end it depends on if the tool is meeting the need you have or not. It's great for state tracking, that's for sure. I wouldn't want to be without it.


-----Original Message-----
From: Rancid-discuss [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Alan McKinnon
Sent: Thursday, November 20, 2014 2:22 AM
To: rancid-***@shrubbery.net
Subject: Re: [rancid] eliminating noise
Post by Robert Drake
What you need is a network monitoring system that supports thresholds.
The problem with doing this with rancid is that you probably don't run
it often enough to see changes when they happen, and you don't know
that when you run it you'll be at an outlying temperature.
Say run #1 happens at 6:00pm and the temperature is 25C, run #2
happens at 8:00pm and the temperature is 35C. That's perfect, but
what happens if there is an incremental climb through the afternoon
and you get 28C, then 32C, then 35C?
I fully agree with this statement.

Within the context of rancid, do we really care about things like fan speed and voltage levels at all? I doubt it very much - rancid is a state tracker and lets you record changes in configured state over time, and never forgets it

Fan speed is different, along with many other facts that show up in show <*>, and just because the OS reports these facts and makes them available is not a valid reason why rancid should track them.
Post by Robert Drake
Post by Peter Jackson
Frank,
I believe Wayne would like to keep the command output but only record
a change if the variable differs by a set amount.
So in Wayne's example we want RANCID to record a different
temperature only if it was 10 degrees higher or lower than the last RANCID run.
- ! External Temperature............................. +25 C
+ ! External Temperature............................. +30 C
- ! External Temperature............................. +25 C
+ ! External Temperature............................. +35 C
We have removed a lot of command output for just this reason -
because it sends too many diffs to be useful. But having something
like what Wayne suggests would be really nice and we would be able to
add those commands back to RANCID without getting all of the insignificant diffs.
Peter
Just update the relevant script to ignore those lines.
Frank
*From:* Rancid-discuss
*Wayne Eisenberg
*Sent:* Wednesday, November 19, 2014 5:09 PM
*Subject:* [rancid] eliminating noise
Hey all,
Does anyone have any ideas on how we can modify rancid to ignore
minor differences in things like fan speed and temperature? See
- ! External Temperature............................. +29 C
+ ! External Temperature............................. +28 C
- ! Fan Status....................................... 3432 rpm
+ ! Fan Status....................................... 3301 rpm
These two items create a lot of noise. The temperature changes by
1 or 2 degrees - very insignificant, but it gets caught by diff.
The same with the fan speed. Any character change trips the diff.
+/- 10% or greater is a more reasonable change to note. But I
don't know how to modify the scripts to do that comparison. Any ideas?
Thanks,
Wayne
---------------------------------------------------------------------
---
The information in this Internet e-mail (and any attachments) is
confidential, may be legally privileged and is intended solely for
the Addressee(s) named above. If you are not the intended
recipient, or the employee or agent responsible for delivering it
to the intended recipient, then any dissemination or copying of
this e-mail (and any attachments) is prohibited and may be
unlawful. If you received this e-mail in error, please immediately
notify us by e-mail or telephone, then delete the message. Thank you.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Direcpath, LLC
817 West Peachtree St. NW - Suite 750 | Atlanta, GA 30308 2935B
Amwiler Rd. | Atlanta,GA 30360 T 866-430-7284 | F 404.961.7060
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Alan McKinnon
***@gmail.com
Hughes, Doug
2014-11-20 21:04:42 UTC
Permalink
As another $.02, I've always thrown out fan speed in the context of rancid. Yes, it belongs in an EMS (event management system). No, it doesn't belong in a configuration management system, because it's not a part of configuration.
(IMHO)

-----Original Message-----
From: Rancid-discuss [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Alan McKinnon
Sent: Thursday, November 20, 2014 2:22 AM
To: rancid-***@shrubbery.net
Subject: Re: [rancid] eliminating noise
Post by Robert Drake
What you need is a network monitoring system that supports thresholds.
The problem with doing this with rancid is that you probably don't run
it often enough to see changes when they happen, and you don't know that
when you run it you'll be at an outlying temperature.
Say run #1 happens at 6:00pm and the temperature is 25C, run #2 happens
at 8:00pm and the temperature is 35C. That's perfect, but what happens
if there is an incremental climb through the afternoon and you get 28C,
then 32C, then 35C?
I fully agree with this statement.

Within the context of rancid, do we really care about things like fan
speed and voltage levels at all? I doubt it very much - rancid is a
state tracker and lets you record changes in configured state over time,
and never forgets it

Fan speed is different, along with many other facts that show up in show
<*>, and just because the OS reports these facts and makes them
available is not a valid reason why rancid should track them.
Post by Robert Drake
Post by Peter Jackson
Frank,
I believe Wayne would like to keep the command output but only record
a change if the variable differs by a set amount.
So in Wayne's example we want RANCID to record a different temperature
only if it was 10 degrees higher or lower than the last RANCID run.
- ! External Temperature............................. +25 C
+ ! External Temperature............................. +30 C
- ! External Temperature............................. +25 C
+ ! External Temperature............................. +35 C
We have removed a lot of command output for just this reason - because
it sends too many diffs to be useful. But having something like what
Wayne suggests would be really nice and we would be able to add those
commands back to RANCID without getting all of the insignificant diffs.
Peter
Just update the relevant script to ignore those lines.
Frank
*From:* Rancid-discuss
*Wayne Eisenberg
*Sent:* Wednesday, November 19, 2014 5:09 PM
*Subject:* [rancid] eliminating noise
Hey all,
Does anyone have any ideas on how we can modify rancid to ignore
minor differences in things like fan speed and temperature? See
- ! External Temperature............................. +29 C
+ ! External Temperature............................. +28 C
- ! Fan Status....................................... 3432 rpm
+ ! Fan Status....................................... 3301 rpm
These two items create a lot of noise. The temperature changes by
1 or 2 degrees - very insignificant, but it gets caught by diff.
The same with the fan speed. Any character change trips the diff.
+/- 10% or greater is a more reasonable change to note. But I
don't know how to modify the scripts to do that comparison. Any ideas?
Thanks,
Wayne
------------------------------------------------------------------------
The information in this Internet e-mail (and any attachments) is
confidential, may be legally privileged and is intended solely for
the Addressee(s) named above. If you are not the intended
recipient, or the employee or agent responsible for delivering it
to the intended recipient, then any dissemination or copying of
this e-mail (and any attachments) is prohibited and may be
unlawful. If you received this e-mail in error, please immediately
notify us by e-mail or telephone, then delete the message. Thank you.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Direcpath, LLC
817 West Peachtree St. NW - Suite 750 | Atlanta, GA 30308
2935B Amwiler Rd. | Atlanta,GA 30360
T 866-430-7284 | F 404.961.7060
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Alan McKinnon
***@gmail.com
Dan Anderson
2014-11-21 03:57:24 UTC
Permalink
I agree. RANCID is great for config management but it's pretty obvious that
it wasn't designed for thresholding applications. In the past I have
leveraged clogin, etc. from within a custom wrapper script to log into
devices and run commands to gather data that I couldn't get via SNMP
(xlates on an ASA per-context, etc.) because it saved me from having to
write my own login routines. Clogin grabbed the raw command output and the
wrapper massaged it into the formant that I wanted and then dumped it into
RRDs or MySQL. Using the CVS/SVN/whatever backend as your database doesn't
scale very well, especially if you want to see a lot of data over time. In
addition, using RANCID to hold all that info inflicts a lot of pain on your
poor inbox if you're having diffs sent via email. After a while, people
start ignoring the email messages and missing important changes when
they're used to a steady stream of fluff.

Since the environmental information is usually available via SNMP, why not
use one of the many decent freely-available systems out there that was
actually designed to do thresholding and alerting? RANCID's great, but it
shouldn't be the only tool in the toolbox.

On Thu, Nov 20, 2014 at 4:04 PM, Hughes, Doug <
Post by Hughes, Doug
As another $.02, I've always thrown out fan speed in the context of
rancid. Yes, it belongs in an EMS (event management system). No, it doesn't
belong in a configuration management system, because it's not a part of
configuration.
(IMHO)
-----Original Message-----
Behalf Of Alan McKinnon
Sent: Thursday, November 20, 2014 2:22 AM
Subject: Re: [rancid] eliminating noise
Post by Robert Drake
What you need is a network monitoring system that supports thresholds.
The problem with doing this with rancid is that you probably don't run
it often enough to see changes when they happen, and you don't know that
when you run it you'll be at an outlying temperature.
Say run #1 happens at 6:00pm and the temperature is 25C, run #2 happens
at 8:00pm and the temperature is 35C. That's perfect, but what happens
if there is an incremental climb through the afternoon and you get 28C,
then 32C, then 35C?
I fully agree with this statement.
Within the context of rancid, do we really care about things like fan
speed and voltage levels at all? I doubt it very much - rancid is a
state tracker and lets you record changes in configured state over time,
and never forgets it
Fan speed is different, along with many other facts that show up in show
<*>, and just because the OS reports these facts and makes them
available is not a valid reason why rancid should track them.
Post by Robert Drake
Post by Peter Jackson
Frank,
I believe Wayne would like to keep the command output but only record
a change if the variable differs by a set amount.
So in Wayne's example we want RANCID to record a different temperature
only if it was 10 degrees higher or lower than the last RANCID run.
- ! External Temperature............................. +25 C
+ ! External Temperature............................. +30 C
- ! External Temperature............................. +25 C
+ ! External Temperature............................. +35 C
We have removed a lot of command output for just this reason - because
it sends too many diffs to be useful. But having something like what
Wayne suggests would be really nice and we would be able to add those
commands back to RANCID without getting all of the insignificant diffs.
Peter
Just update the relevant script to ignore those lines.
Frank
*From:* Rancid-discuss
*Wayne Eisenberg
*Sent:* Wednesday, November 19, 2014 5:09 PM
*Subject:* [rancid] eliminating noise
Hey all,
Does anyone have any ideas on how we can modify rancid to ignore
minor differences in things like fan speed and temperature? See
- ! External Temperature............................. +29 C
+ ! External Temperature............................. +28 C
- ! Fan Status....................................... 3432 rpm
+ ! Fan Status....................................... 3301 rpm
These two items create a lot of noise. The temperature changes by
1 or 2 degrees - very insignificant, but it gets caught by diff.
The same with the fan speed. Any character change trips the diff.
+/- 10% or greater is a more reasonable change to note. But I
don't know how to modify the scripts to do that comparison. Any
ideas?
Post by Robert Drake
Post by Peter Jackson
Thanks,
Wayne
------------------------------------------------------------------------
Post by Robert Drake
Post by Peter Jackson
The information in this Internet e-mail (and any attachments) is
confidential, may be legally privileged and is intended solely for
the Addressee(s) named above. If you are not the intended
recipient, or the employee or agent responsible for delivering it
to the intended recipient, then any dissemination or copying of
this e-mail (and any attachments) is prohibited and may be
unlawful. If you received this e-mail in error, please immediately
notify us by e-mail or telephone, then delete the message. Thank
you.
Post by Robert Drake
Post by Peter Jackson
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Direcpath, LLC
817 West Peachtree St. NW - Suite 750 | Atlanta, GA 30308
2935B Amwiler Rd. | Atlanta,GA 30360
T 866-430-7284 | F 404.961.7060
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Alan McKinnon
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Dan
Frank Bulk
2014-11-21 03:39:42 UTC
Permalink
A poor man’s approach would be to replace the ‘ones’ place with an ‘x’.



Frank



From: Peter Jackson [mailto:***@gmail.com]
Sent: Wednesday, November 19, 2014 10:48 PM
To: Frank Bulk
Cc: Wayne Eisenberg; rancid-***@shrubbery.net
Subject: Re: [rancid] eliminating noise



Frank,

I believe Wayne would like to keep the command output but only record a change if the variable differs by a set amount.

So in Wayne's example we want RANCID to record a different temperature only if it was 10 degrees higher or lower than the last RANCID run.

You wouldn't see this diff:

- ! External Temperature............................. +25 C

+ ! External Temperature............................. +30 C



But you would see this one:

- ! External Temperature............................. +25 C

+ ! External Temperature............................. +35 C



We have removed a lot of command output for just this reason - because it sends too many diffs to be useful. But having something like what Wayne suggests would be really nice and we would be able to add those commands back to RANCID without getting all of the insignificant diffs.

Peter





On Wed, Nov 19, 2014 at 6:48 PM, Frank Bulk <***@iname.com <mailto:***@iname.com> > wrote:

Just update the relevant script to ignore those lines.



Frank



From: Rancid-discuss [mailto:rancid-discuss-***@shrubbery.net <mailto:rancid-discuss-***@shrubbery.net> ] On Behalf Of Wayne Eisenberg
Sent: Wednesday, November 19, 2014 5:09 PM
To: 'rancid-***@shrubbery.net <mailto:rancid-***@shrubbery.net> '
Subject: [rancid] eliminating noise



Hey all,



Does anyone have any ideas on how we can modify rancid to ignore minor differences in things like fan speed and temperature? See the below:



- ! External Temperature............................. +29 C

+ ! External Temperature............................. +28 C



- ! Fan Status....................................... 3432 rpm

+ ! Fan Status....................................... 3301 rpm



These two items create a lot of noise. The temperature changes by 1 or 2 degrees – very insignificant, but it gets caught by diff. The same with the fan speed. Any character change trips the diff. +/- 10% or greater is a more reasonable change to note. But I don’t know how to modify the scripts to do that comparison. Any ideas?



Thanks,

Wayne







_____


The information in this Internet e-mail (and any attachments) is confidential, may be legally privileged and is intended solely for the Addressee(s) named above. If you are not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, then any dissemination or copying of this e-mail (and any attachments) is prohibited and may be unlawful. If you received this e-mail in error, please immediately notify us by e-mail or telephone, then delete the message. Thank you.
Jake Secrist
2014-11-20 00:21:09 UTC
Permalink
I had thought about this a while back but never did anything with it.

I think you would either have to go back over the previous saved version of the config and compare the desired values. Then maybe show the line as something like:

! External Temperature............................. +28 C (+/- 10 C)

OR - pull out the values and store them in a file to be compared to the next RANCID run.

The problem is where to define the starting point. I think using the value from the first RANCID a run would work well. Then all future runs would be compared with that value. If a future RANCID run finds a value that is not within the 'variance' then the new value would become the 'default' value and subsequent RANCID runs would compare to the new value. And so on.

I will try some things and get back to you.
Post by Wayne Eisenberg
Hey all,
- ! External Temperature............................. +29 C
+ ! External Temperature............................. +28 C
- ! Fan Status....................................... 3432 rpm
+ ! Fan Status....................................... 3301 rpm
These two items create a lot of noise. The temperature changes by 1 or 2 degrees – very insignificant, but it gets caught by diff. The same with the fan speed. Any character change trips the diff. +/- 10% or greater is a more reasonable change to note. But I don’t know how to modify the scripts to do that comparison. Any ideas?
Thanks,
Wayne
The information in this Internet e-mail (and any attachments) is confidential, may be legally privileged and is intended solely for the Addressee(s) named above. If you are not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, then any dissemination or copying of this e-mail (and any attachments) is prohibited and may be unlawful. If you received this e-mail in error, please immediately notify us by e-mail or telephone, then delete the message. Thank you.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Robert Drake
2014-11-20 21:30:49 UTC
Permalink
Post by Jake Secrist
I had thought about this a while back but never did anything with it.
I think you would either have to go back over the previous saved
version of the config and compare the desired values. Then maybe show
! External Temperature............................. +28 C (+/- 10 C)
OR - pull out the values and store them in a file to be compared to the next RANCID run.
The problem is where to define the starting point. I think using the
value from the first RANCID a run would work well. Then all future
runs would be compared with that value. If a future RANCID run finds
a value that is not within the 'variance' then the new value would
become the 'default' value and subsequent RANCID runs would compare to
the new value. And so on.
I will try some things and get back to you.
Another alternative is to use some of the tools from rancid to poll for
just these values. par and clogin can be used independently to grab
variables from everywhere, and because you aren't doing a full rancid
run you can decrease the time between collections to 5-10 minutes.

Then you write a simple script to do the comparison and send email if
the threshold triggers.

I still recommend doing this with a true NMS, and polling the values
with SNMP. Logging into the router has some unneeded overhead, and
rolling your own script could be buggy and hard to maintain when you
could have something dedicated to doing this that is maintained by others.
Loading...