I have some application specific processes that I am needing to monitor to make sure that they are running.
Here are the processes:
16:36:32 # ps -ef | grep sentinel
root 2172 1 0 2012 ? 00:00:01 /usr/cerneresm/sentinel/sentinelserver START
root 2176 2172 0 2012 ? 05:47:21 /usr/cerneresm/sentinel/sentinelserver JMX PrimaryServer -cfg /usr/cerneresm/sentinel/sentinel.config
root 5860 5805 0 16:36 pts/0 00:00:00 grep sentinel
currently I have items in my template setup with the following keys:
proc.num[sentinelserver START]
proc.num[sentinelserver JMX]
Which I do not think are working because they are returning a '0'. I could monitor both processes at the same time by making the key:
proc.num[sentinelserver]
But I am needing to have the processes monitored seperately. So my question is how can I use the proc.num key to use 2 words as the syntax of the command line?
Thanks in advance for any help that is given.
Here are the processes:
16:36:32 # ps -ef | grep sentinel
root 2172 1 0 2012 ? 00:00:01 /usr/cerneresm/sentinel/sentinelserver START
root 2176 2172 0 2012 ? 05:47:21 /usr/cerneresm/sentinel/sentinelserver JMX PrimaryServer -cfg /usr/cerneresm/sentinel/sentinel.config
root 5860 5805 0 16:36 pts/0 00:00:00 grep sentinel
currently I have items in my template setup with the following keys:
proc.num[sentinelserver START]
proc.num[sentinelserver JMX]
Which I do not think are working because they are returning a '0'. I could monitor both processes at the same time by making the key:
proc.num[sentinelserver]
But I am needing to have the processes monitored seperately. So my question is how can I use the proc.num key to use 2 words as the syntax of the command line?
Thanks in advance for any help that is given.
Comment