From: Buchan M. <bg...@st...> - 2008-04-22 08:13:59
|
On Friday 18 April 2008 17:51:47 Chris Wopat wrote: > Hello, > > I've been trying to get devmon to still log the threshold data for > circuits, but not alarm. I've tried this two different ways, and cannot > get the syntax correct, or there is a bug. I temporarily worked around > this by hard coding the threshold in the template, but that's not the > solution I'd like to stick with. > > ================= > Method/Attempt 1: > > thresh( > cpu;CPUTotal5Min;y:60;r:90, > if_load;ifInLoad;y:200;r:300, > if_load;ifOutLoad;y:200;r:300 > ) > > I've wrapped the lines only to display in this email, in the config they > are not. Yes, I'm attempting to set the threshold >100% because it's > reporting higher for some serial interfaces. The goal is to just never > alarm, but log the data, so I would simply set these numbers as high as > I need to. The above line appears correct to me, and the first threshold > works, but it gets confused on the next two, and shows this on the web > interface: > > Interface error rates: > Input load: yellow=75%, red=95% > Output load: yellow=200if_load;ifInLoad;r:300;y:200%, red=300% > > > ================= > Method/Attempt 2: > > Instead of just changing thresholds, use except() amd attempt to define > the types of interfaces I want to ignore (will be all, but these were > for testing): > > except( > if_load;ifInLoad;na:Se.*|Mu.*, > if_load;ifOutLoad;na:Se.*|Mu.* > ) > > ..And this didnt work either. It is mentioned that except() only works > on the primary name, so I assume that's ifName, which also didn't work. > > Pointers? You did run devmon --readbbhosts (or equivalent) after setting these? Here is an example from my production set-up (two lines total) xxx.xxx.xxx.8 omicron.yyy.yyy # DEVMON:cid(abc),except(if_stat;ifName;na:Gi11/.*|Gi4/.*|AT2/0.*) testip xxx.xxx.xxx.254 kappa.yyy.yyy # DEVMON:model(cisco;asa),cid(xyz),thresh(connects;cur_conn;y:200000;r:300000,cpu;CPUTotal5Min;y:30;r:50) testip Regards, Buchan |