Pandora FMS Community

Help setting Warning and Critical thresholds for bollean data.

JonRussell · 4 ene 2019, 18:26 · 2 mensajes · 89 visitas

  1. Inicio del debate

    Hi. I have written a custom plugin script that returns "0" or "1" if a particular application I am monitoring is operating correctly. I have written this as a server side script on the Pandora server, and configured it as a plugin. I added it as a plugin server module It is receiving data correctly, but I don't understand exactly how to set the Warning and Critical thresholds ? 0 means "down" i.e alert Critical 1 means "up" i.e. Normal. I dont have a warning state. Two questions;

    • I configured the module as "Generic Boolean" as that's what it is, but that gives me ranges in the warning and critical boxes. Perhaps I should configure it as "Generic String" and put "0" in the critical and warning boxes ?
    • If I leave it as Boolean, how do I configure the threshold ? 0-0.5 is critical and 0.51-0.99 warning ? i.e 0 will be Critical, 1 will be Normal and Warning will be ignored. This doesn't seem to work, and the edit box rounds up 0.99 to 1.00. How do I configure the Critical thresholds for Boolean values ?

    Thanks. Jon.

  2. Hi. I have written a custom plugin script that returns "0" or "1" if a particular application I am monitoring is operating correctly. I have written this as a server side script on the Pandora server, and configured it as a plugin. I added it as a plugin server module It is receiving data correctly, but I don't understand exactly how to set the Warning and Critical thresholds ? 0 means "down" i.e alert Critical 1 means "up" i.e. Normal. I dont have a warning state. Two questions;

    • I configured the module as "Generic Boolean" as that's what it is, but that gives me ranges in the warning and critical boxes. Perhaps I should configure it as "Generic String" and put "0" in the critical and warning boxes ?
    • If I leave it as Boolean, how do I configure the threshold ? 0-0.5 is critical and 0.51-0.99 warning ? i.e 0 will be Critical, 1 will be Normal and Warning will be ignored. This doesn't seem to work, and the edit box rounds up 0.99 to 1.00. How do I configure the Critical thresholds for Boolean values ?

    Thanks. Jon.

    Hello JonRussell, In Generic boolean module type, it is preconfigured 0 as "critical" and 1 as "normal" status. It is not neccesary to configure the threshold if it is the status that you want. Regards.

Entra en tu cuenta para publicar.