Advertisement
rsevero

Untitled

Jul 7th, 2015
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. bundle agent config_zabbix
  2. {
  3. vars:
  4. "my_list" slist => { "1", "2" };
  5. "try1" string => ifelse("length("my_list") = 2", "has two elements", "has one element");
  6.  
  7. classes:
  8. "has2elements" expression => "length(""my_list"") = 2";
  9. "has1element" expression => "length(""my_list"") = 1";
  10.  
  11. reports:
  12. has2elements::
  13. "has 2 elements";
  14.  
  15. has1element::
  16. "has 1 element";
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement