IMPORTANT:
IMPORTANT:
Process Monitor Configuration File
<Process process_id>
processing-directives directive_variables
</Process>
Syntax | Description |
---|---|
<Process process_id> |
Identifies the process
to be monitored.
The process can be identified
by name (i.e. ssh) or by URL (i.e. /users/ems/server/bin/server).
Additionally, a wildcard (*) can be specified for monitoring
all the processes.
Note: |
processing-directives directive_variables |
Identifies the criteria
that must be met before action is taken as well as the action to
be taken. The criteria are referred to as “Directives”,
while the actions are referred to as “Process Scope Directives”.
It is important to note
that processing directives can be specified within a specific rule
or outside of all rules. When outside, the directive is applied globally
to all rules. The psmon.cfg Processing Directives table provides information
on the supported processing directives.
|
</Process> |
Indicates the end of
a process rule.
|
Default Rules
IMPORTANT:
Process | Default Rule |
---|---|
EMS Server |
<Process /<ems_dir>/server/bin/server>
spawncmd (cd /<ems_dir>/server; /<ems_dir>/server/bin/server)
pidfile /<ems_dir>/server/server.pid
numretry 10
tmintval 330
</Process>
|
Bulkstat Server |
<Process /<ems_dir>/server/bin/bulkstatserver>
spawncmd (cd /<ems_dir>/server; /<ems_dir>/server/bin/bulkstatserver)
pidfile /<ems_dir>/server/bsserver.pid
numretry 10
tmintval 330
</Process>
|
Bulkstat Parser |
<Process /<ems_dir>/server/bin/bulkstatparser>
spawncmd (cd /<ems_dir>/server; /<ems_dir>/server/bin/bulkstatparser)
pidfile /<ems_dir>/server/bulkstatparser.pid
numretry 10
tmintval 330
</Process>
|
Script Server |
<Process /<ems_dir>/server/bin/scriptsrv>
spawncmd (cd /<ems_dir>/server; /<ems_dir>/server/bin/scriptsrv)
pidfile /<ems_dir>/server/script.pid
numretry 10
tmintval 330
</Process>
|
Northbound Server |
<Process /<ems_dir>/server/bin/nbserver>
�spawncmd (cd /<ems_dir>/server; /<ems_dir>/server/bin/nbserver)
pidfile /users/ems/server/nbserver.pid
numretry 10
tmintval 330
</Process>
|
Notify Service |
<Process /<ems_dir>/server/bin/Notify_Service>
spawncmd(cd /<ems_dir>/server; /<ems_dir>/server/bin/nbSrvr
pidfile /<ems_dir>/server/notify_service.pid
numretry 10
tmintval 330
</Process>
|
Postgres Database |
<Process /<ems_dir>/postgresx.x.x/bin/postmaster
-i>
spawncmd /<ems_dir>/server/scripts/postgresctl
start
pidfile /<ems_dir>/postgresx.x.x/data/postmaster.pid
numretry 10
tmintval 330
</Process>
|
Apache Webserver |
<Process /<ems_dir>/apache/bin/httpd
-f /<ems_dir>/apache/conf/httpd.conf>
spawncmd /<ems_dir>/apache/bin/apachectl
start
pidfile /<ems_dir>/apache/logs/httpd.pid
numretry 10
tmintval 330
</Process> |
Verifying the Process Monitor Status
ps -ef | grep
psmon
cd /<ems_dir>/server
./serv monitor
stop
ps -ef | grep
psmon
If the Process Monitor was successfully
stopped, this command finds no active process and returns no result.
cd /<ems_dir>/server
./serv monitor
start
Once the Process Monitor is started, a
status message is displayed. The process identification number assigned
to the psmon process, and the directory in which the created log
file is located is also displayed.
cd /<ems_dir>/server
./psmon [--conf=filename] [--daemon] [--cron] [--user=user] [--adminemail=emailaddress] [--dryrun] [--help] [--version]
Keyword/Variable | Description |
---|---|
--conf=filename | Specify an alternate configuration file name (other than the psmon.cfg file). |
--daemon | Start as background deamon. |
--cron | Disables already running errors when trying to launch (i.e. with the --daemon option). |
--user=user | Specifies that only processes running under the specified username should be scanned. |
--adminemail=emailaddress | Specifies the e-mail address to send notifications to. |
--dryrun | Provides notifications but does not kill or spawn new processes. |
--help | Displays the supported keywords. |
--version | Displays the version information. |