It has been noticed that the history file is being filled up with commands being run by the Oracle agent to collect OS metrics. This commands are vmstat and iostat
root@uksupu13(/etc/rc.d/init.d)# history
13982916 echo $$
13982917 echo $?
13982918 echo $$
13982919 vmstat -I 20 1;
13982920 ps -ef | awk '/tnslsnr/ && !/awk/ { for (i=1; i<NF; i++)
{ if (index($i, "tnslsnr")>0) {print $(i+1) } } }'
13982921 echo $?
13982922 echo $?
13982923 echo $$
13982924 echo $?
13982925 vmstat -I 20 1;
13982926 echo $$
13982927 vmstat -I 20 1;
13982928 echo $$
13982929 echo $?
13982930 iostat -Dl 20 1;
13982931 history
How can we stop this
Set the environment variable below. This will stop the output being sent to the history file
HISTSIZE=0
If this is not preferable for the current UNIX user create a new user to deploy the fglam under in which you can set this variable as we always recommend you create a separate user for foglight to avoid conflicts within the enviroment