Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 834 Bytes

groupexists.markdown

File metadata and controls

52 lines (33 loc) · 834 Bytes
layout title categories published alias tags
default
groupexists
Reference
Functions
groupexists
true
reference-functions-groupexists.html
reference
system functions
functions
groupexists

Prototype: groupexists(group)

Return type: class

Description: Returns whether a group group exists on this host.

The group may be specified by name or identifier.

Arguments:

  • group : Group name or identifier, in the range .*

Example:

body common control

{
bundlesequence  => { "example" };
}

###########################################################

bundle agent example

{     
classes:

  "gname" expression => groupexists("users");
  "gid"   expression => groupexists("100");

reports:

  gname::

    "Group exists by name";

  gid::

    "Group exists by id";

}