5.3. Installation for the OpenSMART client (agent-) parts

5.3.1. Overview of OpenSMART installation (agent parts)

  • Fulfil prerequisites

  • Create OS User and directory tree. Fill directory tree with needed files

  • Configure the checks and thresholds

5.3.2. Prerequisites for OpenSMART agent

For the client part of OpenSMART (also known as OpenSMART agent, osagent), you need:

5.3.3. Create an OpenSMART User

You haven't to but we recommend to run OpenSMART as its own user (not root/administrator!) in its own home directory. Ask your system administrator to create an OpenSMART user id. For this chapter, we assume that the user id is 'osmart'.

5.3.4. Directory Structure

The directory structure is the same as in Section 5.2.4, “Directory Structure”.

5.3.5. Copy OpenSMART-Agent-Files to directory tree

Take a release, a CVS snapshot or the client release file, untar it anywhere and run as osmart-user:

osmart@pculi:~/tmp$ /usr/bin/perl source/agent/install_agent ~osmart
    

Caution: Use the correct absolute path to your perl installation.

install_agent takes your #OSMART_ROOT#-directory as argument, creates all the necessary directories and copies all needed files to the right place with the right rights.

5.3.6. Installing OpenSMART Agent on Windows

Before installing you have the choice between taking a cvs Nightly-Build or using a stable release for your agent (known as "OpenSMART-Agent.exe").

However your decision says, you need 2 programs as prerequisites:

  • ActivePerl ( >=5.005 ), downloadable at here

  • Pstools (zip-File) from sysinternals, downloadable at here. The location of these executables should be placed into your PATH variable (i. e. PATH=%PATH%;c:\Program Files\pstools).

If the above dependencies are done, you can call the OpenSMART installer shield (OpenSMART-Agent.exe) and follow the instructions.

After finishing the installation procedure, you have to configure your agent. A detailed instruction can be found at Chapter 9, Configure the OpenSMART agents

5.3.7. Other Configuration on the client/agent side

Configure osagent
The configuration for osagent is described in Chapter 9, Configure the OpenSMART agents.

5.3.8. Test osagent

Testing osagent is described in 2

5.3.9. Cronjobs

Normally you want osagent and osreporter to run regularly. You can start it with something like

2,12,22,32,42,52 * * * * $HOME/bin/osagent
3 * * * *                $HOME/bin/osreporter
    

in your crontab.

5.3.10. Logging

Look Section 3.11, “Logging with Log4perl ” for examples.