cancel
Showing results for 
Search instead for 
Did you mean: 

Question regarding agent setup

mokkan
Level 6
Certified

Hello,

I'm trying to understand how eactly apache agent working and trying to understand the procedure and how it gets called.

 

For an example they are the Apache resource Attributes and if we do the modification to the parameters, what are the files get called?

 

I can see that types.def get called. What are other files?

/opt/VRTSVcs/conf/config/types.def

 

Type Apache (
static boolean IntentionalOffline = 0
static keylist SupportedActions = { "checkconffile.vfd" }
static str ArgList[] = { ResLogLevel, State, IState, httpdDir,
SharedObjDir, EnvFile, PidFile, HostName, Port, User,
SecondLevelMonitor, SecondLevelTimeout, ConfigFile, EnableSSL,
DirectiveAfter, DirectiveBefore }
str ResLogLevel = INFO
str httpdDir
str SharedObjDir
26
Resource type definitions
Apache HTTP Server agent attributes
str EnvFile
str PidFile
str HostName
int Port = 80
str User
boolean SecondLevelMonitor = 0
int SecondLevelTimeout = 30
str ConfigFile
boolean EnableSSL = 0
str DirectiveAfter{}
str DirectiveBefore{}
)

 

1 ACCEPTED SOLUTION

Accepted Solutions

mokkan
Level 6
Certified

Thank you very  much mike.

View solution in original post

2 REPLIES 2

mikebounds
Level 6
Partner Accredited

What the Apache agent does is detailed in the bundled agents guide - example from 6.0 Solaris:

 

Online
To start the Apache HTTP server, the agent:
■Executes the httpdDir/httpd program with the appropriate
arguments if the httpdDir program specifies the full path of the
directory in which the httpd binary file is located.
■ Alternatively, if the httpdDir attribute specifies the full path of
the Apache HTTP server binary file, the binary file is executed
with appropriate arguments.
 
When you specify a file with the EnvFile attribute, the file is sourced
before the agent executes the Apache HTTP server commands.
 
Offline
To stop the Apache HTTP server, the agent:
■Executes the httpdDir/httpd program with the appropriate
arguments, if httpdDir specifies the full path of the directory in
which the httpd binary file is located.
■ Alternatively, if the httpdDir attribute is used to specify the full
path of the Apache HTTP server binary, the binary file is executed
with appropriate arguments.
■ Sends a TERM signal to the HTTP Server parent process (Apache
v1.3).
 
When you specify a file with the EnvFile attribute, the file is sourced
before the agent executes the Apache HTTP server commands.
 
Monitor
Monitors the state of the Apache server. First it checks for the
       processes, next it can perform an optional state check.
 

The files for online, offline etc are in /opt/VRTSvcs/bin/Apache or /opt/VRTSagents/ha/bin/Apache directory, depending on version of VCS

Mike

mokkan
Level 6
Certified

Thank you very  much mike.