Hi All,
I have been trying to monitor a process on a Linux Machine. So I wrote a :
UserParameter=spark.submit.grep,/usr/bin/ps -ef | grep java | grep "org.apache.spark.deploy.SparkSubmit" | wc -l
The above grep always gives a value of 1 as a count. Only 1 process is running so it is totally correct.
I have added a trigger also with the T value is Not N setting and added N as 1.
Now the problem is it is triggering an alert and always listing process count as 2.
Sometimes it is generating a 3 also. It is very random.
Can you please tell me why it is happening? I am sure only one process is running and the grep parameter is very unique to this process.
The version I am using is 3.0.
I have been trying to monitor a process on a Linux Machine. So I wrote a :
UserParameter=spark.submit.grep,/usr/bin/ps -ef | grep java | grep "org.apache.spark.deploy.SparkSubmit" | wc -l
The above grep always gives a value of 1 as a count. Only 1 process is running so it is totally correct.
I have added a trigger also with the T value is Not N setting and added N as 1.
Now the problem is it is triggering an alert and always listing process count as 2.
Sometimes it is generating a 3 also. It is very random.
Can you please tell me why it is happening? I am sure only one process is running and the grep parameter is very unique to this process.
The version I am using is 3.0.