Skip to main content

Enviromental configuration

TheParameters

documentation
--confPath to bethe providedconfiguration byfile

Conf file (--conf)

[CONF]
host=<host of Tomcat environment>
port=<port of Tomcat environment>
user=<Tomcat username>
password=<Tomcat password>
https=<Enable to use https>
enable_status_monitoring=<Enable to enable status metric monitoring>
enable_vminfo_monitoring=<Enable to enable VM metric monitoring>
module_prefix=<Prefix for modules>
agent_name=<Name for agent>
agents_group_name=<Group name for agent>
interval=<Agent creation interval>
threads=<Number of threads>
temporary=<Path to temporary directories>
transfer_mode=<Transfer mode>
tentacle_ip=<Tentacle path>
tentacle_port=<Tentacle port>
tentacle_opts=<Tentacle options>
data_dir=<Path to .data files >
allow_regexp = <Regexp pattern. Metrics matching the areapattern requestingwill be monitored>
deny_regexp = <Regexp pattern. Metrics matching the monitoringpattern is:will be discarded>


-Example

host:

Server
[CONF]
hostinghost=localhost
theport=8080
user=admin
password=admin
https=0
enable_status_monitoring=1
enable_vminfo_monitoring=1
module_prefix = tc01
agent_name = Tomcat service.
-server port:agents_group_name Port= ontomcat whichinterval Tomcat= is300 listening.
-temporal user:= user/tmp totransfer_mode authenticate= totentacle Tomcat.
-tentacle_ip pass:= password127.0.0.1 totentacle_port authenticate= to41121 Tomcat.
-tentacle_opts https:= httpsdata_dir (1)= or/var/spool/pandora/data_in httpallow_regexp (0)= mode.
-.* deny_regexp =
  • Have the necessary permissions so that from the machine itself you can make a curlrequests to the page
    page in question (a username and password in tomcat-users.xml enabled to access the content of the page).
    page).
    The user must be configured to have the manager-script role, which can also see the list of instances.

<user username="user" password="password" roles="manager-script" />

This part of the tomcat-users.xml file looks like this:

<tomcat-users>
<!-- otros roles -->
<role rolename="manager-script"/>
<!-- otros usuarios -->
<user username="username" password="password" roles="manager-script" />
</tomcat-users>

- Enable access to this page as well as roles to assign to users so that they can obtain its content.
content.
- Know Tomcat version to know the scope of monitoring (compatibility mode, for versions <= 6.
versions <= 6.X).