Linux
Installation
The user saymon is automatically created in the system during agent installation. The agent works on behalf of this user. If there is already such a user in the system, then the agent will work on his behalf. |
Installation on a host without Internet access
-
Download agent sh-installer for
Linux 64 bit
orLinux 32 bit
. -
Move it to the user’s home directory on the host.
-
Make the script executable:
64 Bitsudo chmod +x saymon-agent-rl-linux-x64-jre-installer.sh
32 Bitsudo chmod +x saymon-agent-rl-linux-i586-jre-installer.sh
-
Execute the script:
64 Bitsudo ./saymon-agent-rl-linux-x64-jre-installer.sh
32 Bitsudo ./saymon-agent-rl-linux-i586-jre-installer.sh
-
Follow further instructions in the terminal.
Installation on a host with Internet access
-
Execute the following command:
64 Bitcurl https://saymon.info/downloads/saymon-agent-rl-linux-x64-jre-installer.sh -o saymon-agent-instal.sh ; chmod +x saymon-agent-instal.sh ; sudo ./saymon-agent-instal.sh
32 Bitcurl https://saymon.info/downloads/saymon-agent-rl-linux-i586-jre-installer.sh -o saymon-agent-instal.sh ; chmod +x saymon-agent-instal.sh ; sudo ./saymon-agent-instal.sh
-
Follow further instructions in the terminal.
Installation location
By default, the agent is installed in the following directory: /opt/saymon-agent
.
Agent registration
-
Go to the
conf
folder of the agent installation directory and open the agent.properties file (agent configuration file). -
For the server.host parameter, specify the IP address of the SAYMON server to which the agent should connect. Close the file, saving the changes.
-
Restart the agent service.
sudo service saymon-agent restart
Once the agent is registered on the server, a new object of the Saymon Agent class is created. The ID of the created object (agentId) is passed to the agent. A registration.json file (/opt/saymon-agent/storage
) containing this identifier is created on the host with the agent.
To repeat the procedure for obtaining agentId (for example, if you need to connect the agent to another server), delete registration.json and restart the agent service.
Agent configuration
To change settings you need to edit agent configuration file /opt/saymon-agent/conf/agent.properties
.
Log files
By default, agent log files are saved to the /var/log/saymon
directory.
If necessary, you can enable centralized agent logging with SYSLOG in the file /opt/saymon-agent/conf/logback-upstart.xml
.