From: Johan K. <joh...@de...> - 2008-07-14 12:38:41
|
>> 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:300 000,cpu;CPUTotal5Min;y:30;r:50) > > testip > > > Regards, > Buchan Hi! I have the _exact_ same problem. I'm trying to set custom thresholds for if_load in a cisco setup. One line works, for instance: thresh(if_load;ifInLoad;y:60;r:80) However, when trying to have two thresholds for the same test (but different object-identifiers) separated by "," I encounter the very same problem as the original poster. thresh(if_load;ifInLoad;y:60;r:80,if_load;ifOutLoad;y:70;r:90) <-- does not work, gets parsed wrongly. I suspect this is a bug indeed. I run devmon v0.3.0 and yes, I've run "devmon -readbbhosts" after the changes. Regards, Johan Karlsson |