When running a ps command on the Unix system, the same OS command appears several times for example:
ps -ef |grep foglight
foglight 13793 31098 0 10:33 pts/0 00:00:00 /bin/bash -c echo QUEST_OUTPUT_START; iostat -x -d 20 2;
foglight 13794 13793 0 10:33 pts/0 00:00:00 iostat -x -d 20 2
foglight 14333 31098 0 10:33 pts/0 00:00:00 /bin/bash -c echo QUEST_OUTPUT_START; iostat -x -d 20 2;
foglight 14338 14333 0 10:33 pts/0 00:00:00 iostat -x -d 20 2
foglight 16465 31098 0 10:33 pts/0 00:00:00 /bin/bash -c echo QUEST_OUTPUT_START; vmstat 20 2;
foglight 16466 16465 0 10:33 pts/0 00:00:00 vmstat 20 2
foglight 16473 31098 0 10:33 pts/0 00:00:00 /bin/bash -c echo QUEST_OUTPUT_START; vmstat 20 2;
foglight 16476 16473 0 10:33 pts/0 00:00:00 vmstat 20 2
When running a ps command on the Unix system, the same OS command appears several times for example:
ps -ef |grep foglight
foglight 13793 31098 0 10:33 pts/0 00:00:00 /bin/bash -c echo QUEST_OUTPUT_START; iostat -x -d 20 2;
foglight 13794 13793 0 10:33 pts/0 00:00:00 iostat -x -d 20 2
foglight 14333 31098 0 10:33 pts/0 00:00:00 /bin/bash -c echo QUEST_OUTPUT_START; iostat -x -d 20 2;
foglight 14338 14333 0 10:33 pts/0 00:00:00 iostat -x -d 20 2
foglight 16465 31098 0 10:33 pts/0 00:00:00 /bin/bash -c echo QUEST_OUTPUT_START; vmstat 20 2;
foglight 16466 16465 0 10:33 pts/0 00:00:00 vmstat 20 2
foglight 16473 31098 0 10:33 pts/0 00:00:00 /bin/bash -c echo QUEST_OUTPUT_START; vmstat 20 2;
foglight 16476 16473 0 10:33 pts/0 00:00:00 vmstat 20 2
In the example above there are two database agents monitoring two databases on the machine. Each database agent starting the needed OS commands.
Further more you can see that the second process is a child process of the first process:
foglight 13793 31098 0 10:33 pts/0 00:00:00 /bin/bash -c echo QUEST_OUTPUT_START; iostat -x -d 20 2;
foglight 13794 13793 0 10:33 pts/0 00:00:00 iostat -x -d 20 2
This is working as designed.