Advertisement
rsevero

Untitled

Apr 28th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. bundle agent config_nut
  2. {
  3. vars:
  4. "nut_manter_ligado" string => "brazza-.*|huston-.*|benigni-.*|scorsese-.*|video.*";
  5. "nut_servidores" string => "yamasaki-.*";
  6.  
  7. classes:
  8. "nut_cliente_manter_ligado"
  9. expression => regcmp("$(nut_manter_ligado)", "$(sys.uqhost)"),
  10. ifvarclass => "servidor|fellini",
  11. scope => "namespace";
  12.  
  13. "nut_servidor"
  14. expression => regcmp("$(nut_servidores)", "$(sys.uqhost)"),
  15. ifvarclass => "servidor|fellini",
  16. scope => "namespace";
  17.  
  18. "nut_cliente_desliga_logo"
  19. expression => not("nut_cliente_manter_ligado|nut_servidor"),
  20. ifvarclass => "servidor|fellini",
  21. scope => "namespace";
  22.  
  23. reports:
  24. "Identificado como nut_cliente_manter_ligado"
  25. ifvarclass => "nut_cliente_manter_ligado";
  26. "Identificado como nut_servidor"
  27. ifvarclass => "nut_servidor";
  28. "Identificado como nut_cliente_desliga_logo"
  29. ifvarclass => "nut_cliente_desliga_logo";
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement