|
From: Contreras, M. <Mar...@ti...> - 2011-12-07 18:37:57
|
Hi Bucham Thank you, once I get rid of the space the error disappear, but the threshold is not working as expected because I'm still getting the yellow alert for the "not_present" result . This is the line in bb-hosts file: 10.30.2.90 SERVER_1 #DEVMON:except(if_stat;ifName;na:Gi1/8|Gi1/16|Gi1/17|Gi1/18|Gi9/10|Gi9/ 11|G i9/13),thresh(fans;fanStatus;y:not_working;g:not_present) I guess I'm missing something. Because we have the same machine type with one and two fans so far we didn´t considered to change the default threshold file, but depending if the above option in bb-hosts doesn´t work we could try the setting in the opposite way, i.e. by default don´t alarm when "not_present" and customize bb-hosts for the servers with two fans installed. MC -----Mensaje original----- De: Buchan Milne [mailto:bg...@st...] Enviado el: miércoles, 07 de diciembre de 2011 11:02 Para: dev...@li... CC: Contreras, Mario Asunto: Re: [Devmon] No multiple options in devmon tag On Wednesday, 7 December 2011 03:14:19 Contreras, Mario wrote: > Hi > > > > I´m running devmon-0.3.1-beta1 with xymon 4.3.0.beta2, when trying to > use multiple options in devmon tag in bb-hosts file, devmon is complying. > > > > The line I'm using is this: > > > > 10.30.2.90 SERVER_1 # > DEVMON:except(if_stat;ifName;na:Gi1/8|Gi1/16|Gi1/17|Gi1/18|Gi9/10|Gi9/ > 11|G i9/13),thresh(fans;fanStatus;g:not present) > Try and avoid spaces. But, maybe we need to consider if by default the 'not present' status should have a different color by default in the 'thresholds' file for this template/test? > When running devmon the errors I'm getting are these: > > > > / # /opt/devmon-0.3.1-beta1/devmon --readbbhosts > > [11-12-06@19:47:12] Unknown devmon option > (,thresh(fans;fanStatus;g:not) on line 111 of > /opt/xymon/server/etc/bb-hosts > > Use of uninitialized value in concatenation (.) or string at > /opt/devmon-0.3.1-beta1/modules/dm_config.pm line 1928, <$__ANONIO__> > line 20. > > Use of uninitialized value in concatenation (.) or string at > /opt/devmon-0.3.1-beta1/modules/dm_config.pm line 1928, <$__ANONIO__> > line 20. > > > > Any idea why is this? Regards, Buchan Este mensaje (incluyendo cualquier anexo) contiene información confidencial que se encuentra protegida por la ley. La información que contiene sólo puede ser utilizada por la persona o la compañía a la cual está dirigido. Si usted no es un receptor autorizado, o por error recibe el mensaje, omita su contenido y elimínelo inmediatamente. Cualquier retención, difusión, distribución y/o copia así como la ejecución de cualquier acción basado en el contenido del mismo, se encuentra estrictamente prohibido, y esta amparado por la ley. -------------- This message (including any attachments) contains confidential information intented for a specific individual and purpose, and is protected by law. If you are not the intented recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. |