We are utilizing a perl script for process monitoring that we obtained from the content exchange here on thwack. We utilize a special service account for APM to use when it logs into the linux servers. It is the same service account used for monitoring windows servers as well. We have the service account "locked down" on the windows machines, but have yet been able to find out how to do it on the linux machines.
The script utilizes the command ps -ef for process checks. We would like the service account to only be able to run the script and be contained to it's home directory. Since this service account is shared among several server admin groups, we would like to lock it down on the linux side.
I would like to know if anyone is trying to secure the way they are monitoring their linux processes. If so, how were you able to do so? I was thinking about trying restricted shell, but heard it might not work with the ps -ef command. I was also thinking about writing a custom shell, but thought I would post the question here.
Thanks in advance.