Pandora FMS Community

Warning state when a module (generic string) is not "-"

rischfre · 2 sept 2014, 12:39 · 3 mensajes · 60 visitas

  1. Inicio del debate

    Hi I created my own module which returns what are the current active VPN connexions. This is a server module using a component. The script returns either "-" (when there is no active connexion) and "user @ IP" in case of a connexion. I would like that this module has following states : in case the value is NOT "-" : WARNING. I tried this : in the fild : St: String:(-) and ticked the "inverse" botton. but whatever the value is i get the WARNING state. What i m doing wrong?

  2. Hi You can change the exit of the script and when not exist connection, value = none. Then in warning state, add none and check inverse. It's possible that - take it as regexp Regards

  3. Thank you very much, this solved my problem. I did not know that Regex was available.

Entra en tu cuenta para publicar.