SNAMP Configuration Guide

System configuration (JVM and Apache Karaf) can be changed via set of configuration files in <snamp>/etc folder or Karaf shell console commands.

See Configuring Apache Karaf for more information about Apache Karaf configuration model.

See SNAMP Management Interface for more information about SNAMP management via JMX and REST API.

Logging

Apache Karaf and SNAMP logs are located in <snamp>/data/log folder. You can configure log rotation, severity level and other logging settings using the following configurations files in <snamp>/etc folder:

See Karaf Log Configuration for more details.

HTTP

By default the HTTP Server listens on port 3535. You can change the port by modifying a file <snamp>/etc/org.ops4j.pax.web.cfg with the following content:

org.osgi.service.http.port=8181

or by typing:

root@karaf> config:property-set -p org.ops4j.pax.web org.osgi.service.http.port 3535

The change will take effect immediately.

Clustering

When you install the cellar feature, a hazelcast feature is being automatically installed, providing the <snamp>/etc/hazelcast.xml configuration file. For most of the users, default configuration should be appropriate. If not, you can tailor this XML file according to your needs by adding/removing/modifying properties. Read more about Hazelcast configuration:

Security

SNAMP uses the same list of users when accessing SNAMP shell, REST API and SNAMP Web Console. Configuration of all users can be found in <snamp>/etc/users.properties. SNAMP shares authorization roles with Apache Karaf:

If you wish to integrate authentication and authorization with enterprise-level registry of users please use this Security Guide.

By default SNAMP Web Console and shell is available using user karaf with password karaf.