Previous  |  Next  >  
Product: Cluster Server Guides   
Manual: Cluster Server 4.1 Bundled Agents Reference Guide   

Sample Configurations

Sample 1

In this example, configure the executable samba as StartProgram and StopProgram, with start and stop specified as command-line arguments respectively. Configure the agent to monitor two processes: a process specified by the pid smbd.pid, and the process nmbd.


 Application sample_app (
  User = "root"
  StartProgram = "/usr/sbin/sample_app start"
  StopProgram = "/usr/sbin/sample_app stop"
  PidFiles = { "/etc/sample_app.pid" }
  MonitorProcesses = { "sample_app_process" }
 )

Sample 2

In this example, since no user is specified, it uses the root user. The executable samba starts and stops the application using start and stop as the command-line arguments. The executable sambaMonitor monitors the application and uses all as its command-line argument. Also, the agent monitors the smbd and nmbd processes.


 Application sample_app2 (
  StartProgram = "/usr/sbin/sample_app start"
  StopProgram = "/usr/sbin/sample_app stop"
  CleanProgram = "/usr/sbin/sample_app force stop"
  MonitorProgram = "/usr/local/bin/sampleMonitor all"
  MonitorProcesses = { "sample_app_process" }
 )
 ^ Return to Top Previous  |  Next  >  
Product: Cluster Server Guides  
Manual: Cluster Server 4.1 Bundled Agents Reference Guide  
VERITAS Software Corporation
www.veritas.com