Sensu check-process.rb gives CheckProcess:OK for any -p pattern passed, which is not a current active process

153 views Asked by At

Check-process.rb for a regex 'abc'

There is no process named abc. I am pretty new to Sensu, please help is needed. The same check when executed on my sensu-client directly gives the following result:

root@pune-4755-col-stag-1:~# sudo check-process.rb -p /abc/ -W 1

CheckProcess CRITICAL: Found 0 matching processes; cmd //abc//

root@pune-4755-col-stag-1:~# sudo check-process.rb -p abc -W 1

CheckProcess CRITICAL: Found 0 matching processes; cmd /abc/

0

There are 0 answers