You are here

check_procs regex or statement

1 post / 0 new
Jracer
Jracer's picture
check_procs regex or statement

I was wondering if it possible to use check_procs to check and see if one of many processes are alive.

For example I want to see if ptpd, chronyd, or ntpd are running. Different servers are running different time appliances so it would be ideal to have a catch all. 

I tried using the check_procs --ereg-argument-array flag but cant figure out if there is any OR logic. (ex. ereg-argument-array=/(ntpd)||(ptpd)||(chronyd)   )

Any help would be greatly appreciated.

Thanks,
Jeff