Check_procs -a need mutliple processes



I’m having a problem trying to put an array together to check multiple processes. Here is what I’m trying to do:

./check_procs -a httpd,sendmail

No matter what I do I can’t get two processes on the same line. Is it possible and if so what is the correct syntax?



i don’t think you can have two processes in the same array, but why don’t you make two distinct checks?


I can do that but I had thought an array was just that, a listing of multiple entries. I’ll use two checks for now.


not sure but possibly the array is multiple strings, which in some case could differentiate the same process started with different parameters…