[rancid] persistent alerts - but nothing was changed ... ?

Matthew J Wilson mwilson at northwestern.edu
Wed Jul 24 11:22:54 UTC 2013


On 7/22/13 8:10 PM, "Wilkinson, Alex" <alex.wilkinson at cba.com.au> wrote:
>   Index: configs/nexus7k
>   ===================================================================
>   - -- configs/nexus7k       (revision 380)
>   @@ -299,10 +299,10 @@
>     !Env: Xb3      N7K-C7010-FAB-1               60 W    Powered-Up
>     !Env: Xb4      xbar                          60 W    Absent
>     !Env: Xb5      xbar                          60 W    Absent
>   - !Env: fan1     N7K-C7010-FAN-S                     720 W
>Powered-Up
>   - !Env: fan2     N7K-C7010-FAN-S                     720 W
>Powered-Up
>   - !Env: fan3     N7K-C7010-FAN-F                      120 W
>Powered-Up
>   - !Env: fan4     N7K-C7010-FAN-F                      120 W
>Powered-Up
>   + !Env: fan1     N7K-C7010-FAN-S                    720 W    Powered-Up
>   + !Env: fan2     N7K-C7010-FAN-S                    720 W    Powered-Up
>   + !Env: fan3     N7K-C7010-FAN-F                     120 W
>Powered-Up
>   + !Env: fan4     N7K-C7010-FAN-F                     120 W
>Powered-Up
>     !Env: N/A - Per module power not available
>     !Env: Power Usage Summary:
>     !Env: --------------------
>
>So I get this alert all day because of white space changes. Is there
>anyway to stop/ignore this ?


We ran into this as well.  Would a patch to the nxrancid script like the
following work for you?

-Matt



Index: nxrancid
===================================================================
--- nxrancid	(revision 852)
+++ nxrancid	(revision 853)
@@ -372,7 +372,7 @@
 	s/        Draw /  /;
 	s/ ----------- /  /;
 	s/        N\/A  /  / ||
-	s/ \d+ W /  /;		# Does not chop enough to line up.
+	s/ (\d+) W    /" " x length($1)/e;		# Replace with same length
 
 	/actual draw/ && next;	# Drop changing total power output.
 




More information about the Rancid-discuss mailing list