From: Buchan M. <bg...@st...> - 2008-10-27 16:45:06
|
On Tuesday 16 September 2008 15:49:13 Thomas Kähn wrote: > Hi, > > I've got problems specifying individual thresh() parameter in bb-hosts. > > The documentation says to configure the thresholds using equal signs > and the example uses colons. The example is the correct one (colons). > However neither works for multiple > thresholds. > > E.g. the following doesn't work and returns errors like: > > # ./devmon --readbbhosts > Use of uninitialized value in hash element at > /mnt/local/usr_local/devmon/modules/dm_config.pm line 1939, <HOSTS> line > 40. > > > thresh(temp;chassisTempTop;y:52,temp;chassisTempTop;y:52;r:55) > > thresh(temp;chassisTempTop;y:52,temp;chassisTempTop;y:52) > > > When looking at the generated web status report the threshold > for chassisTempTop is reported as "52temp". > Can you try the attached patch, and re-read your bb-hosts file? It seems to work correctly here. I tested with: DEVMON:thresh(cpu;CPUTotal5Min;y:60;r:90,if_load;ifInLoad;y:100;r:101,if_load;ifOutLoad;y:100;r:101) And the correct load thresholds showed on the if_load test: Interface error rates: Input load: yellow=100%, red=101% Output load: yellow=100%, red=101% whereas without it it shows: Interface error rates: Input load: yellow=75%, red=95% Output load: yellow=100if_load;ifInLoad;r:101;y:100%, red=101% I will wait until tomorrow to see if the thresholds are actually applied correctly. Also, would you mind filing a bug on the sourceforge tracker. It will allow me to organise my work on devmon better (and allow discussion of fixes etc. in a more organised fashion). Regards, Buchan |