Enviromental configuration

Parameters 

 

 

 

 --conf 

 Path to the configuration file 

 

 

 

 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 pattern will be monitored>

deny_regexp = <Regexp pattern. Metrics matching the pattern will be discarded> 

 Example 

 

 [CONF]

host=localhost

port=8080

user=admin

password=admin

https=0

enable_status_monitoring=1

enable_vminfo_monitoring=1

module_prefix = tc01

agent_name = Tomcat server

agents_group_name = tomcat

interval = 300

temporal = /tmp

transfer_mode = tentacle

tentacle_ip = 127.0.0.1

tentacle_port = 41121

tentacle_opts = 

data_dir = /var/spool/pandora/data_in

allow_regexp = .*

deny_regexp = 

 

 Have the necessary permissions so that from the machine itself you can make a requests 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).