Installing the Kontrollcomm script on a client server

Setting up the agent script is very easy. All we do it copy it to the server and put it into a directory that contains local executable files.

Setting up the script user

  • We can run the scripts as the root user (bad idea) or as a dedicated user. Let's name the user "kontrollcomm" for consistency.
  • ROOT-(0)> useradd -m kontrollcomm ROOT-(0)> passwd kontrollcomm Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
  • We then need to put the agent file into a directory - in this case "/usr/local/bin" and make the script executable by the user.
  • cp kontrollcomm_agent.py /usr/local/bin/ chown kontrollcomm:kontrollcomm /usr/local/bin/kontrollcomm_agent.py chmod 0700 /usr/local/bin/kontrollcomm_agent.py

    Running the agent script by hand

    Now to run the script and have it make a report, just run it as you would and other executable. shell> kontroll_agent.py ------------------------------------------------------------------- PURPOSE: This is the agent script for the Kontrollcomm application. SETTINGS: config variables are set in the head of this file. NOTE: The host_uuid variable must be set for the host running this script. NAME: kontrollcomm_agent.py DATE: 2010-03-20 AUTHOR: Matt Reid WEBSITE: http://kontrollsoft.com/software-kontrollcomm EMAIL: support@kontrollsoft.com LICENSE: BSD http://www.opensource.org/licenses/bsd-license.php ------------------------------------------------------------------- . . . .

    Scheduling the script to run periodically

    Please see this page for instructions on this process. http://wiki.kontrollsoft.com/wiki/KcommSchedulingAgent