Hola a todos
estoy probando la version 1.2beta y necesito lanzar alertas cuando un dato tipo generic_data_string cambie a uno o varios valores, ¿es posble hacer esto o las alertas solo son aplicables a datos numericos?…
No, ahora mismo solo se puede en datos de tipo numerico. Hacerlo con cadenas seria bastante sencillo pero todavia no hemos encontrado una utilidad concreta, ¿en que caso necesitarias hacerlo con datos de tipo cadena?.
Via SNMP me traigo un dato que es de tipo cadena, me entrega el estado de la temperatura del sistema, los valores son off, ok y problem cuando el estado cambia a «problem» o a «off» significa que hay problemas con el equipo. Mi intencion es migrar todo el monitoreo que se hace via Whatsup a Pandora.
Yo estube revisando el «pandora_db.pm» al parecer ahi se genera la alerta, bastaria con agregar un «if» para diferenciar el tipo de dato… si es asi podria agregar un par de lineas y ver que sale.
Hola en esteb momento sólo se puedebn comparar datos númericos, luego si el dato es generic_data_string lo puedes que convertir a un dato númerico. Por ejemplo, si sabes los valores que le dan cuando hay error que busque la cadena con grep y ponga un contador con wc -l. Si el contador es mayor que 0 que genere una alerta.
Saludos.
We use technologies like cookies to store and/or access device information. We do this to improve browsing experience and to show (non-) personalized ads. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Siempre activo
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Siempre activo
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.