Certain application call the same process (binary) with different parameters to instruct it to provide different functionalities or services. As an example, many applications use java process as main process and service provided depends on the configuration file passed as parameter on command line that start it.
On this circumstances monitor the existence of main process could not help as many instances of it could be running. To distinguish it, CA SystemEdge also allows you to monitor the parameters used when process instance was started.
All environments
Sysedge.cf is in the CA SystemEDGE data_directory,
The default path in Unix:
/opt/CA/SystemEDGE/config/port1691/sysedge.cf
The default path in windows:
C:\Users\Public\CA\SystemEDGE\port1691\sysedge.cf
Add your LogFile watcher to the sysedge.cf as this way:watch process <attr> '<regexpr>' <index> <flags> <interval> <stype> <oper> <thresh> ['<descr>' ['<action>' ['<objClass>' '<objInst>' '<objAttr>' <severity>]]]
Example:
In this example, we check if it is running a process that contains in sequence at execution command line the “notepad” and “CAweb.cf” strings.
watch process procAlive 'notepad.*CAweb.cf' 13 0x800 30 absolute = 4 'CA Web Services' '' 'Process' '' 'Alive' Ok
Restart the CA SystemEDGE Agent
On Windows, you can restart the agent in the services.msc
On Unix, you can go to run the following command:/opt/CA/SystemEDGE/bin/sysedgectl restart